62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dilbjuywlv0mc"]
|
|
|
|
[ext_resource type="Shader" path="res://src/shaders/ui/blur.gdshader" id="1_q1q1u"]
|
|
[ext_resource type="Script" path="res://ui/src/pause_menu.gd" id="1_qw2fh"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_dcwl4"]
|
|
shader = ExtResource("1_q1q1u")
|
|
shader_parameter/blur_amount = 3.0
|
|
shader_parameter/tint = Color(0.5, 0.5, 0.5, 1)
|
|
|
|
[node name="PauseMenu" type="Control"]
|
|
process_mode = 2
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_qw2fh")
|
|
|
|
[node name="MainPanel" type="PanelContainer" parent="."]
|
|
material = SubResource("ShaderMaterial_dcwl4")
|
|
layout_mode = 1
|
|
anchors_preset = 13
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MainPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 30
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 30
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/MarginContainer"]
|
|
custom_minimum_size = Vector2(300, 0)
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="MainPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"HeaderLarge"
|
|
text = "Paused"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="ContinueButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Continue"
|
|
|
|
[node name="QuitButton" type="Button" parent="MainPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Quit
|
|
"
|
|
|
|
[connection signal="pressed" from="MainPanel/MarginContainer/VBoxContainer/ContinueButton" to="." method="_on_continue"]
|
|
[connection signal="pressed" from="MainPanel/MarginContainer/VBoxContainer/QuitButton" to="." method="_on_quit"]
|