clicking on the icon makes the options show
This commit is contained in:
parent
dcf3be434b
commit
0a90f52810
2 changed files with 6 additions and 0 deletions
5
clock.gd
5
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()
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue