fix: icons now refresh when icons change.

This commit is contained in:
tiger tiger tiger 2026-01-23 15:38:21 +01:00
parent 83a8973e6b
commit f6df5131dd
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ signal performed(action: StringName)
func _ready(): func _ready():
PromptManager.icons_changed.connect(action_prompt._refresh)
self.pressed.connect(perform) self.pressed.connect(perform)
action_prompt.pressed.connect(perform) action_prompt.pressed.connect(perform)

View File

@ -11,6 +11,7 @@ static var _instance : Prompter = null
func _ready() -> void: func _ready() -> void:
_register_prompts() _register_prompts()
clear() clear()
func _register_prompts() -> void: func _register_prompts() -> void:
assert(not _instance, "Cannot have two prompters (are you trying to run the prompter itself?)") assert(not _instance, "Cannot have two prompters (are you trying to run the prompter itself?)")