Skip to content

InteractionEditor ​

Inherits: VBoxContainer

Editor for a single Interaction instance Combines category/type selection with dynamic property editing

Variables ​

InteractionContextcurrent_contextInteractionContext.BOTH
DialogManagerdialog_manager
Interactioncurrent_interaction
Resourceparent_resource
Dictionaryinteraction_categories{ ... }
Array[String]available_categories[]
HBoxContainerselection_container
OptionButtoncategory_option
OptionButtontype_option
Buttonchange_button
ScrollContainerproperties_scroll
VBoxContainerproperties_container
Labelno_interaction_label
boolis_loadingfalse

Methods ​

voidsetup( context: InteractionContext, manager: DialogManager, p_parent_resource: Resource = null )
voidset_interaction( interaction: Interaction )
Interactionget_interaction()
voidclear_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 ​

  • const BASE_PATH = "res://addons/chroniclenode/data_classes/interactions/" - Directory paths
  • const COMMON_PATH = BASE_PATH + "common_interactions/"
  • const ENTITY_PATH = BASE_PATH + "entity_interaction/"
  • const INTERACTABLE_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