Fixed actiovation hint in the editor
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@tool
|
||||
class_name AbstractActionTip
|
||||
extends Node2D
|
||||
|
||||
@@ -7,6 +8,9 @@ extends Node2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
_updated_by_input_type(InputManager.Type.Keyboard)
|
||||
else:
|
||||
_updated_by_input_type(InputManager.get_type())
|
||||
InputManager.type_changed.connect(_updated_by_input_type)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user