From 328d1139d089e3318cf291f9e8de57364b23843f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Sat, 31 Oct 2026 09:59:30 -0300 Subject: [PATCH] Find the dialogue of any typed DialogueResource property in the cue editor The inspector plugin shows the cue editor for a dialogue_cue property when the object has a dialogue property, which it recognizes with _is_dialogue_resource_property(): any property typed as DialogueResource, whatever its name. But the cue editor then looks for the dialogue in _get_resource() with a narrower check, which only matches some property names. So for a property like `@export var dialogue: DialogueResource`, the cue editor is shown but lists no cues. This change makes _get_resource() also accept properties with hint_string "DialogueResource", the same check that the inspector plugin uses to decide to show the cue editor. Helps https://github.com/endlessm/threadbare/issues/3065 --- .../components/cue_editor_property/editor_property_control.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/dialogue_manager/components/cue_editor_property/editor_property_control.gd b/addons/dialogue_manager/components/cue_editor_property/editor_property_control.gd index a5435b4de..a23fe28e9 100644 --- a/addons/dialogue_manager/components/cue_editor_property/editor_property_control.gd +++ b/addons/dialogue_manager/components/cue_editor_property/editor_property_control.gd @@ -89,7 +89,7 @@ func _get_resource() -> DialogueResource: var resource: DialogueResource for property: Dictionary in actionable.get_property_list(): - if "dialogue_resource" in property.name or "DialogueResource" in property.name or (property.class_name == "Resource" and actionable.get(property.name) is DialogueResource): + if "dialogue_resource" in property.name or "DialogueResource" in property.name or property.hint_string == "DialogueResource" or (property.class_name == "Resource" and actionable.get(property.name) is DialogueResource): resource = actionable.get(property.name) if is_instance_valid(resource):