project_teddy/scenes/settings.tscn

61 lines
1.5 KiB
Text
Raw Normal View History

2023-01-26 13:23:13 -07:00
[gd_scene load_steps=3 format=3 uid="uid://dy5lqto7557fg"]
2023-01-26 12:17:54 -07:00
[ext_resource type="Script" path="res://scripts/settings.gd" id="1_gpx88"]
2023-01-26 13:23:13 -07:00
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j46gp"]
bg_color = Color(0.2, 0.2, 0.2, 1)
2023-01-26 12:17:54 -07:00
[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")
2023-01-26 13:23:13 -07:00
[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 = -121.0
2023-01-26 13:23:13 -07:00
offset_top = -156.0
offset_right = 129.0
2023-01-26 13:23:13 -07:00
offset_bottom = 134.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_j46gp")
2023-01-26 12:17:54 -07:00
[node name="h_slider" type="HSlider" parent="."]
layout_mode = 2
offset_left = 487.0
2023-01-26 13:23:13 -07:00
offset_top = 238.0
offset_right = 671.0
2023-01-26 13:23:13 -07:00
offset_bottom = 254.0
2023-01-26 12:17:54 -07:00
max_value = 0.02
step = 0.001
[node name="Label" type="Label" parent="."]
layout_mode = 2
offset_left = 486.0
2023-01-26 13:23:13 -07:00
offset_top = 213.0
offset_right = 674.0
2023-01-26 13:23:13 -07:00
offset_bottom = 239.0
2023-01-26 12:17:54 -07:00
size_flags_vertical = 0
text = "Adjust Mouse sensitivity"
2023-01-26 13:23:13 -07:00
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 459.0
2023-01-26 13:23:13 -07:00
offset_top = 173.0
offset_right = 490.0
2023-01-26 13:23:13 -07:00
offset_bottom = 204.0
text = "X"
2023-01-26 12:17:54 -07:00
[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"]
2023-01-26 13:23:13 -07:00
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]