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():
|
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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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?)")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue