Fixed actiovation hint in the editor

This commit is contained in:
2026-06-20 14:54:55 +03:00
parent 08c6e3a870
commit 6667047406
@@ -1,3 +1,4 @@
@tool
class_name AbstractActionTip class_name AbstractActionTip
extends Node2D extends Node2D
@@ -7,6 +8,9 @@ extends Node2D
func _ready() -> void: func _ready() -> void:
if Engine.is_editor_hint():
_updated_by_input_type(InputManager.Type.Keyboard)
else:
_updated_by_input_type(InputManager.get_type()) _updated_by_input_type(InputManager.get_type())
InputManager.type_changed.connect(_updated_by_input_type) InputManager.type_changed.connect(_updated_by_input_type)