[gd_scene load_steps=14 format=3]

[ext_resource type="FontVariation" path="res://assets/font/resource/menu_header.tres" id="1"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/settingtemp_on1.png" id="2"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/settingtemp_on2.png" id="3"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/settingtemp1.png" id="4"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/settingtemp2.png" id="5"]
[ext_resource type="Script" path="res://scenes/settings_screen/settings_screen.gd" id="6"]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_off.png" id="7"]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_on.png" id="8"]
[ext_resource type="Theme" path="res://assets/main.tres" id="9"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/eye_closed.png" id="10"]
[ext_resource type="Texture2D" path="res://assets/texture/settings/eye_open.png" id="11"]

[sub_resource type="Gradient" id="1"]
offsets = PackedFloat32Array(0, 0.256983)
colors = PackedColorArray(0, 0, 0, 0.262745, 0, 0, 0, 0)

[sub_resource type="GradientTexture2D" id="12"]
gradient = SubResource("1")
height = 32
fill_to = Vector2(0, 1)

[node name="settings_screen" type="VBoxContainer"]
offset_right = 350.0
offset_bottom = 647.0
pivot_offset = Vector2(-354, 186)
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("9")
theme_override_constants/separation = 0
script = ExtResource("6")

[node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 350.0
offset_bottom = 45.0
custom_minimum_size = Vector2(0, 45)
mouse_filter = 2
alignment = 1

[node name="Label" type="Label" parent="HBoxContainer"]
offset_left = 123.0
offset_top = 10.0
offset_right = 226.0
offset_bottom = 35.0
theme_override_fonts/font = ExtResource("1")
theme_override_font_sizes/font_size = 26
text = "SETTINGS"

[node name="VBoxContainer" type="MarginContainer" parent="."]
offset_top = 45.0
offset_right = 350.0
offset_bottom = 647.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="TextureRect2" type="TextureRect" parent="VBoxContainer"]
offset_right = 350.0
offset_bottom = 21.0
custom_minimum_size = Vector2(0, 21)
mouse_filter = 2
size_flags_vertical = 0
texture = SubResource("12")
expand_mode = 1
stretch_mode = 1

[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
offset_right = 350.0
offset_bottom = 602.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
horizontal_scroll_mode = 0

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/ScrollContainer"]
offset_right = 350.0
offset_bottom = 602.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_right = 10
theme_override_constants/margin_left = 10

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer"]
offset_left = 10.0
offset_right = 340.0
offset_bottom = 602.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Control" type="Control" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer"]
offset_right = 330.0
offset_bottom = 20.0
custom_minimum_size = Vector2(0, 20)
mouse_filter = 2

[node name="alarm_items" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer"]
offset_top = 24.0
offset_right = 330.0
offset_bottom = 602.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_right = 330.0
offset_bottom = 48.0
custom_minimum_size = Vector2(0, 48)
text = "weatherapi.com API key"
horizontal_alignment = 1
vertical_alignment = 2

[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 52.0
offset_right = 330.0
offset_bottom = 84.0
mouse_filter = 2

[node name="settings_api_key" type="LineEdit" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer3"]
unique_name_in_owner = true
offset_right = 294.0
offset_bottom = 32.0
tooltip_text = "API key from weatherAPI.com.

This is required to make
use of the weather features.
To get started, go to
https://weatherapi.com/signup.aspx"
size_flags_horizontal = 3
text = "fdsafdsagdsaf"
secret = true
secret_character = "·"

[node name="show_api_key" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer3"]
offset_left = 298.0
offset_right = 330.0
offset_bottom = 32.0
custom_minimum_size = Vector2(32, 0)
tooltip_text = "Reveal API key"
mouse_default_cursor_shape = 2
toggle_mode = true
texture_normal = ExtResource("10")
texture_pressed = ExtResource("11")
ignore_texture_size = true
stretch_mode = 5

[node name="paste_key" type="Button" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 88.0
offset_right = 330.0
offset_bottom = 118.0
mouse_default_cursor_shape = 2
text = "Paste API key"

[node name="Label2" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 122.0
offset_right = 330.0
offset_bottom = 170.0
custom_minimum_size = Vector2(0, 48)
text = "Location"
horizontal_alignment = 1
vertical_alignment = 2

[node name="settings_location" type="LineEdit" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
unique_name_in_owner = true
offset_top = 174.0
offset_right = 330.0
offset_bottom = 206.0
tooltip_text = "Location to use for weather data"
text = "Amsterdam"

[node name="Label3" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 210.0
offset_right = 330.0
offset_bottom = 258.0
custom_minimum_size = Vector2(0, 48)
text = "Displayed temperatures"
horizontal_alignment = 1
vertical_alignment = 2

[node name="temperatures" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 262.0
offset_right = 330.0
offset_bottom = 322.0
mouse_filter = 2

[node name="settings_celsius" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/temperatures"]
unique_name_in_owner = true
offset_right = 163.0
offset_bottom = 60.0
custom_minimum_size = Vector2(0, 60)
tooltip_text = "Show temperature in celsius"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
toggle_mode = true
texture_normal = ExtResource("5")
texture_pressed = ExtResource("3")
ignore_texture_size = true
stretch_mode = 5

[node name="settings_fahrenheit" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/temperatures"]
unique_name_in_owner = true
offset_left = 167.0
offset_right = 330.0
offset_bottom = 60.0
custom_minimum_size = Vector2(0, 60)
tooltip_text = "Show temperature in fahrenheit"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
toggle_mode = true
texture_normal = ExtResource("4")
texture_pressed = ExtResource("2")
ignore_texture_size = true
stretch_mode = 5

[node name="Label4" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 326.0
offset_right = 330.0
offset_bottom = 348.0
custom_minimum_size = Vector2(0, 16)
horizontal_alignment = 1
vertical_alignment = 2

[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 352.0
offset_right = 330.0
offset_bottom = 409.0
mouse_filter = 2

[node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer"]
offset_top = 17.0
offset_right = 192.0
offset_bottom = 39.0
text = "Automatic dark mode"

[node name="settings_autodark" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer"]
unique_name_in_owner = true
offset_left = 198.0
offset_right = 330.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "Darken interface and
backgrounds in the evening"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
button_pressed = true
texture_normal = ExtResource("7")
texture_pressed = ExtResource("8")
ignore_texture_size = true
stretch_mode = 4

[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 413.0
offset_right = 330.0
offset_bottom = 470.0
mouse_filter = 2

[node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer2"]
offset_top = 17.0
offset_right = 125.0
offset_bottom = 39.0
text = "12 hour clock"

[node name="settings_12_hour_clock" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer2"]
unique_name_in_owner = true
offset_left = 198.0
offset_right = 330.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "Use a 12 hour AM/PM clock
instead of 24 hours"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
button_pressed = true
texture_normal = ExtResource("7")
texture_pressed = ExtResource("8")
ignore_texture_size = true
stretch_mode = 4

[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items"]
offset_top = 474.0
offset_right = 330.0
offset_bottom = 531.0
mouse_filter = 2

[node name="Label" type="Label" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer4"]
offset_top = 17.0
offset_right = 173.0
offset_bottom = 39.0
text = "Prevent sleep mode"

[node name="prevent_sleep_mode" type="TextureButton" parent="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer4"]
unique_name_in_owner = true
offset_left = 198.0
offset_right = 330.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "Prevent the screen from
entering sleep mode"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
button_pressed = true
texture_normal = ExtResource("7")
texture_pressed = ExtResource("8")
ignore_texture_size = true
stretch_mode = 4

[node name="api_debounce" type="Timer" parent="."]
wait_time = 5.0
one_shot = true

[connection signal="text_changed" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer3/settings_api_key" to="." method="_on_settings_api_key_text_changed"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer3/show_api_key" to="." method="_on_show_api_key_toggled"]
[connection signal="pressed" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/paste_key" to="." method="_on_paste_key_pressed"]
[connection signal="text_changed" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/settings_location" to="." method="_on_settings_location_text_changed"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/temperatures/settings_celsius" to="." method="_on_settings_celsius_toggled"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/temperatures/settings_fahrenheit" to="." method="_on_settings_fahrenheit_toggled"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer/settings_autodark" to="." method="_on_settings_autodark_toggled"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer2/settings_12_hour_clock" to="." method="_on_settings_12_hour_clock_toggled"]
[connection signal="toggled" from="VBoxContainer/ScrollContainer/MarginContainer/VBoxContainer/alarm_items/HBoxContainer4/prevent_sleep_mode" to="." method="_on_prevent_sleep_mode_toggled"]
[connection signal="timeout" from="api_debounce" to="." method="_on_location_debounce_timeout"]
