CreateEntityDialog ​
Inherits: AcceptDialog
Dialog for creating new entities or player classes with optional template selection
Properties ​
EntityMode | creation_mode | EntityMode.ENTITY |
Variables ​
ResourceManager | resource_manager | |
Array | available_templates | [] |
Dictionary | mode_config | {} |
Methods ​
void | setup_and_show( p_resource_manager: ResourceManager ) |
bool | is_valid_resource_name( name: String ) |
Dictionary | get_template_info( template_id: int ) |
void | reset_form() |
void | suggest_name( suggested_name: String ) |
int | get_selected_template_id() |
String | get_resource_name() |
void | set_creation_mode( mode: EntityMode ) |
EntityMode | get_creation_mode() |
bool | is_entity_mode() |
bool | is_player_class_mode() |
Signals ​
selection_made( display_name: String, template_id: int ) ​
Enumerations ​
enum EntityMode ​
- ENTITY =
0 - PLAYER_CLASS =
1 - INTERACTABLE =
2
Property descriptions ​
EntityMode creation_mode = EntityMode.ENTITY ​
Configure what type of resource this dialog creates
Variable descriptions ​
ResourceManager resource_manager ​
No description yet.
Array available_templates = [] ​
No description yet.
Dictionary mode_config = ​
No description yet.
Method descriptions ​
void setup_and_show( p_resource_manager: ResourceManager ) ​
Setup the dialog with resource manager and show
bool is_valid_resource_name( name: String ) ​
Validate resource name
Dictionary get_template_info( template_id: int ) ​
Get template info for display
void reset_form() ​
Reset dialog state
void suggest_name( suggested_name: String ) ​
Pre-fill dialog with suggested name
int get_selected_template_id() ​
Get currently selected template ID
String get_resource_name() ​
Get current resource name
void set_creation_mode( mode: EntityMode ) ​
Set creation mode programmatically
EntityMode get_creation_mode() ​
Get current creation mode
bool is_entity_mode() ​
Check if dialog is configured for entities
bool is_player_class_mode() ​
Check if dialog is configured for player classes