GameParametersScreen
This Screen is used for editing game parameters when scenario is edited/created in map editor. Implements IPreviousScreen for compatibility with PlayerPickerTable, GameOptionsTable Uses PlayerPickerTable and GameOptionsTable to change local gameSetupInfo. Upon confirmation updates mapEditorScreen and switches to it.
Parameters
previous screen from map editor.
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