InteractionEditor ​
Inherits: VBoxContainer
Editor for a single Interaction instance Combines category/type selection with dynamic property editing
Variables ​
InteractionContext | current_context | InteractionContext.BOTH |
DialogManager | dialog_manager | |
Interaction | current_interaction | |
Resource | parent_resource | |
Dictionary | interaction_categories | { ... } |
Array[String] | available_categories | [] |
HBoxContainer | selection_container | |
OptionButton | category_option | |
OptionButton | type_option | |
Button | change_button | |
ScrollContainer | properties_scroll | |
VBoxContainer | properties_container | |
Label | no_interaction_label | |
bool | is_loading | false |
Methods ​
void | setup( context: InteractionContext, manager: DialogManager, p_parent_resource: Resource = null ) |
void | set_interaction( interaction: Interaction ) |
Interaction | get_interaction() |
void | clear_interaction() |
Signals ​
interaction_changed() ​
Enumerations ​
enum InteractionContext ​
========== ENUMS ==========
- ENTITY =
0- For Entity-based interactions - INTERACTABLE =
1- For InteractableObject interactions - BOTH =
2- Show all interactions
Constants ​
constBASE_PATH ="res://addons/chroniclenode/data_classes/interactions/"- Directory pathsconstCOMMON_PATH =BASE_PATH + "common_interactions/"constENTITY_PATH =BASE_PATH + "entity_interaction/"constINTERACTABLE_PATH =BASE_PATH + "interactable_objects/"
Variable descriptions ​
InteractionContext current_context = InteractionContext.BOTH ​
========== PROPERTIES ==========
DialogManager dialog_manager ​
No description yet.
Interaction current_interaction ​
No description yet.
Resource parent_resource ​
Reference to parent resource (e.g., InteractableDefinition)
Dictionary interaction_categories ​
Interaction categories from directory scan
Array[String] available_categories = [] ​
Available categories based on context
HBoxContainer selection_container ​
UI Components - Selection Section
OptionButton category_option ​
No description yet.
OptionButton type_option ​
No description yet.
Button change_button ​
No description yet.
ScrollContainer properties_scroll ​
UI Components - Properties Section
VBoxContainer properties_container ​
No description yet.
Label no_interaction_label ​
No description yet.
bool is_loading = false ​
No description yet.
Method descriptions ​
void setup( context: InteractionContext, manager: DialogManager, p_parent_resource: Resource = null ) ​
Setup the editor with a specific context and dialog manager
void set_interaction( interaction: Interaction ) ​
========== PUBLIC API ========== Load an existing interaction into the editor
Interaction get_interaction() ​
Get the current interaction
void clear_interaction() ​
Clear the current interaction