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
extends Node2D
@@ -7,8 +8,11 @@ extends Node2D
func _ready() -> void:
_updated_by_input_type(InputManager.get_type())
InputManager.type_changed.connect(_updated_by_input_type)
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)
func _updated_by_input_type(type: InputManager.Type) -> void: