Доработка. Отключить обработку ввода, если элемент не отображается
This commit is contained in:
@@ -159,6 +159,7 @@ func _on_drag_begin(event) -> void:
|
||||
|
||||
## Обработчик событий вввода. Вызывается godot
|
||||
func _input(event) -> void:
|
||||
if not is_visible_in_tree(): return
|
||||
if event is InputEventMouseMotion:
|
||||
if drag_fsm == DragFSM.DRAG:
|
||||
emit_signal('drag_continue', event)
|
||||
|
||||
@@ -192,6 +192,7 @@ func set_columns_aligment(alignments: Array) -> void:
|
||||
|
||||
##
|
||||
func _input(event) -> void:
|
||||
if not is_visible_in_tree(): return
|
||||
if event is InputEventKey:
|
||||
if event.pressed and in_focus:
|
||||
if event.keycode == selector_key_up:
|
||||
|
||||
Reference in New Issue
Block a user