added brightness slider
This commit is contained in:
parent
abd25a59a7
commit
299d5fe09d
9 changed files with 72 additions and 9 deletions
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://fqg6y7xp34u0"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://fqg6y7xp34u0"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/gui/menu/options.gd" id="1_0813x"]
|
||||
[ext_resource type="Theme" uid="uid://dpktnl3r5wul1" path="res://src/gui/menu_theme.tres" id="1_stpo1"]
|
||||
[ext_resource type="Script" path="res://src/gui/menu/volume_slider.gd" id="3_2vqm2"]
|
||||
[ext_resource type="Script" path="res://src/gui/menu/brightness.gd" id="4_gybdg"]
|
||||
|
||||
[node name="options" type="Control"]
|
||||
[node name="options" type="Control" node_paths=PackedStringArray("first_selection")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -13,6 +14,7 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
theme = ExtResource("1_stpo1")
|
||||
script = ExtResource("1_0813x")
|
||||
first_selection = NodePath("Background/BackButton")
|
||||
|
||||
[node name="Background" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
@ -49,9 +51,9 @@ anchor_top = 0.5
|
|||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -102.0
|
||||
offset_top = -84.0
|
||||
offset_top = -102.0
|
||||
offset_right = 102.0
|
||||
offset_bottom = 120.0
|
||||
offset_bottom = 102.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
|
|
@ -120,6 +122,20 @@ step = 0.001
|
|||
script = ExtResource("3_2vqm2")
|
||||
bus_name = "Sfx"
|
||||
|
||||
[node name="Label2" type="Label" parent="Background/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "BRIGHTNESS"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Brightness" type="HSlider" parent="Background/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(125, 0)
|
||||
layout_mode = 2
|
||||
min_value = 0.01
|
||||
max_value = 4.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
script = ExtResource("4_gybdg")
|
||||
|
||||
[node name="BackButton" type="Button" parent="Background"]
|
||||
custom_minimum_size = Vector2(120, 40)
|
||||
layout_mode = 1
|
||||
|
|
@ -139,4 +155,5 @@ size_flags_vertical = 8
|
|||
focus_neighbor_bottom = NodePath("../StartButton")
|
||||
text = "Back"
|
||||
|
||||
[connection signal="value_changed" from="Background/VBoxContainer/Brightness" to="Background/VBoxContainer/Brightness" method="_on_value_changed"]
|
||||
[connection signal="pressed" from="Background/BackButton" to="." method="_on_back_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue