StarterEquipmentEditor ​
Inherits: VBoxContainer
The starting equipment of a player class, or the equipment override of a character: one row for each equipment slot, with the item in it, a button to choose another, one to see it and one to take it out. The controls are in the scene (starter_equipment_editor.tscn); only the rows are built in code, there are as many as the slots. Works with both PlayerClassDefinition and CharacterDefinition
Variables ​
DatabaseResource # Can be PlayerClassDefinition or CharacterDefinition | current_definition | |
ResourceManager | resource_manager | |
DialogManager | dialog_manager | |
bool | is_loading | false |
Array[EquipmentSlotDefinition] | all_equipment_slots | [] |
bool | is_player_class | false |
Methods ​
StarterEquipmentEditor | create() static |
void | setup_managers( p_resource_manager: ResourceManager, p_dialog_manager: DialogManager ) |
void | load_definition( definition: DatabaseResource ) |
Signals ​
equipment_changed() ​
show_info_dialog( title: String, message: String ) ​
show_error_dialog( message: String ) ​
Constants ​
StringSCENE_PATH ="res://addons/chroniclenode/editor_components/editors/entities/property_edito...
Variable descriptions ​
DatabaseResource # Can be PlayerClassDefinition or CharacterDefinition current_definition ​
No description yet.
ResourceManager resource_manager ​
No description yet.
DialogManager dialog_manager ​
No description yet.
bool is_loading = false ​
No description yet.
Array[EquipmentSlotDefinition] all_equipment_slots = [] ​
No description yet.
bool is_player_class = false ​
No description yet.
Method descriptions ​
StarterEquipmentEditor create() ​
The editor, made from its scene
void setup_managers( p_resource_manager: ResourceManager, p_dialog_manager: DialogManager ) ​
No description yet.
void load_definition( definition: DatabaseResource ) ​
No description yet.