fl_char_create_faction panelclient
Panel defined in plugin/views/cl_charcreation_faction.lua
Part of Factions System
The faction stage of character creation (fl_char_create_faction): shows a button for
every faction the local player may join and stores the chosen faction in the character data.
Summary
Methods
Methods
Stores the selected faction in the character data.
Parameters
- parent Panel the character creation menu
Builds the faction chooser with a button for every faction the local player may pick,
preselecting the faction chosen earlier. A whitelisted faction is offered to players who
have its whitelist, and every faction to a player whom Factions.can_bypass_creation_limits
lets past the whitelist for the extra data of the creation screen.
Parameters
- parent Panel the character creation menu
Checks that a registered faction is selected, that the local player is whitelisted for it
when the faction requires a whitelist, and that they do not have as many characters of the
faction as it allows. The last two do not apply to a player whom
Factions.can_bypass_creation_limits lets past them for the extra data of the creation
screen.
Returns
- Boolean false when invalid
- String translated error; nothing when valid