PlayerPickerTable
This Table is used to pick or edit players information for new game creation. Could be inserted to NewGameScreen, GameParametersScreen or any other Screen which provides GameSetupInfo and Ruleset. Upon player changes updates property gameParameters. Also updates available nations when mod changes. In case it is used in map editor, as a part of GameParametersScreen, additionally tries to update units/starting location on the previousScreen when player deleted or switched nation.
Parameters
A Screen where the player table is inserted, should provide GameSetupInfo as property, updated when a player is added/deleted/changed
contains info about number of players.
sets a width for the Civ "blocks". If too small a third of the stage is used.
Constructors
Functions
Assigns desired civilization for human players with 'random' choice
Returns a list of available civilization for all players, according to current ruleset, with exception of city states nations, spectator and barbarians.
Creates clickable icon and nation name for some Player as a Table. Clicking creates popupNationPicker to choose new nation.
Opens Nation picking popup with all nations, currently available for player to choose, depending on current ruleset and other players nation choice.
Reassigns removed mod references to random civilization