2023-10-25 18:25:42 +02:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://bhnv1dsggssil"]
|
2023-10-08 12:45:25 +02:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/pause_menu.gd" id="1_4u0k0"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c7j841b5u4tu3" path="res://assets/icons/resume.png" id="1_kdmgn"]
|
2023-10-25 18:25:42 +02:00
|
|
|
[ext_resource type="Theme" uid="uid://bt3yyqwlp4f7j" path="res://themes/title_text.tres" id="2_78oyc"]
|
2023-10-08 12:45:25 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cgl1iul3vlrds" path="res://assets/icons/main-menu.png" id="2_febfx"]
|
|
|
|
|
2023-10-25 18:25:42 +02:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gy317"]
|
|
|
|
bg_color = Color(0.113725, 0.113725, 0.113725, 0.819608)
|
|
|
|
corner_radius_top_left = 10
|
|
|
|
corner_radius_top_right = 10
|
|
|
|
corner_radius_bottom_right = 10
|
|
|
|
corner_radius_bottom_left = 10
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id="Theme_ntodv"]
|
|
|
|
Panel/styles/panel = SubResource("StyleBoxFlat_gy317")
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id="Theme_klyxt"]
|
|
|
|
Label/font_sizes/font_size = 25
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id="Theme_adqqq"]
|
|
|
|
Label/font_sizes/font_size = 25
|
2023-10-08 12:45:25 +02:00
|
|
|
|
|
|
|
[node name="PauseMenu" type="Control"]
|
|
|
|
process_mode = 2
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
script = ExtResource("1_4u0k0")
|
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -200.0
|
|
|
|
offset_top = -206.0
|
|
|
|
offset_right = 203.0
|
|
|
|
offset_bottom = 222.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-10-25 18:25:42 +02:00
|
|
|
theme = SubResource("Theme_ntodv")
|
2023-10-08 12:45:25 +02:00
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_bottom = 2.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme_override_constants/margin_left = 10
|
|
|
|
theme_override_constants/margin_top = 10
|
|
|
|
theme_override_constants/margin_right = 10
|
|
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
2023-10-25 18:25:42 +02:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_top = 10
|
|
|
|
theme_override_constants/margin_bottom = 20
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/MarginContainer"]
|
2023-10-08 12:45:25 +02:00
|
|
|
layout_mode = 2
|
2023-10-25 18:25:42 +02:00
|
|
|
theme = ExtResource("2_78oyc")
|
2023-10-08 12:45:25 +02:00
|
|
|
text = "PAUSED"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2023-10-18 06:09:00 +02:00
|
|
|
[node name="Resume" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
2023-10-08 12:45:25 +02:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 6
|
|
|
|
texture_normal = ExtResource("1_kdmgn")
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 6
|
2023-10-25 18:25:42 +02:00
|
|
|
theme = SubResource("Theme_klyxt")
|
2023-10-08 12:45:25 +02:00
|
|
|
text = "Resume"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
justification_flags = 162
|
|
|
|
|
|
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2023-10-18 06:09:00 +02:00
|
|
|
[node name="MainMenu" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2"]
|
2023-10-08 12:45:25 +02:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 6
|
|
|
|
texture_normal = ExtResource("2_febfx")
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 6
|
2023-10-25 18:25:42 +02:00
|
|
|
theme = SubResource("Theme_adqqq")
|
2023-10-08 12:45:25 +02:00
|
|
|
text = "Main Menu"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2023-10-25 12:25:36 +02:00
|
|
|
[connection signal="mouse_entered" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Resume" to="." method="_on_resume_hold"]
|
|
|
|
[connection signal="mouse_exited" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Resume" to="." method="_on_resume_release"]
|
2023-10-18 06:09:00 +02:00
|
|
|
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Resume" to="." method="_on_resume_button_pressed"]
|
2023-10-25 12:25:36 +02:00
|
|
|
[connection signal="mouse_entered" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/MainMenu" to="." method="_on_main_menu_hold"]
|
|
|
|
[connection signal="mouse_exited" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/MainMenu" to="." method="_on_main_menu_release"]
|
2023-10-18 06:09:00 +02:00
|
|
|
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/MainMenu" to="." method="_on_main_menu_pressed"]
|