[gd_scene load_steps=22 format=2]

[ext_resource path="res://assets/texture/alarms/back.png" type="Texture" id=1]
[ext_resource path="res://assets/font/resource/menu_header.tres" type="DynamicFont" id=2]
[ext_resource path="res://assets/texture/alarms/add.png" type="Texture" id=3]
[ext_resource path="res://assets/texture/alarms/edit.png" type="Texture" id=4]
[ext_resource path="res://scenes/alarms_screen/alarms_screen.gd" type="Script" id=5]
[ext_resource path="res://assets/texture/alarms/set.png" type="Texture" id=6]
[ext_resource path="res://assets/texture/buttons/toggle_on.png" type="Texture" id=7]
[ext_resource path="res://assets/texture/buttons/toggle_off.png" type="Texture" id=8]
[ext_resource path="res://assets/texture/weather_icons/weather4.png" type="Texture" id=9]
[ext_resource path="res://assets/texture/weather_icons/weather8.png" type="Texture" id=10]
[ext_resource path="res://assets/texture/weather_icons/weather7.png" type="Texture" id=11]
[ext_resource path="res://assets/texture/weather_icons/weather1.png" type="Texture" id=12]
[ext_resource path="res://assets/texture/weather_icons/weather5.png" type="Texture" id=13]
[ext_resource path="res://assets/texture/weather_icons/weather3.png" type="Texture" id=14]
[ext_resource path="res://assets/texture/weather_icons/weather6.png" type="Texture" id=15]
[ext_resource path="res://assets/texture/weather_icons/weather2.png" type="Texture" id=16]
[ext_resource path="res://assets/main.tres" type="Theme" id=17]
[ext_resource path="res://scenes/alarms_screen/ButtonGroup.gd" type="Script" id=18]

[sub_resource type="StyleBoxEmpty" id=4]

[sub_resource type="Gradient" id=3]
offsets = PoolRealArray( 0, 0.256983 )
colors = PoolColorArray( 0, 0, 0, 0.262745, 0, 0, 0, 0 )

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

[node name="alarms_screen" type="TabContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 17 )
custom_styles/panel = SubResource( 4 )
tabs_visible = false
script = ExtResource( 5 )

[node name="main" type="VBoxContainer" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="HBoxContainer" type="HBoxContainer" parent="main"]
margin_right = 350.0
margin_bottom = 45.0
rect_min_size = Vector2( 0, 45 )
mouse_filter = 2
alignment = 1

[node name="Label" type="Label" parent="main/HBoxContainer"]
margin_left = 137.0
margin_top = 10.0
margin_right = 213.0
margin_bottom = 35.0
custom_fonts/font = ExtResource( 2 )
text = "ALARM"

[node name="VBoxContainer" type="MarginContainer" parent="main"]
margin_top = 49.0
margin_right = 350.0
margin_bottom = 532.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="TextureRect2" type="TextureRect" parent="main/VBoxContainer"]
margin_right = 350.0
margin_bottom = 21.0
rect_min_size = Vector2( 0, 21 )
mouse_filter = 2
size_flags_vertical = 0
texture = SubResource( 2 )
expand = true
stretch_mode = 2

[node name="ScrollContainer" type="ScrollContainer" parent="main/VBoxContainer"]
margin_right = 350.0
margin_bottom = 483.0
mouse_filter = 1
size_flags_horizontal = 3
size_flags_vertical = 3
scroll_horizontal_enabled = false

[node name="VBoxContainer" type="VBoxContainer" parent="main/VBoxContainer/ScrollContainer"]
margin_right = 350.0
margin_bottom = 483.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Control" type="Control" parent="main/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_right = 350.0
margin_bottom = 20.0
rect_min_size = Vector2( 0, 20 )
mouse_filter = 2

[node name="alarm_items" type="VBoxContainer" parent="main/VBoxContainer/ScrollContainer/VBoxContainer"]
unique_name_in_owner = true
margin_top = 24.0
margin_right = 350.0
margin_bottom = 483.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 0

[node name="HBoxContainer2" type="HBoxContainer" parent="main"]
margin_top = 536.0
margin_right = 350.0
margin_bottom = 600.0
rect_min_size = Vector2( 0, 64 )
mouse_filter = 2

[node name="edit_button" type="TextureButton" parent="main/HBoxContainer2"]
visible = false
margin_right = 173.0
margin_bottom = 64.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource( 4 )
expand = true
stretch_mode = 5

[node name="add_button" type="TextureButton" parent="main/HBoxContainer2"]
margin_left = 177.0
margin_right = 350.0
margin_bottom = 64.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource( 3 )
expand = true
stretch_mode = 5

[node name="edit" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="HBoxContainer" type="MarginContainer" parent="edit"]
margin_right = 350.0
margin_bottom = 45.0
rect_min_size = Vector2( 0, 45 )
mouse_filter = 2

[node name="Control" type="Control" parent="edit/HBoxContainer"]
margin_right = 350.0
margin_bottom = 45.0

[node name="cancel_button" type="TextureButton" parent="edit/HBoxContainer/Control"]
margin_left = -8.0
margin_top = -11.0
margin_right = 121.0
margin_bottom = 60.0
rect_min_size = Vector2( 82, 0 )
mouse_default_cursor_shape = 2
size_flags_horizontal = 2
size_flags_vertical = 3
texture_normal = ExtResource( 1 )
expand = true
stretch_mode = 5

[node name="Label" type="Label" parent="edit/HBoxContainer"]
margin_top = 10.0
margin_right = 350.0
margin_bottom = 35.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 2 )
text = "EDIT ALARM"
align = 1

[node name="VBoxContainer" type="MarginContainer" parent="edit"]
margin_top = 49.0
margin_right = 350.0
margin_bottom = 586.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="TextureRect2" type="TextureRect" parent="edit/VBoxContainer"]
margin_right = 350.0
margin_bottom = 21.0
rect_min_size = Vector2( 0, 21 )
mouse_filter = 2
size_flags_vertical = 0
texture = SubResource( 2 )
expand = true
stretch_mode = 2

[node name="ScrollContainer" type="ScrollContainer" parent="edit/VBoxContainer"]
margin_right = 350.0
margin_bottom = 537.0
scroll_horizontal_enabled = false

[node name="VBoxContainer" type="VBoxContainer" parent="edit/VBoxContainer/ScrollContainer"]
margin_right = 350.0
margin_bottom = 537.0
rect_pivot_offset = Vector2( -731, 244 )
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Control2" type="Control" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_right = 350.0
margin_bottom = 113.0
rect_min_size = Vector2( 0, 20 )
mouse_filter = 2
size_flags_vertical = 3

[node name="VBoxContainer" type="GridContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_left = 46.0
margin_top = 117.0
margin_right = 304.0
margin_bottom = 175.0
size_flags_horizontal = 6
columns = 2

[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
margin_right = 127.0
margin_bottom = 22.0
text = "Hour  "
align = 1

[node name="Label2" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
margin_left = 131.0
margin_right = 258.0
margin_bottom = 22.0
text = "Minute  "
align = 1

[node name="alarm_moment_hour" type="SpinBox" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
unique_name_in_owner = true
margin_top = 26.0
margin_right = 127.0
margin_bottom = 58.0
max_value = 23.0

[node name="alarm_moment_minute" type="SpinBox" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
unique_name_in_owner = true
margin_left = 131.0
margin_top = 26.0
margin_right = 258.0
margin_bottom = 58.0
max_value = 59.0

[node name="HBoxContainer2" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_top = 179.0
margin_right = 350.0
margin_bottom = 236.0

[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer2"]
margin_top = 17.0
margin_right = 102.0
margin_bottom = 39.0
text = "  Snoozable"

[node name="alarm_snoozable" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Allow the alarm
to be snoozed
for 5 minutes"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = true
stretch_mode = 4

[node name="HBoxContainer4" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_top = 240.0
margin_right = 350.0
margin_bottom = 297.0

[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer4"]
margin_top = 17.0
margin_right = 114.0
margin_bottom = 39.0
text = "  Speak time"

[node name="alarm_speak_time" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer4"]
unique_name_in_owner = true
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Will speak the time,
day, and weather out loud"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = true
stretch_mode = 4

[node name="HBoxContainer3" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_top = 301.0
margin_right = 350.0
margin_bottom = 358.0

[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer3"]
margin_top = 17.0
margin_right = 111.0
margin_bottom = 39.0
text = "  Play music"

[node name="alarm_play_music" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer3"]
unique_name_in_owner = true
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Plays an alarm tune
depending on the weather
when the alarm goes off"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = true
stretch_mode = 4

[node name="customs" type="VBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
unique_name_in_owner = true
margin_top = 362.0
margin_right = 350.0
margin_bottom = 419.0

[node name="HBoxContainer" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs"]
margin_right = 350.0
margin_bottom = 57.0

[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/HBoxContainer"]
margin_top = 17.0
margin_right = 139.0
margin_bottom = 39.0
text = "  Custom music"

[node name="alarm_weather_override" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/HBoxContainer"]
unique_name_in_owner = true
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Select a specific tune to be played
instead of automatically picking one
according to the weather"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = true
stretch_mode = 4

[node name="override_panel" type="PanelContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs"]
unique_name_in_owner = true
visible = false
margin_top = 61.0
margin_right = 350.0
margin_bottom = 221.0

[node name="alarm_music_override_selection" type="GridContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel"]
unique_name_in_owner = true
margin_left = 15.0
margin_top = 5.0
margin_right = 335.0
margin_bottom = 155.0
rect_min_size = Vector2( 0, 150 )
size_flags_horizontal = 3
columns = 4
script = ExtResource( 18 )

[node name="weather_cloudy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_right = 77.0
margin_bottom = 73.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 14 )
icon_align = 1
expand_icon = true

[node name="weather_foggy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 81.0
margin_right = 158.0
margin_bottom = 73.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 11 )
icon_align = 1
expand_icon = true

[node name="weather_partlycloudy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 162.0
margin_right = 239.0
margin_bottom = 73.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 16 )
icon_align = 1
expand_icon = true

[node name="weather_rainy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 243.0
margin_right = 320.0
margin_bottom = 73.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 9 )
icon_align = 1
expand_icon = true

[node name="weather_snowy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_top = 77.0
margin_right = 77.0
margin_bottom = 150.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 15 )
icon_align = 1
expand_icon = true

[node name="weather_stormy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 81.0
margin_top = 77.0
margin_right = 158.0
margin_bottom = 150.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 13 )
icon_align = 1
expand_icon = true

[node name="weather_sunny" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 162.0
margin_top = 77.0
margin_right = 239.0
margin_bottom = 150.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
pressed = true
icon = ExtResource( 12 )
icon_align = 1
expand_icon = true

[node name="weather_unknown" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
margin_left = 243.0
margin_top = 77.0
margin_right = 320.0
margin_bottom = 150.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = "SelectedItem"
toggle_mode = true
icon = ExtResource( 10 )
icon_align = 1
expand_icon = true

[node name="Control" type="Control" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
margin_top = 423.0
margin_right = 350.0
margin_bottom = 537.0
size_flags_vertical = 3

[node name="HBoxContainer2" type="HBoxContainer" parent="edit"]
margin_top = 590.0
margin_right = 350.0
margin_bottom = 636.0
rect_min_size = Vector2( 0, 46 )
mouse_filter = 2

[node name="save_button" type="TextureButton" parent="edit/HBoxContainer2"]
margin_right = 350.0
margin_bottom = 46.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource( 6 )
expand = true
stretch_mode = 5

[node name="Control" type="Control" parent="edit"]
margin_top = 640.0
margin_right = 350.0
margin_bottom = 650.0
rect_min_size = Vector2( 0, 10 )

[connection signal="pressed" from="main/HBoxContainer2/add_button" to="." method="_on_add_button_pressed"]
[connection signal="pressed" from="edit/HBoxContainer/Control/cancel_button" to="." method="_on_cancel_button_pressed"]
[connection signal="value_changed" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer/alarm_moment_hour" to="." method="_on_alarm_moment_hour_value_changed"]
[connection signal="value_changed" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer/alarm_moment_minute" to="." method="_on_alarm_moment_minute_value_changed"]
[connection signal="toggled" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer2/alarm_snoozable" to="." method="_on_alarm_snoozable_toggled"]
[connection signal="toggled" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer4/alarm_speak_time" to="." method="_on_alarm_speak_time_toggled"]
[connection signal="toggled" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer3/alarm_play_music" to="." method="_on_alarm_play_music_toggled"]
[connection signal="toggled" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/HBoxContainer/alarm_weather_override" to="." method="_on_alarm_weather_override_toggled"]
[connection signal="selected" from="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection" to="." method="_on_alarm_music_override_selection_selected"]
[connection signal="pressed" from="edit/HBoxContainer2/save_button" to="." method="_on_save_button_pressed"]
