LanguagePickerScreen
A PickerScreen to select a language, used once on the initial run after a fresh install. After that, OptionsPopup provides the functionality. Reusable code is in LanguageTable and addLanguageTables.
Constructors
Functions
Sets the text of the rightSideButton and enables it if it's the player's turn
Remove listeners from rightSideButton to prepare giving it a new onClick
Initializes the Close button's action (and the Back/ESC handler) to return to the previousScreen if specified, or else to the world screen.
Enables the rightSideButton. See pick for a way to set the text.
Properties
Holds the Close button, a description label and an action button
The close button on the lower left of bottomTable, see setDefaultCloseAction
A scrollable wrapped Label you can use to show descriptions in the bottomTable, starts empty
A button on the lower right of bottomTable you can use for a "OK"-type action, starts disabled
A wrapper containing rightSideButton. You can add buttons, they will be arranged vertically
A ScrollPane scrolling topTable, disabled by the disableScroll parameter
A fixed SplitPane holds scrollPane and bottomTable