ReligiousBeliefsPickerScreen

class ReligiousBeliefsPickerScreen(choosingCiv: CivilizationInfo, gameInfo: GameInfo, beliefsToChoose: Counter<BeliefType>, pickIconAndName: Boolean) : PickerScreen

Functions

addChoosableBeliefButton
Link copied to clipboard
private fun addChoosableBeliefButton(belief: IndexedValue<Belief?>, beliefType: BeliefType)
checkAndEnableRightSideButton
Link copied to clipboard
private fun checkAndEnableRightSideButton()
convertBeliefToButton
Link copied to clipboard
private fun convertBeliefToButton(belief: Belief): Button
displayTutorial
Link copied to clipboard
fun displayTutorial(tutorial: Tutorial, test: () -> Boolean? = null)
dispose
Link copied to clipboard
open override fun dispose()
emptyBeliefButton
Link copied to clipboard
private fun emptyBeliefButton(beliefType: BeliefType): Button
equalizeAllButtons
Link copied to clipboard
private fun equalizeAllButtons(table: Table)
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getBeliefTypeFromIndex
Link copied to clipboard
private fun getBeliefTypeFromIndex(index: Int): BeliefType
hashCode
Link copied to clipboard
open fun hashCode(): Int
hide
Link copied to clipboard
open override fun hide()
isCrampedPortrait
Link copied to clipboard
fun isCrampedPortrait(): Boolean
isNarrowerThan4to3
Link copied to clipboard
fun isNarrowerThan4to3(): Boolean
isPortrait
Link copied to clipboard
fun isPortrait(): Boolean
loadRightTable
Link copied to clipboard
private fun loadRightTable(beliefType: BeliefType, leftButtonIndex: Int)
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.

setupChoosableReligionIcons
Link copied to clipboard
private fun setupChoosableReligionIcons()
setupVisibleReligionIcons
Link copied to clipboard
private fun setupVisibleReligionIcons()
show
Link copied to clipboard
open override fun show()
toString
Link copied to clipboard
open fun toString(): String
updateLeftTable
Link copied to clipboard
private fun updateLeftTable()

Properties

beliefsToChoose
Link copied to clipboard
private val beliefsToChoose: Counter<BeliefType>
bottomTable
Link copied to clipboard
protected var bottomTable: Table
choosingCiv
Link copied to clipboard
private val choosingCiv: CivilizationInfo
chosenBeliefs
Link copied to clipboard
private val chosenBeliefs: Array<Belief?>
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

displayName
Link copied to clipboard
private var displayName: String? = null
game
Link copied to clipboard
val game: UncivGame
gameInfo
Link copied to clipboard
private val gameInfo: GameInfo
keyPressDispatcher
Link copied to clipboard
val keyPressDispatcher: KeyPressDispatcher
leftChosenBeliefs
Link copied to clipboard
private val leftChosenBeliefs: Table
maxBottomTableHeight
Link copied to clipboard
private val maxBottomTableHeight: Float = 150f
middlePanes
Link copied to clipboard
private val middlePanes: Table
pickIconAndName
Link copied to clipboard
private val pickIconAndName: Boolean
previouslySelectedIcon
Link copied to clipboard
private var previouslySelectedIcon: Button? = null
religionName
Link copied to clipboard
private var religionName: String? = null
rightBeliefsToChoose
Link copied to clipboard
private val rightBeliefsToChoose: Table
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

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
val stage: Stage
topReligionIcons
Link copied to clipboard
private val topReligionIcons: Table
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