From 0a90f5281094f0e313753d47110143d0d2a230bf Mon Sep 17 00:00:00 2001 From: Tabby <41929769+tabby-cat-nya@users.noreply.github.com> Date: Mon, 1 Jun 2026 19:21:45 +1000 Subject: [PATCH] clicking on the icon makes the options show --- clock.gd | 5 +++++ main.tscn | 1 + 2 files changed, 6 insertions(+) diff --git a/clock.gd b/clock.gd index 41a5cb3..0ec5322 100644 --- a/clock.gd +++ b/clock.gd @@ -141,3 +141,8 @@ func _on_popup_menu_id_pressed(id: int) -> void: get_tree().quit() if id == 1: options_window.show() + + +func _on_status_indicator_pressed(mouse_button: int, mouse_position: Vector2i) -> void: + if(mouse_button == 1): + options_window.show() diff --git a/main.tscn b/main.tscn index a899834..4fa4b23 100644 --- a/main.tscn +++ b/main.tscn @@ -453,6 +453,7 @@ layout_mode = 2 size_flags_horizontal = 3 text = "Save" +[connection signal="pressed" from="StatusIndicator" to="." method="_on_status_indicator_pressed"] [connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="." method="_on_popup_menu_id_pressed"] [connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"] [connection signal="close_requested" from="Options Window" to="Options Window" method="_on_close_requested"]