From 710f0051107f40771a25febb8f8fa141b3860553 Mon Sep 17 00:00:00 2001 From: Nordup Date: Wed, 5 Jul 2023 16:52:12 +0400 Subject: [PATCH] fix option button --- project/scenes/components/search.tscn | 1 + project/scripts/sandbox/input_sync.gd | 2 ++ 2 files changed, 3 insertions(+) diff --git a/project/scenes/components/search.tscn b/project/scenes/components/search.tscn index 23e60ed..aa0f104 100644 --- a/project/scenes/components/search.tscn +++ b/project/scenes/components/search.tscn @@ -86,6 +86,7 @@ texture = ExtResource("3_1rllf") expand_mode = 1 [node name="Downloading" type="TextureRect" parent="SearchStatus"] +visible = false self_modulate = Color(1, 1, 1, 0.8) layout_mode = 1 anchors_preset = 15 diff --git a/project/scripts/sandbox/input_sync.gd b/project/scripts/sandbox/input_sync.gd index 16d8d29..eeba4eb 100644 --- a/project/scripts/sandbox/input_sync.gd +++ b/project/scripts/sandbox/input_sync.gd @@ -23,4 +23,6 @@ func on_ui_visibility_changed(visible: bool) -> void: func _input(event: InputEvent) -> void: if input_sync == null or not should_send: return + if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT: return + input_sync.send_input_event(event)