[gd_scene load_steps=6 format=3 uid="uid://c6f7s7bsitw13"] [ext_resource type="Texture2D" uid="uid://v1jfj7f777uq" path="res://ui/container_bg.png" id="1_2ty5h"] [ext_resource type="Script" uid="uid://c62xd44e27oki" path="res://scripts/settings_menu.gd" id="2_tog15"] [ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="3_ap6h8"] [ext_resource type="Script" uid="uid://llka3aa044jo" path="res://scripts/click.gd" id="4_jpwvl"] [sub_resource type="CanvasTexture" id="CanvasTexture_1evs6"] diffuse_texture = ExtResource("1_2ty5h") [node name="SettingsMenu" type="NinePatchRect" node_paths=PackedStringArray("volume_slider", "fullscreen_check", "vsync_check", "glow_check")] visible = false anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -100.0 offset_top = -100.0 offset_right = 100.0 offset_bottom = 100.0 grow_horizontal = 2 grow_vertical = 2 texture = SubResource("CanvasTexture_1evs6") patch_margin_left = 8 patch_margin_top = 8 patch_margin_right = 8 patch_margin_bottom = 8 script = ExtResource("2_tog15") volume_slider = NodePath("MarginContainer/VBoxContainer/HBoxContainer/Volume") fullscreen_check = NodePath("MarginContainer/VBoxContainer/Fullscreen/CheckBox") vsync_check = NodePath("MarginContainer/VBoxContainer/Vsync/CheckBox") glow_check = NodePath("MarginContainer/VBoxContainer/Glow/CheckBox") [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("3_ap6h8") [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] layout_mode = 2 theme = ExtResource("3_ap6h8") [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "Volume" [node name="Volume" type="HSlider" parent="MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 theme = ExtResource("3_ap6h8") max_value = 1.0 step = 0.01 tick_count = 5 ticks_on_borders = true ticks_position = 3 [node name="Fullscreen" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Fullscreen"] layout_mode = 2 size_flags_horizontal = 0 text = "Fullscreen" [node name="CheckBox" type="CheckBox" parent="MarginContainer/VBoxContainer/Fullscreen"] layout_mode = 2 size_flags_horizontal = 10 [node name="Vsync" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Vsync"] layout_mode = 2 size_flags_horizontal = 0 text = "Vsync" [node name="CheckBox" type="CheckBox" parent="MarginContainer/VBoxContainer/Vsync"] layout_mode = 2 size_flags_horizontal = 10 [node name="Glow" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Glow"] layout_mode = 2 size_flags_horizontal = 0 text = "Glow" [node name="CheckBox" type="CheckBox" parent="MarginContainer/VBoxContainer/Glow"] layout_mode = 2 size_flags_horizontal = 10 [node name="Buttons" type="MarginContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 10 [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer/Buttons"] layout_mode = 2 size_flags_vertical = 10 [node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer/Buttons/HBoxContainer2"] layout_mode = 2 size_flags_horizontal = 0 text = "Exit" script = ExtResource("4_jpwvl") [node name="ContinueButton" type="Button" parent="MarginContainer/VBoxContainer/Buttons/HBoxContainer2"] layout_mode = 2 size_flags_horizontal = 10 text = "Continue" script = ExtResource("4_jpwvl") [connection signal="value_changed" from="MarginContainer/VBoxContainer/HBoxContainer/Volume" to="." method="_on_volume_changed"] [connection signal="toggled" from="MarginContainer/VBoxContainer/Fullscreen/CheckBox" to="." method="_on_fullscreen_toggled"] [connection signal="toggled" from="MarginContainer/VBoxContainer/Vsync/CheckBox" to="." method="_on_vsync_toggled"] [connection signal="toggled" from="MarginContainer/VBoxContainer/Glow/CheckBox" to="." method="_on_glow_toggled"] [connection signal="pressed" from="MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ExitButton" to="." method="_on_exit_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ContinueButton" to="." method="_on_continue_button_pressed"]