mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
Volume Sliders
This commit is contained in:
parent
bc2c3de525
commit
c75d9d226f
19 changed files with 257 additions and 49 deletions
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bnhcgsyh6wfo3"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bnhcgsyh6wfo3"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="1_il8fq"]
|
||||
[ext_resource type="Script" uid="uid://c1874e6ryvd1g" path="res://Scripts/UI/OptionsMenu.cs" id="1_mpohc"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4fhb0wyc5vw" path="res://Sprites/UI/BackIcon.png" id="2_4kao5"]
|
||||
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_l5i2j"]
|
||||
[ext_resource type="StyleBox" uid="uid://ctw2hju32l3rg" path="res://Resources/Styles/PixelStyleBoxRed.tres" id="3_l5i2j"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwhm3802fhdax" path="res://Scenes/HUD/Volume_Slider.tscn" id="6_x23el"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_4kao5"]
|
||||
font = ExtResource("2_l5i2j")
|
||||
|
|
@ -12,13 +13,14 @@ font_size = 20
|
|||
outline_size = 4
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="OptionsMenu" type="VBoxContainer"]
|
||||
[node name="OptionsMenu" type="VBoxContainer" node_paths=PackedStringArray("ResolutionsList")]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_mpohc")
|
||||
ResolutionsList = NodePath("ScrollContainer/HBoxContainer/HFlowContainer/Resolution/ResolutionsList")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
|
@ -58,19 +60,15 @@ layout_mode = 2
|
|||
text = "Note: The options currently do nothing"
|
||||
|
||||
[node name="Resolution" type="VBoxContainer" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="ScrollContainer/HBoxContainer/HFlowContainer/Resolution"]
|
||||
layout_mode = 2
|
||||
text = "Resolution"
|
||||
|
||||
[node name="OptionButton" type="OptionButton" parent="ScrollContainer/HBoxContainer/HFlowContainer/Resolution"]
|
||||
[node name="ResolutionsList" type="OptionButton" parent="ScrollContainer/HBoxContainer/HFlowContainer/Resolution"]
|
||||
layout_mode = 2
|
||||
item_count = 2
|
||||
popup/item_0/text = "1920x1080"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "Test 1"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
|
||||
layout_mode = 2
|
||||
|
|
@ -80,7 +78,7 @@ text = "VSync"
|
|||
[node name="CheckBox2" type="CheckBox" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
text = "Whatever"
|
||||
text = "Full Screen"
|
||||
|
||||
[node name="CheckBox3" type="CheckBox" parent="ScrollContainer/HBoxContainer/HFlowContainer"]
|
||||
layout_mode = 2
|
||||
|
|
@ -95,16 +93,28 @@ text = "adsfdsaf"
|
|||
[node name="VBoxContainer3" type="VBoxContainer" parent="ScrollContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer3" type="VBoxContainer" parent="ScrollContainer/HBoxContainer/VBoxContainer3"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_il8fq")
|
||||
|
||||
[node name="Label" type="Label" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer3"]
|
||||
layout_mode = 2
|
||||
text = "Master Volume"
|
||||
|
||||
[node name="MusicSlider" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer3" instance=ExtResource("6_x23el")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/HBoxContainer/VBoxContainer3"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_il8fq")
|
||||
|
||||
[node name="Label" type="Label" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Music Volume"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer"]
|
||||
[node name="MusicSlider" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer" instance=ExtResource("6_x23el")]
|
||||
layout_mode = 2
|
||||
value = 50.0
|
||||
AudioBusName = &"Music"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="ScrollContainer/HBoxContainer/VBoxContainer3"]
|
||||
layout_mode = 2
|
||||
|
|
@ -113,8 +123,8 @@ layout_mode = 2
|
|||
layout_mode = 2
|
||||
text = "Sound Effects Volume"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer2"]
|
||||
[node name="SoundSlider" parent="ScrollContainer/HBoxContainer/VBoxContainer3/VBoxContainer2" instance=ExtResource("6_x23el")]
|
||||
layout_mode = 2
|
||||
value = 50.0
|
||||
AudioBusName = &"Effects"
|
||||
|
||||
[connection signal="pressed" from="HBoxContainer/BackButton" to="." method="_on_back_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue