From f6df5131ddedae7c81a67e19042fb55055b91302 Mon Sep 17 00:00:00 2001 From: Tiger Jove Date: Fri, 23 Jan 2026 15:38:21 +0100 Subject: [PATCH] fix: icons now refresh when icons change. --- src/ui/prompter/prompt_button.gd | 1 + src/ui/prompter/prompter.gd | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ui/prompter/prompt_button.gd b/src/ui/prompter/prompt_button.gd index 5c23780..17e5808 100644 --- a/src/ui/prompter/prompt_button.gd +++ b/src/ui/prompter/prompt_button.gd @@ -19,6 +19,7 @@ signal performed(action: StringName) func _ready(): + PromptManager.icons_changed.connect(action_prompt._refresh) self.pressed.connect(perform) action_prompt.pressed.connect(perform) diff --git a/src/ui/prompter/prompter.gd b/src/ui/prompter/prompter.gd index a24e24b..326cfc3 100644 --- a/src/ui/prompter/prompter.gd +++ b/src/ui/prompter/prompter.gd @@ -11,6 +11,7 @@ static var _instance : Prompter = null func _ready() -> void: _register_prompts() clear() + func _register_prompts() -> void: assert(not _instance, "Cannot have two prompters (are you trying to run the prompter itself?)")