generated from krampus/template-godot4
69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
|
[gd_scene load_steps=3 format=3 uid="uid://byvjsvavbg5xe"]
|
||
|
|
||
|
[ext_resource type="FontFile" uid="uid://b6gxwgomstkgu" path="res://assets/fonts/Geo/Geo-Italic.ttf" id="1_4nw1f"]
|
||
|
[ext_resource type="Script" path="res://src/ui/menus/pause_menu/pause_menu.gd" id="1_rd0j2"]
|
||
|
|
||
|
[node name="PauseMenu" type="Control"]
|
||
|
process_mode = 3
|
||
|
layout_mode = 3
|
||
|
anchors_preset = 15
|
||
|
anchor_right = 1.0
|
||
|
anchor_bottom = 1.0
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 2
|
||
|
script = ExtResource("1_rd0j2")
|
||
|
|
||
|
[node name="Shade" type="ColorRect" parent="."]
|
||
|
layout_mode = 1
|
||
|
anchors_preset = 15
|
||
|
anchor_right = 1.0
|
||
|
anchor_bottom = 1.0
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 2
|
||
|
color = Color(0, 0, 0, 0.156863)
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||
|
layout_mode = 1
|
||
|
anchors_preset = 3
|
||
|
anchor_left = 1.0
|
||
|
anchor_top = 1.0
|
||
|
anchor_right = 1.0
|
||
|
anchor_bottom = 1.0
|
||
|
grow_horizontal = 0
|
||
|
grow_vertical = 0
|
||
|
theme_override_constants/margin_right = 160
|
||
|
theme_override_constants/margin_bottom = 160
|
||
|
|
||
|
[node name="MenuList" type="VBoxContainer" parent="MarginContainer"]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Label" type="Label" parent="MarginContainer/MenuList"]
|
||
|
layout_mode = 2
|
||
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||
|
theme_override_constants/outline_size = 8
|
||
|
theme_override_fonts/font = ExtResource("1_4nw1f")
|
||
|
theme_override_font_sizes/font_size = 72
|
||
|
text = "Paused"
|
||
|
|
||
|
[node name="ResumeButton" type="Button" parent="MarginContainer/MenuList"]
|
||
|
layout_mode = 2
|
||
|
theme_type_variation = &"PauseMenuButton"
|
||
|
text = "Resume"
|
||
|
|
||
|
[node name="SettingsButton" type="Button" parent="MarginContainer/MenuList"]
|
||
|
layout_mode = 2
|
||
|
theme_type_variation = &"PauseMenuButton"
|
||
|
text = "Settings"
|
||
|
|
||
|
[node name="QuitButton" type="Button" parent="MarginContainer/MenuList"]
|
||
|
layout_mode = 2
|
||
|
theme_type_variation = &"PauseMenuButton"
|
||
|
theme_override_colors/font_color = Color(1, 0.36, 0.36, 1)
|
||
|
text = "Quit"
|
||
|
|
||
|
[connection signal="pressed" from="MarginContainer/MenuList/ResumeButton" to="." method="resume"]
|
||
|
[connection signal="pressed" from="MarginContainer/MenuList/SettingsButton" to="." method="settings"]
|
||
|
[connection signal="pressed" from="MarginContainer/MenuList/QuitButton" to="." method="quit"]
|