initial commit
This commit is contained in:
57
Scenes/UI/pause_menu.tscn
Normal file
57
Scenes/UI/pause_menu.tscn
Normal file
@@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b54u8nvjd4p6l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cnw8764a6hljr" path="res://Assets/Scripts/UI/pause_menu.gd" id="1_emv3i"]
|
||||
|
||||
[node name="PauseMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_emv3i")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" 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 = -611.0
|
||||
offset_top = -549.0
|
||||
offset_right = 611.0
|
||||
offset_bottom = 549.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="QuitGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "Quit"
|
||||
|
||||
[node name="ResumeGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "Resume"
|
||||
|
||||
[node name="CameraSensitivityLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Camera Sensitivity"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="MarginContainer/VBoxContainer/CameraSensitivityLabel"]
|
||||
layout_mode = 2
|
||||
offset_top = -20.0
|
||||
offset_right = 492.0
|
||||
offset_bottom = -4.0
|
||||
max_value = 0.01
|
||||
step = 0.0
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/QuitGameButton" to="." method="_on_quit_game_button_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeGameButton" to="." method="_on_resume_game_button_pressed"]
|
||||
[connection signal="value_changed" from="MarginContainer/VBoxContainer/CameraSensitivityLabel/HSlider" to="." method="_on_h_slider_value_changed"]
|
||||
Reference in New Issue
Block a user