menu et +

This commit is contained in:
2024-10-19 20:22:03 +02:00
parent 360a866db9
commit 1bca0ada4f
12 changed files with 345 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://co0u7xd45nxv1"]
[gd_scene load_steps=8 format=3 uid="uid://co0u7xd45nxv1"]
[ext_resource type="FontFile" uid="uid://c0i81edd5mitx" path="res://font/October Crow.ttf" id="1_ndt1a"]
[ext_resource type="Script" path="res://script/Menu.cs" id="1_pfhrs"]
@@ -9,7 +9,9 @@
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1bsfp"]
[node name="menu" type="Control"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_q8v2y"]
[node name="menu" type="Control" node_paths=PackedStringArray("pause", "trick")]
process_mode = 3
layout_mode = 3
anchors_preset = 15
@@ -18,6 +20,8 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_pfhrs")
pause = NodePath("pause")
trick = NodePath("trick")
[node name="background" type="Panel" parent="."]
layout_mode = 1
@@ -32,13 +36,14 @@ theme_override_styles/panel = SubResource("StyleBoxEmpty_ukgpa")
position = Vector2(200, 150)
texture = ExtResource("2_e3nc5")
[node name="Panel" type="Panel" parent="."]
[node name="pause" type="Panel" parent="."]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_1bsfp")
[node name="Paused" type="Label" parent="Panel"]
[node name="Paused" type="Label" parent="pause"]
layout_mode = 2
offset_left = 28.0
offset_top = 17.0
@@ -48,7 +53,7 @@ theme_override_fonts/font = ExtResource("1_ndt1a")
theme_override_font_sizes/font_size = 64
text = "Paused"
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
[node name="VBoxContainer" type="VBoxContainer" parent="pause"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
offset_left = 250.0
@@ -59,29 +64,105 @@ size_flags_horizontal = 4
theme_override_constants/separation = 16
alignment = 1
[node name="Resume" type="Button" parent="Panel/VBoxContainer"]
[node name="Resume" type="Button" parent="pause/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Resume
"
[node name="Trick" type="Button" parent="Panel/VBoxContainer"]
[node name="Trick" type="Button" parent="pause/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Trick
"
[node name="exit" type="Button" parent="Panel/VBoxContainer"]
[node name="exit" type="Button" parent="pause/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Exit
"
[node name="TrickMenu" type="Control" parent="."]
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="trick" type="Panel" parent="."]
layout_mode = 1
pivot_offset = Vector2(-200, -150)
theme_override_styles/panel = SubResource("StyleBoxEmpty_q8v2y")
[connection signal="button_down" from="Panel/VBoxContainer/Resume" to="." method="ResumeDown"]
[connection signal="button_down" from="Panel/VBoxContainer/Trick" to="." method="OptionDown"]
[connection signal="button_down" from="Panel/VBoxContainer/exit" to="." method="ExitDown"]
[node name="GridContainer" type="GridContainer" parent="trick"]
layout_direction = 2
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 110.0
offset_top = 30.0
offset_right = 283.0
offset_bottom = 246.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/h_separation = 15
theme_override_constants/v_separation = 20
columns = 2
[node name="Label" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label2" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label3" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label4" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label5" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label6" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label7" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="Label8" type="Label" parent="trick/GridContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
theme_override_font_sizes/font_size = 36
text = "speel"
[node name="exit" type="Button" parent="trick"]
layout_mode = 0
offset_left = 22.0
offset_top = 246.0
offset_right = 74.0
offset_bottom = 284.0
theme = ExtResource("2_166c6")
text = "Exit
"
[connection signal="button_down" from="pause/VBoxContainer/Resume" to="." method="ResumeDown"]
[connection signal="button_down" from="pause/VBoxContainer/Trick" to="." method="OptionDown"]
[connection signal="button_down" from="pause/VBoxContainer/exit" to="." method="ExitDown"]
[connection signal="pressed" from="trick/exit" to="." method="ExitTrick"]