CharacterCreationUI ​
CharacterCreationUI - Prefab-Driven Character Creation Controller Populates UI containers using provided PackedScenes and manages character customization state Supports both pre-made templates and custom character creation with voice selection
Properties ​
PackedScene | template_button_scene | |
PackedScene | blend_shape_slider_scene | |
PackedScene | color_button_scene | |
PackedScene | class_button_scene | |
PackedScene | facial_feature_selector_scene | |
Control | templates_container | |
Control | customization_panel | |
HFlowContainer | class_container | |
ArrowSelectionButton | body_type_selector | |
ArrowSelectionButton | voice_selector | |
ArrowSelectionButton | animation_selector | |
Control | blend_shapes_container | |
Control | skin_colors_container | |
Control | hair_colors_container | |
Control | eye_colors_container | |
Control | facial_features_container | |
LineEdit | name_edit | |
Button | confirm_button | |
Button | exit_button | |
CharacterCreation3DScene | preview_3d_scene | |
AudioStreamPlayer | audio_player | |
CharacterCreationInfoBox | info_box |
Variables ​
CharacterCreationSettings | creation_settings | |
CustomCharacterDefinition | current_definition | null |
CharacterCreationProfile | current_profile | null |
PlayerClassDefinition | current_player_class | null |
bool | is_custom_mode | false |
CharacterDefinition | selected_template | null |
CustomSkeleton | current_preview_skeleton | null |
Methods ​
void | initialize_ui( p_system_hub: GameHost.SystemHub ) |
void | clear_preview_equipment() |
CustomCharacterDefinition | get_character_definition() |
void | reset() |
Signals ​
customization_changed( definition: CustomCharacterDefinition ) ​
Emitted when customization changes (for external listeners)
class_selected( player_class: PlayerClassDefinition ) ​
Emitted when a class is selected
voice_preview_requested( voice_variant: String ) ​
Emitted when voice preview is requested
character_confirmed( character_definition: CharacterDefinition ) ​
Emitted when character creation is confirmed (for TransitionManager)
Property descriptions ​
Prefab Scenes
PackedScene template_button_scene ​
Button prefab for template/profile selection list
PackedScene blend_shape_slider_scene ​
Slider prefab for blend shape controls (expects CustomSlider with value_changed signal)
PackedScene color_button_scene ​
Button prefab for color selection (expects ColorButton or similar)
PackedScene class_button_scene ​
Button prefab for class selection (expects ClassSelectionButton)
PackedScene facial_feature_selector_scene ​
Button prefab for facial feature cycling
UI Containers
Control templates_container ​
Container for template/profile selection buttons
Control customization_panel ​
Panel containing all customization options (shown for custom characters)
HFlowContainer class_container ​
Container for class selection buttons
ArrowSelectionButton body_type_selector ​
Selector for body type (Male/Female/etc.)
ArrowSelectionButton voice_selector ​
Selector for voice selection
ArrowSelectionButton animation_selector ​
Selector for animation selection
Control blend_shapes_container ​
Container for blend shape sliders
Control skin_colors_container ​
Container for skin color buttons
Control hair_colors_container ​
Container for hair color buttons
Control eye_colors_container ​
Container for eye color buttons
Control facial_features_container ​
Container for facial feature selectors
LineEdit name_edit ​
Input field for character name
Button confirm_button ​
Confirm/Ready button
Button exit_button ​
Exit/Back button
External References
CharacterCreation3DScene preview_3d_scene ​
Reference to the CharacterCreation3DScene for 3D preview
AudioStreamPlayer audio_player ​
AudioStreamPlayer for voice preview
CharacterCreationInfoBox info_box ​
Info box for displaying template and class descriptions
Variable descriptions ​
CharacterCreationSettings creation_settings ​
Reference to CharacterCreationSettings resource
CustomCharacterDefinition current_definition = null ​
The current CustomCharacterDefinition being built
CharacterCreationProfile current_profile = null ​
The currently active profile (if custom character)
PlayerClassDefinition current_player_class = null ​
Currently selected player class
bool is_custom_mode = false ​
Whether we're in "Custom Character" mode vs template mode
CharacterDefinition selected_template = null ​
Selected template (if in template mode)
CustomSkeleton current_preview_skeleton = null ​
Currently instantiated skeleton in preview
Method descriptions ​
void initialize_ui( p_system_hub: GameHost.SystemHub ) ​
Sets the part up with the hub of the game systems: connects the signals it listens to and fills it.
void clear_preview_equipment() ​
Clear equipment from preview (delegates to 3D scene)
CustomCharacterDefinition get_character_definition() ​
Get the finalized character definition
void reset() ​
Reset the character creator to initial state