Made Setting Options a component so I don't have to hand type and change everything

This commit is contained in:
2024-08-09 00:16:15 -05:00
parent 25e73317c7
commit 028a04bff7

View File

@ -0,0 +1,24 @@
[gd_scene load_steps=2 format=3 uid="uid://dmut5abf8v8c1"]
[ext_resource type="Script" path="res://Assets/scripts/Component Scripts/Settings_Option.gd" id="1_aieqa"]
[node name="HBoxContainer" type="HBoxContainer"]
custom_minimum_size = Vector2(0, 40)
alignment = 1
script = ExtResource("1_aieqa")
[node name="Label" type="Label" parent="."]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
text = "Mouse Sensitity"
horizontal_alignment = 1
vertical_alignment = 1
[node name="HSlider" type="HSlider" parent="."]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
value = 40.0
[connection signal="value_changed" from="HSlider" to="." method="_on_setting_slider_value_changed"]