Added final features for this release. Now only polishing (if needed) remains.

Features: Sacrifice-Node, Maintain-Node, Options for screen type, lightcolor and soundvolume, tied in sound effects, game pause when menu is open, visibly open up gate when opening it.
This commit is contained in:
2026-05-10 14:09:14 +02:00
parent 228e81ab4e
commit 8170b700b2
28 changed files with 797 additions and 14 deletions
+44 -4
View File
@@ -1,16 +1,28 @@
[gd_scene format=3 uid="uid://cpq7ppe8bw2bq"]
[node name="Options" type="PanelContainer" unique_id=230632848]
[ext_resource type="Script" path="res://Scripts/UI/Menus/OptionsMenu.cs" id="1_options"]
[node name="Options" type="PanelContainer" unique_id=230632848 node_paths=PackedStringArray("screenMode", "soundVolume", "lightColor")]
custom_minimum_size = Vector2(420, 260)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -210.0
offset_top = -130.0
offset_right = 210.0
offset_bottom = 130.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_options")
screenMode = NodePath("VBoxContainer/GridContainer/ScreenMode")
soundVolume = NodePath("VBoxContainer/GridContainer/SoundVolume")
lightColor = NodePath("VBoxContainer/GridContainer/LightColor")
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1149639381]
layout_mode = 2
theme_override_constants/separation = 10
[node name="Title" type="RichTextLabel" parent="VBoxContainer" unique_id=1694731141]
layout_mode = 2
@@ -24,16 +36,44 @@ horizontal_alignment = 1
layout_mode = 2
columns = 2
[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer" unique_id=189106367]
[node name="ScreenModeLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Light color: "
text = "Screen"
fit_content = true
autowrap_mode = 0
[node name="ColorPickerButton" type="ColorPickerButton" parent="VBoxContainer/GridContainer" unique_id=1830638845]
[node name="ScreenMode" type="OptionButton" parent="VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="SoundVolumeLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Sound"
fit_content = true
autowrap_mode = 0
[node name="SoundVolume" type="HSlider" parent="VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 100.0
step = 1.0
value = 80.0
[node name="LightColorLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Light color"
fit_content = true
autowrap_mode = 0
[node name="LightColor" type="ColorPickerButton" parent="VBoxContainer/GridContainer" unique_id=1830638845]
layout_mode = 2
size_flags_horizontal = 3
[node name="Button" type="Button" parent="VBoxContainer" unique_id=1183264327]
layout_mode = 2
text = "Close"
[connection signal="item_selected" from="VBoxContainer/GridContainer/ScreenMode" to="." method="OnScreenModeSelected"]
[connection signal="value_changed" from="VBoxContainer/GridContainer/SoundVolume" to="." method="OnSoundVolumeChanged"]
[connection signal="color_changed" from="VBoxContainer/GridContainer/LightColor" to="." method="OnLightColorChanged"]
[connection signal="pressed" from="VBoxContainer/Button" to="." method="CloseOptions"]