fix: icons now refresh when icons change.
This commit is contained in:
parent
83a8973e6b
commit
f6df5131dd
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ 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?)")
|
||||
_instance = self
|
||||
|
|
|
|||
Loading…
Reference in New Issue