Skip to content

CharacterCreationUI ​

Inherits: CurrentUI < Control

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 ​

PackedScenetemplate_button_scene
PackedSceneblend_shape_slider_scene
PackedScenecolor_button_scene
PackedSceneclass_button_scene
PackedScenefacial_feature_selector_scene
Controltemplates_container
Controlcustomization_panel
HFlowContainerclass_container
ArrowSelectionButtonbody_type_selector
ArrowSelectionButtonvoice_selector
ArrowSelectionButtonanimation_selector
Controlblend_shapes_container
Controlskin_colors_container
Controlhair_colors_container
Controleye_colors_container
Controlfacial_features_container
LineEditname_edit
Buttonconfirm_button
Buttonexit_button
CharacterCreation3DScenepreview_3d_scene
AudioStreamPlayeraudio_player
CharacterCreationInfoBoxinfo_box

Variables ​

CharacterCreationSettingscreation_settings
CustomCharacterDefinitioncurrent_definitionnull
CharacterCreationProfilecurrent_profilenull
PlayerClassDefinitioncurrent_player_classnull
boolis_custom_modefalse
CharacterDefinitionselected_templatenull
CustomSkeletoncurrent_preview_skeletonnull

Methods ​

voidinitialize_ui( p_system_hub: GameHost.SystemHub )
voidclear_preview_equipment()
CustomCharacterDefinitionget_character_definition()
voidreset()

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