Skip to content

DialogManager ​

Inherits: Node

Centralized dialog management with guaranteed clean connections

Description ​

Use setup_dialog() to prepare any dialog - it will:

  1. Disconnect EXTERNAL signals from the dialog (not internal UI signals)

  2. Connect your callback to the dialog's selection_made signal

  3. Return the clean dialog ready to use

Variables ​

UnifiedResourceDialogunified_resource_dialog
InteractionSelectionDialoginteraction_selection_dialog

Methods ​

Nodesetup_dialog( dialog: Node, callback: Callable )
UnifiedResourceDialogshow_unified_resource_dialog_new( category: String, callback: Callable )
UnifiedResourceDialogshow_unified_resource_dialog_edit( resource: Resource, callback: Callable, is_single_type: bool = false )
UnifiedResourceDialogshow_unified_resource_dialog_single_type( resource_script: Script, display_name: String, callback: Callable )
UnifiedResourceDialogshow_encounter_action_dialog( callback: Callable )
UnifiedResourceDialogshow_combat_action_dialog( callback: Callable )
UnifiedResourceDialogshow_behavior_task_dialog( callback: Callable )
InteractionSelectionDialogshow_interaction_dialog_for_interactable( callback: Callable, parent_res: Resource = null )
InteractionSelectionDialogshow_interaction_dialog_for_entity( callback: Callable, parent_res: Resource = null )
InteractionSelectionDialogshow_interaction_dialog_edit( interaction: Interaction, callback: Callable, parent_res: Resource = null )

Variable descriptions ​

UnifiedResourceDialog unified_resource_dialog ​

No description yet.

InteractionSelectionDialog interaction_selection_dialog ​

No description yet.

Method descriptions ​

Node setup_dialog( dialog: Node, callback: Callable ) ​

No description yet.

UnifiedResourceDialog show_unified_resource_dialog_new( category: String, callback: Callable ) ​

Show unified resource dialog for creating a new resource category: "reward" or "requirement"

UnifiedResourceDialog show_unified_resource_dialog_edit( resource: Resource, callback: Callable, is_single_type: bool = false ) ​

Show unified resource dialog for editing an existing resource

UnifiedResourceDialog show_unified_resource_dialog_single_type( resource_script: Script, display_name: String, callback: Callable ) ​

Show unified resource dialog for creating a new single-type resource (e.g., CombatReaction)

UnifiedResourceDialog show_encounter_action_dialog( callback: Callable ) ​

Show unified resource dialog for encounter actions

UnifiedResourceDialog show_combat_action_dialog( callback: Callable ) ​

Show unified resource dialog for combat actions

UnifiedResourceDialog show_behavior_task_dialog( callback: Callable ) ​

Show unified resource dialog for behavior tasks

InteractionSelectionDialog show_interaction_dialog_for_interactable( callback: Callable, parent_res: Resource = null ) ​

Show interaction selection dialog for interactable objects

InteractionSelectionDialog show_interaction_dialog_for_entity( callback: Callable, parent_res: Resource = null ) ​

Show interaction selection dialog for entities (NPC/Encounter)

InteractionSelectionDialog show_interaction_dialog_edit( interaction: Interaction, callback: Callable, parent_res: Resource = null ) ​

Show interaction selection dialog for editing an existing interaction