2 Commits

View File

@@ -10,6 +10,10 @@ func _on_play_button_pressed() -> void:
print(\"Starting game by pressing button...\") print(\"Starting game by pressing button...\")
GameManager.start_game() GameManager.start_game()
self.queue_free() self.queue_free()
func _on_settings_wheel_button_pressed() -> void:
$Settings.visible = not $Settings.visible
" "
[sub_resource type="LabelSettings" id="LabelSettings_rhts7"] [sub_resource type="LabelSettings" id="LabelSettings_rhts7"]
@@ -54,8 +58,9 @@ horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1
[node name="Settings" parent="." unique_id=112964493 node_paths=PackedStringArray("MenuPanelRef") instance=ExtResource("1_06t4h")] [node name="Settings" parent="." unique_id=112964493 node_paths=PackedStringArray("MenuPanelRef") instance=ExtResource("1_06t4h")]
visible = false
layout_mode = 1 layout_mode = 1
MenuPanelRef = NodePath("../SettingsWheelButton") MenuPanelRef = NodePath("..")
[node name="SettingsWheelButton" type="Button" parent="." unique_id=2147291321] [node name="SettingsWheelButton" type="Button" parent="." unique_id=2147291321]
layout_mode = 0 layout_mode = 0
@@ -63,3 +68,5 @@ offset_left = 898.0
offset_top = 46.0 offset_top = 46.0
offset_right = 954.0 offset_right = 954.0
offset_bottom = 93.0 offset_bottom = 93.0
[connection signal="pressed" from="SettingsWheelButton" to="." method="_on_settings_wheel_button_pressed"]