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?)")