project_teddy/scenes/settings.tscn

60 lines
1.5 KiB
Text

[gd_scene load_steps=3 format=3 uid="uid://dy5lqto7557fg"]
[ext_resource type="Script" path="res://scripts/settings.gd" id="1_gpx88"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j46gp"]
bg_color = Color(0.2, 0.2, 0.2, 1)
[node name="settings" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_gpx88")
[node name="Panel" type="Panel" 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 = -110.0
offset_top = -156.0
offset_right = 140.0
offset_bottom = 134.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_j46gp")
[node name="h_slider" type="HSlider" parent="."]
layout_mode = 2
offset_left = 498.0
offset_top = 238.0
offset_right = 682.0
offset_bottom = 254.0
max_value = 0.02
step = 0.001
[node name="Label" type="Label" parent="."]
layout_mode = 2
offset_left = 497.0
offset_top = 213.0
offset_right = 685.0
offset_bottom = 239.0
size_flags_vertical = 0
text = "Adjust Mouse sensitivity"
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 470.0
offset_top = 173.0
offset_right = 501.0
offset_bottom = 204.0
text = "X"
[connection signal="ready" from="h_slider" to="." method="_on_h_slider_ready"]
[connection signal="value_changed" from="h_slider" to="." method="_on_h_slider_value_changed"]
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]