Initial commit

This commit is contained in:
2023-10-26 15:27:25 +02:00
commit 7ed5f3155e
25 changed files with 1565 additions and 0 deletions

61
ui/pause_menu.tscn Normal file
View File

@@ -0,0 +1,61 @@
[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"]