NewGameScreen

class NewGameScreen(previousScreen: BaseScreen, _gameSetupInfo: GameSetupInfo?) : PickerScreen, IPreviousScreen

Functions

displayTutorial
Link copied to clipboard
fun displayTutorial(tutorial: Tutorial, test: () -> Boolean? = null)
dispose
Link copied to clipboard
open override fun dispose()
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
hide
Link copied to clipboard
open override fun hide()
initLandscape
Link copied to clipboard
private fun initLandscape()
initPortrait
Link copied to clipboard
private fun initPortrait()
isCrampedPortrait
Link copied to clipboard
fun isCrampedPortrait(): Boolean
isNarrowerThan4to3
Link copied to clipboard
fun isNarrowerThan4to3(): Boolean
isPortrait
Link copied to clipboard
fun isPortrait(): Boolean
lockTables
Link copied to clipboard
fun lockTables()
newGameThread
Link copied to clipboard
private fun newGameThread()
onBackButtonClicked
Link copied to clipboard
fun onBackButtonClicked(action: () -> Unit)
openOptionsPopup
Link copied to clipboard
fun openOptionsPopup()
pause
Link copied to clipboard
open override fun pause()
pick
Link copied to clipboard
protected fun pick(rightButtonText: String)

Sets the text of the rightSideButton and enables it if it's the player's turn

removeRightSideClickListeners
Link copied to clipboard
fun removeRightSideClickListeners()

Remove listeners from rightSideButton to prepare giving it a new onClick

render
Link copied to clipboard
open override fun render(delta: Float)
resize
Link copied to clipboard
open override fun resize(width: Int, height: Int)
resume
Link copied to clipboard
open override fun resume()
setDefaultCloseAction
Link copied to clipboard
fun setDefaultCloseAction(previousScreen: BaseScreen? = null)

Initializes the Close button's action (and the Back/ESC handler) to return to the previousScreen if specified, or else to the world screen.

setRightSideButtonEnabled
Link copied to clipboard
fun setRightSideButtonEnabled(enabled: Boolean)

Enables the rightSideButton. See pick for a way to set the text.

show
Link copied to clipboard
open override fun show()
toString
Link copied to clipboard
open fun toString(): String
unlockTables
Link copied to clipboard
fun unlockTables()
updateRuleset
Link copied to clipboard
fun updateRuleset()
updateTables
Link copied to clipboard
fun updateTables()

Properties

bottomTable
Link copied to clipboard
protected var bottomTable: Table
closeButton
Link copied to clipboard
protected var closeButton: TextButton

The close button on the lower left of bottomTable, see setDefaultCloseAction

descriptionLabel
Link copied to clipboard
protected var descriptionLabel: Label

A scrollable wrapped Label you can use to show descriptions in the bottomTable, starts empty

game
Link copied to clipboard
val game: UncivGame
gameSetupInfo
Link copied to clipboard
open override val gameSetupInfo: GameSetupInfo
keyPressDispatcher
Link copied to clipboard
val keyPressDispatcher: KeyPressDispatcher
mapOptionsTable
Link copied to clipboard
private val mapOptionsTable: MapOptionsTable
maxBottomTableHeight
Link copied to clipboard
private val maxBottomTableHeight: Float = 150f
newGame
Link copied to clipboard
var newGame: GameInfo? = null
newGameOptionsTable
Link copied to clipboard
private val newGameOptionsTable: GameOptionsTable
playerPickerTable
Link copied to clipboard
private val playerPickerTable: PlayerPickerTable
previousScreen
Link copied to clipboard
private val previousScreen: BaseScreen
rightSideButton
Link copied to clipboard
protected var rightSideButton: TextButton

A button on the lower right of bottomTable you can use for a "OK"-type action, starts disabled

rightSideGroup
Link copied to clipboard
protected var rightSideGroup: VerticalGroup

A wrapper containing rightSideButton. You can add buttons, they will be arranged vertically

ruleset
Link copied to clipboard
open override var ruleset: Ruleset
screenSplit
Link copied to clipboard
private val screenSplit: Float = 0.85f
scrollPane
Link copied to clipboard
protected var scrollPane: AutoScrollPane

A ScrollPane scrolling topTable, disabled by the disableScroll parameter

splitPane
Link copied to clipboard
protected var splitPane: SplitPane

A fixed SplitPane holds scrollPane and bottomTable

stage
Link copied to clipboard
abstract var stage: Stage
topTable
Link copied to clipboard
protected var topTable: Table

The table displaying the choices from which to pick (usually). Also the element which most of the screen real estate is devoted to displaying.

tutorialController
Link copied to clipboard
protected val tutorialController: TutorialController

Sources

jvm source
Link copied to clipboard