From 28b0a1d72beaa2b9e9a2908d6f39f34d9d85b96c Mon Sep 17 00:00:00 2001 From: Thepuppetqueen57 Date: Sun, 2 Nov 2025 22:02:53 -0800 Subject: [PATCH] Added settings to the settings menu No logic yet cuz lncvrt is gonna add that (if he doesnt then I will later) --- Scenes/MainMenu.tscn | 20 --- Scenes/Settings.tscn | 139 +++++++++++++++++- .../square-check-solid-full-recolored.svg | 1 + ...uare-check-solid-full-recolored.svg.import | 43 ++++++ Textures/MenuIcons/square-solid-full.svg | 1 + .../MenuIcons/square-solid-full.svg.import | 43 ++++++ 6 files changed, 225 insertions(+), 22 deletions(-) create mode 100644 Textures/MenuIcons/square-check-solid-full-recolored.svg create mode 100644 Textures/MenuIcons/square-check-solid-full-recolored.svg.import create mode 100644 Textures/MenuIcons/square-solid-full.svg create mode 100644 Textures/MenuIcons/square-solid-full.svg.import diff --git a/Scenes/MainMenu.tscn b/Scenes/MainMenu.tscn index 641560b..5a5bb06 100644 --- a/Scenes/MainMenu.tscn +++ b/Scenes/MainMenu.tscn @@ -183,30 +183,10 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_tt5f1") theme_override_styles/pressed = SubResource("StyleBoxFlat_8saeu") theme_override_styles/hover = SubResource("StyleBoxFlat_df05h") theme_override_styles/disabled = SubResource("StyleBoxFlat_8um5k") -disabled = true text = "Settings" script = ExtResource("2_8saeu") ScenePath = "res://Scenes/Settings.tscn" -[node name="Label" type="Label" parent="Center/Buttons/HBoxContainer/Settings"] -layout_mode = 1 -anchors_preset = 7 -anchor_left = 0.5 -anchor_top = 1.0 -anchor_right = 0.5 -anchor_bottom = 1.0 -offset_left = -250.0 -offset_top = -57.0 -offset_right = 250.0 -grow_horizontal = 2 -grow_vertical = 0 -theme_override_colors/font_color = Color(1, 0.9609375, 0, 1) -theme_override_fonts/font = ExtResource("1_tt5f1") -theme_override_font_sizes/font_size = 35 -text = "Coming Soon!" -horizontal_alignment = 1 -vertical_alignment = 1 - [node name="VersionText" type="Control" parent="."] layout_mode = 1 anchors_preset = 1 diff --git a/Scenes/Settings.tscn b/Scenes/Settings.tscn index 79b1060..ce31479 100644 --- a/Scenes/Settings.tscn +++ b/Scenes/Settings.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=6 format=3 uid="uid://ctb5p8ymhcshq"] +[gd_scene load_steps=8 format=3 uid="uid://ctb5p8ymhcshq"] [ext_resource type="FontFile" uid="uid://dq7nkk7n7wrq4" path="res://Fonts/Lexend.ttf" id="1_flfri"] [ext_resource type="Script" uid="uid://bc4miccifwrk0" path="res://Scripts/SceneSwitcher.cs" id="2_yrknh"] +[ext_resource type="Texture2D" uid="uid://c0gvup8f48soq" path="res://Textures/MenuIcons/square-check-solid-full-recolored.svg" id="3_w1nw0"] +[ext_resource type="Texture2D" uid="uid://uph0cthbcrxs" path="res://Textures/MenuIcons/square-solid-full.svg" id="4_mjqtt"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w1nw0"] bg_color = Color(1, 1, 1, 1) @@ -24,7 +26,7 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -[node name="Play" type="Button" parent="."] +[node name="Back" type="Button" parent="."] layout_mode = 1 offset_left = 40.0 offset_top = 40.0 @@ -44,3 +46,136 @@ theme_override_styles/hover = SubResource("StyleBoxFlat_ppjuv") text = "Back" script = ExtResource("2_yrknh") ScenePath = "res://Scenes/MainMenu.tscn" + +[node name="SettingsContainer" type="VBoxContainer" 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 = -20.0 +offset_top = -20.0 +offset_right = -20.0 +offset_bottom = 20.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/separation = 179 +alignment = 1 + +[node name="Fullscreen" type="Control" parent="SettingsContainer"] +layout_mode = 2 + +[node name="CheckBox" type="CheckBox" parent="SettingsContainer/Fullscreen"] +layout_mode = 1 +anchors_preset = 6 +anchor_left = 1.0 +anchor_top = 0.5 +anchor_right = 1.0 +anchor_bottom = 0.5 +offset_left = -219.0 +offset_top = -63.0 +offset_right = -91.0 +offset_bottom = 65.0 +grow_horizontal = 0 +grow_vertical = 2 +theme_override_constants/icon_max_width = 120 +theme_override_icons/checked = ExtResource("3_w1nw0") +theme_override_icons/unchecked = ExtResource("4_mjqtt") +icon_alignment = 1 + +[node name="Label" type="Label" parent="SettingsContainer/Fullscreen"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -59.5 +offset_top = -47.5 +offset_right = 309.5 +offset_bottom = 47.5 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("1_flfri") +theme_override_font_sizes/font_size = 76 +text = "Fullscreen" +vertical_alignment = 1 + +[node name="Vsync" type="Control" parent="SettingsContainer"] +layout_mode = 2 + +[node name="CheckBox" type="CheckBox" parent="SettingsContainer/Vsync"] +layout_mode = 1 +anchors_preset = 6 +anchor_left = 1.0 +anchor_top = 0.5 +anchor_right = 1.0 +anchor_bottom = 0.5 +offset_left = -219.0 +offset_top = -63.0 +offset_right = -91.0 +offset_bottom = 65.0 +grow_horizontal = 0 +grow_vertical = 2 +theme_override_constants/icon_max_width = 120 +theme_override_icons/checked = ExtResource("3_w1nw0") +theme_override_icons/unchecked = ExtResource("4_mjqtt") +icon_alignment = 1 + +[node name="Label" type="Label" parent="SettingsContainer/Vsync"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -59.5 +offset_top = -47.5 +offset_right = 309.5 +offset_bottom = 47.5 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("1_flfri") +theme_override_font_sizes/font_size = 76 +text = "Vsync" +vertical_alignment = 1 + +[node name="ShowFPS" type="Control" parent="SettingsContainer"] +layout_mode = 2 + +[node name="CheckBox" type="CheckBox" parent="SettingsContainer/ShowFPS"] +layout_mode = 1 +anchors_preset = 6 +anchor_left = 1.0 +anchor_top = 0.5 +anchor_right = 1.0 +anchor_bottom = 0.5 +offset_left = -219.0 +offset_top = -63.0 +offset_right = -91.0 +offset_bottom = 65.0 +grow_horizontal = 0 +grow_vertical = 2 +theme_override_constants/icon_max_width = 120 +theme_override_icons/checked = ExtResource("3_w1nw0") +theme_override_icons/unchecked = ExtResource("4_mjqtt") +icon_alignment = 1 + +[node name="Label" type="Label" parent="SettingsContainer/ShowFPS"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -59.5 +offset_top = -47.5 +offset_right = 309.5 +offset_bottom = 47.5 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("1_flfri") +theme_override_font_sizes/font_size = 76 +text = "Show FPS" +vertical_alignment = 1 diff --git a/Textures/MenuIcons/square-check-solid-full-recolored.svg b/Textures/MenuIcons/square-check-solid-full-recolored.svg new file mode 100644 index 0000000..6223b73 --- /dev/null +++ b/Textures/MenuIcons/square-check-solid-full-recolored.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Textures/MenuIcons/square-check-solid-full-recolored.svg.import b/Textures/MenuIcons/square-check-solid-full-recolored.svg.import new file mode 100644 index 0000000..71ff899 --- /dev/null +++ b/Textures/MenuIcons/square-check-solid-full-recolored.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c0gvup8f48soq" +path="res://.godot/imported/square-check-solid-full-recolored.svg-b33662d0953d560bcb9ec3baf78ff230.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Textures/MenuIcons/square-check-solid-full-recolored.svg" +dest_files=["res://.godot/imported/square-check-solid-full-recolored.svg-b33662d0953d560bcb9ec3baf78ff230.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/Textures/MenuIcons/square-solid-full.svg b/Textures/MenuIcons/square-solid-full.svg new file mode 100644 index 0000000..6188306 --- /dev/null +++ b/Textures/MenuIcons/square-solid-full.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Textures/MenuIcons/square-solid-full.svg.import b/Textures/MenuIcons/square-solid-full.svg.import new file mode 100644 index 0000000..afe2b58 --- /dev/null +++ b/Textures/MenuIcons/square-solid-full.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://uph0cthbcrxs" +path="res://.godot/imported/square-solid-full.svg-b98e84979385e05d7d22bf0a6a2deb14.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Textures/MenuIcons/square-solid-full.svg" +dest_files=["res://.godot/imported/square-solid-full.svg-b98e84979385e05d7d22bf0a6a2deb14.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false