fix: icons now refresh when icons change.
This commit is contained in:
parent
a33a7bccc9
commit
73e4ed38d0
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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?)")
|
||||
|
|
|
|||
Loading…
Reference in New Issue