pause menu WIP
This commit is contained in:
parent
033718351e
commit
9d43b070af
7 changed files with 258 additions and 8 deletions
87
gmtk_2024/menu/PauseMenu.tscn
Normal file
87
gmtk_2024/menu/PauseMenu.tscn
Normal file
|
@ -0,0 +1,87 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://s683ua4q2ewm"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://cohbys634cf18" path="res://menu/main_menu/MainMenuTheme.tres" id="1_fna2g"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://objects/CRT.tscn" id="2_vaod1"]
|
||||
[ext_resource type="Script" path="res://scripts/pause_menu_control.gd" id="3_tyr11"]
|
||||
[ext_resource type="FontFile" uid="uid://d3pbvdemdbxes" path="res://CommodoreSixtyFour.ttf" id="4_u4plf"]
|
||||
|
||||
[node name="PauseMenu" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_fna2g")
|
||||
|
||||
[node name="CanvasLayer" parent="." instance=ExtResource("2_vaod1")]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_tyr11")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Buttons" type="VBoxContainer" parent="Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("4_u4plf")
|
||||
text = ">"
|
||||
|
||||
[node name="continue" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "continue"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("4_u4plf")
|
||||
text = ">"
|
||||
|
||||
[node name="restart" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "restart"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("4_u4plf")
|
||||
text = ">"
|
||||
|
||||
[node name="main menu" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
layout_mode = 2
|
||||
text = "main menu"
|
||||
flat = true
|
||||
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer/continue" to="Control" method="_on_continue_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer2/restart" to="Control" method="_on_restart_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer3/main menu" to="Control" method="_on_back_to_main_menu_button_pressed"]
|
|
@ -62,9 +62,9 @@ layout_mode = 2
|
|||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="credits" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
[node name="level_select" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "credits"
|
||||
text = "level selection"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
|
@ -77,11 +77,27 @@ layout_mode = 2
|
|||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="quit" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
[node name="credits" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
layout_mode = 2
|
||||
text = "credits"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer4" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer4"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="quit" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer4"]
|
||||
layout_mode = 2
|
||||
text = "quit"
|
||||
flat = true
|
||||
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer/start" to="Control" method="_on_start_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer2/credits" to="Control" method="_on_credits_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer3/quit" to="Control" method="_on_quit_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer2/level_select" to="Control" method="_on_level_select_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer3/credits" to="Control" method="_on_credits_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer4/quit" to="Control" method="_on_quit_button_pressed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue