Skip to content

Find the dialogue of any typed DialogueResource property in the cue e… - #3066

Merged
manuq merged 1 commit into
mainfrom
dialogue-cue-dropdown
Oct 31, 2026
Merged

manuq merged 1 commit into
mainfrom
dialogue-cue-dropdown

Conversation

@manuq

@manuq manuq commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

…ditor

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 #3065

…ditor

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 #3065
@manuq
manuq requested a review from a team as a code owner October 31, 2026 13:21
@manuq

manuq commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author

This is the patch I'll try to upstream. I'm merging it separately in case we have to maintain it.

@manuq
manuq merged commit cae5a93 into main Oct 31, 2026
7 checks passed
@manuq
manuq deleted the dialogue-cue-dropdown branch October 31, 2026 13:24
@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/dialogue-cue-dropdown/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant