project_teddy/scenes/settings.tscn
2023-03-11 14:18:11 -07:00

66 lines
1.9 KiB
Text

[gd_scene load_steps=3 format=3 uid="uid://dy5lqto7557fg"]
[ext_resource type="Script" path="res://scripts/settings.gd" id="1_gpx88"]
[ext_resource type="Texture2D" uid="uid://yg8aqnkfjqjf" path="res://2DArt/settings/SettingsMenu.png" id="2_1lv8m"]
[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="SettingsMenu" type="Sprite2D" parent="."]
position = Vector2(578.112, 326.125)
scale = Vector2(0.954846, 0.954846)
texture = ExtResource("2_1lv8m")
[node name="h_slider" type="HSlider" parent="."]
layout_mode = 2
offset_left = 487.0
offset_top = 238.0
offset_right = 671.0
offset_bottom = 254.0
max_value = 0.02
step = 0.001
[node name="Label" type="Label" parent="."]
layout_mode = 2
offset_left = 486.0
offset_top = 213.0
offset_right = 674.0
offset_bottom = 239.0
size_flags_vertical = 0
text = "Adjust Mouse sensitivity"
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 862.0
offset_top = 82.0
offset_right = 893.0
offset_bottom = 113.0
text = "X"
flat = true
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 512.0
offset_top = 326.0
offset_right = 596.0
offset_bottom = 352.0
text = "Fullscreen:"
[node name="fullscreenBox" type="CheckBox" parent="."]
layout_mode = 0
offset_left = 601.0
offset_top = 326.0
offset_right = 625.0
offset_bottom = 350.0
[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"]
[connection signal="button_down" from="fullscreenBox" to="." method="_on_fullscreen_box_button_down"]
[connection signal="button_up" from="fullscreenBox" to="." method="_on_fullscreen_box_button_up"]