The general stage of character creation (fl_char_create_general): lets the player pick a gender, enter a name and a physical description, and choose a model and its skin. The models on offer come from the GetCharacterCreationModels hook.

Summary

Methods

Init()client
Creates the gender buttons, name and description entries, model list, model preview and skin counter.
Stores the entered name, description, gender, model and skin in the character data.
Restores the name, description, gender, model and skin that were entered earlier.
Checks the name and description lengths and that a model is selected, skipping the controls that are hidden.
Rebuilds the model icons from the GetCharacterCreationModels hook, clearing the selected model if it is no longer among them.

Methods

Creates the gender buttons, name and description entries, model list, model preview and skin counter.

Stores the entered name, description, gender, model and skin in the character data.

Parameters

  • parent Panel the character creation menu

Restores the name, description, gender, model and skin that were entered earlier.

Parameters

  • parent Panel the character creation menu

Checks the name and description lengths and that a model is selected, skipping the controls that are hidden.

Returns

  • Boolean false when invalid
  • String translated error; nothing when valid

Rebuilds the model icons from the GetCharacterCreationModels hook, clearing the selected model if it is no longer among them.

Defined in