Files
uniqlone/scenes/alarms_screen/alarms_screen.tscn
T
2026-06-13 16:08:36 -04:00

546 lines
18 KiB
Plaintext

[gd_scene load_steps=22 format=3]
[ext_resource type="Texture2D" path="res://assets/texture/alarms/back.png" id="1"]
[ext_resource type="FontVariation" path="res://assets/font/resource/menu_header.tres" id="2"]
[ext_resource type="Texture2D" path="res://assets/texture/alarms/add.png" id="3"]
[ext_resource type="Texture2D" path="res://assets/texture/alarms/edit.png" id="4"]
[ext_resource type="Script" path="res://scenes/alarms_screen/alarms_screen.gd" id="5"]
[ext_resource type="Texture2D" path="res://assets/texture/alarms/set.png" id="6"]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_on.png" id="7"]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_off.png" id="8"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather4.png" id="9"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather8.png" id="10"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather7.png" id="11"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather1.png" id="12"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather5.png" id="13"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather3.png" id="14"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather6.png" id="15"]
[ext_resource type="Texture2D" path="res://assets/texture/weather_icons/weather2.png" id="16"]
[ext_resource type="Theme" path="res://assets/main.tres" id="17"]
[ext_resource type="Script" path="res://scenes/alarms_screen/ButtonGroup.gd" id="18"]
[sub_resource type="StyleBoxEmpty" id="4"]
[sub_resource type="Gradient" id="3"]
offsets = PackedFloat32Array(0, 0.256983)
colors = PackedColorArray(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")
theme_override_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"]
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="main/HBoxContainer"]
offset_left = 137.0
offset_top = 10.0
offset_right = 213.0
offset_bottom = 35.0
theme_override_fonts/font = ExtResource("2")
theme_override_font_sizes/font_size = 26
text = "ALARM"
[node name="VBoxContainer" type="MarginContainer" parent="main"]
offset_top = 49.0
offset_right = 350.0
offset_bottom = 532.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="TextureRect2" type="TextureRect" parent="main/VBoxContainer"]
offset_right = 350.0
offset_bottom = 21.0
custom_minimum_size = Vector2(0, 21)
mouse_filter = 2
size_flags_vertical = 0
texture = SubResource("2")
expand_mode = 1
stretch_mode = 1
[node name="ScrollContainer" type="ScrollContainer" parent="main/VBoxContainer"]
offset_right = 350.0
offset_bottom = 483.0
mouse_filter = 1
size_flags_horizontal = 3
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="VBoxContainer" type="VBoxContainer" parent="main/VBoxContainer/ScrollContainer"]
offset_right = 350.0
offset_bottom = 483.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Control" type="Control" parent="main/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_right = 350.0
offset_bottom = 20.0
custom_minimum_size = Vector2(0, 20)
mouse_filter = 2
[node name="alarm_items" type="VBoxContainer" parent="main/VBoxContainer/ScrollContainer/VBoxContainer"]
unique_name_in_owner = true
offset_top = 24.0
offset_right = 350.0
offset_bottom = 483.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 0
[node name="HBoxContainer2" type="HBoxContainer" parent="main"]
offset_top = 536.0
offset_right = 350.0
offset_bottom = 600.0
custom_minimum_size = Vector2(0, 64)
mouse_filter = 2
[node name="edit_button" type="TextureButton" parent="main/HBoxContainer2"]
visible = false
offset_right = 173.0
offset_bottom = 64.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource("4")
ignore_texture_size = true
stretch_mode = 5
[node name="add_button" type="TextureButton" parent="main/HBoxContainer2"]
offset_left = 177.0
offset_right = 350.0
offset_bottom = 64.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource("3")
ignore_texture_size = 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"]
offset_right = 350.0
offset_bottom = 45.0
custom_minimum_size = Vector2(0, 45)
mouse_filter = 2
[node name="Control" type="Control" parent="edit/HBoxContainer"]
offset_right = 350.0
offset_bottom = 45.0
[node name="cancel_button" type="TextureButton" parent="edit/HBoxContainer/Control"]
offset_left = -8.0
offset_top = -11.0
offset_right = 121.0
offset_bottom = 60.0
custom_minimum_size = Vector2(82, 0)
mouse_default_cursor_shape = 2
size_flags_horizontal = 2
size_flags_vertical = 3
texture_normal = ExtResource("1")
ignore_texture_size = true
stretch_mode = 5
[node name="Label" type="Label" parent="edit/HBoxContainer"]
offset_top = 10.0
offset_right = 350.0
offset_bottom = 35.0
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("2")
theme_override_font_sizes/font_size = 26
text = "EDIT ALARM"
horizontal_alignment = 1
[node name="VBoxContainer" type="MarginContainer" parent="edit"]
offset_top = 49.0
offset_right = 350.0
offset_bottom = 586.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="TextureRect2" type="TextureRect" parent="edit/VBoxContainer"]
offset_right = 350.0
offset_bottom = 21.0
custom_minimum_size = Vector2(0, 21)
mouse_filter = 2
size_flags_vertical = 0
texture = SubResource("2")
expand_mode = 1
stretch_mode = 1
[node name="ScrollContainer" type="ScrollContainer" parent="edit/VBoxContainer"]
offset_right = 350.0
offset_bottom = 537.0
horizontal_scroll_mode = 0
[node name="VBoxContainer" type="VBoxContainer" parent="edit/VBoxContainer/ScrollContainer"]
offset_right = 350.0
offset_bottom = 537.0
pivot_offset = Vector2(-731, 244)
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Control2" type="Control" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_right = 350.0
offset_bottom = 113.0
custom_minimum_size = Vector2(0, 20)
mouse_filter = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="GridContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_left = 46.0
offset_top = 117.0
offset_right = 304.0
offset_bottom = 175.0
size_flags_horizontal = 6
columns = 2
[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
offset_right = 127.0
offset_bottom = 22.0
text = "Hour "
horizontal_alignment = 1
[node name="Label2" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
offset_left = 131.0
offset_right = 258.0
offset_bottom = 22.0
text = "Minute "
horizontal_alignment = 1
[node name="alarm_moment_hour" type="SpinBox" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
unique_name_in_owner = true
offset_top = 26.0
offset_right = 127.0
offset_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
offset_left = 131.0
offset_top = 26.0
offset_right = 258.0
offset_bottom = 58.0
max_value = 59.0
[node name="HBoxContainer2" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_top = 179.0
offset_right = 350.0
offset_bottom = 236.0
[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer2"]
offset_top = 17.0
offset_right = 102.0
offset_bottom = 39.0
text = " Snoozable"
[node name="alarm_snoozable" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
offset_left = 218.0
offset_right = 350.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "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
button_pressed = true
texture_normal = ExtResource("8")
texture_pressed = ExtResource("7")
ignore_texture_size = true
stretch_mode = 4
[node name="HBoxContainer4" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_top = 240.0
offset_right = 350.0
offset_bottom = 297.0
[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer4"]
offset_top = 17.0
offset_right = 114.0
offset_bottom = 39.0
text = " Speak time"
[node name="alarm_speak_time" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer4"]
unique_name_in_owner = true
offset_left = 218.0
offset_right = 350.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "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
button_pressed = true
texture_normal = ExtResource("8")
texture_pressed = ExtResource("7")
ignore_texture_size = true
stretch_mode = 4
[node name="HBoxContainer3" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_top = 301.0
offset_right = 350.0
offset_bottom = 358.0
[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer3"]
offset_top = 17.0
offset_right = 111.0
offset_bottom = 39.0
text = " Play music"
[node name="alarm_play_music" type="TextureButton" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/HBoxContainer3"]
unique_name_in_owner = true
offset_left = 218.0
offset_right = 350.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "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
button_pressed = true
texture_normal = ExtResource("8")
texture_pressed = ExtResource("7")
ignore_texture_size = true
stretch_mode = 4
[node name="customs" type="VBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
unique_name_in_owner = true
offset_top = 362.0
offset_right = 350.0
offset_bottom = 419.0
[node name="HBoxContainer" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs"]
offset_right = 350.0
offset_bottom = 57.0
[node name="Label" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/HBoxContainer"]
offset_top = 17.0
offset_right = 139.0
offset_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
offset_left = 218.0
offset_right = 350.0
offset_bottom = 57.0
custom_minimum_size = Vector2(132, 57)
tooltip_text = "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")
ignore_texture_size = true
stretch_mode = 4
[node name="override_panel" type="PanelContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs"]
unique_name_in_owner = true
visible = false
offset_top = 61.0
offset_right = 350.0
offset_bottom = 221.0
[node name="alarm_music_override_selection" type="GridContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel"]
unique_name_in_owner = true
offset_left = 15.0
offset_top = 5.0
offset_right = 335.0
offset_bottom = 155.0
custom_minimum_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"]
offset_right = 77.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_foggy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 81.0
offset_right = 158.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_partlycloudy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 162.0
offset_right = 239.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_rainy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 243.0
offset_right = 320.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_snowy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_top = 77.0
offset_right = 77.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_stormy" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 81.0
offset_top = 77.0
offset_right = 158.0
offset_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_alignment = 1
expand_icon = true
[node name="weather_sunny" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 162.0
offset_top = 77.0
offset_right = 239.0
offset_bottom = 150.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = &"SelectedItem"
toggle_mode = true
button_pressed = true
icon = ExtResource("12")
icon_alignment = 1
expand_icon = true
[node name="weather_unknown" type="Button" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs/override_panel/alarm_music_override_selection"]
offset_left = 243.0
offset_top = 77.0
offset_right = 320.0
offset_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_alignment = 1
expand_icon = true
[node name="Control" type="Control" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer"]
offset_top = 423.0
offset_right = 350.0
offset_bottom = 537.0
size_flags_vertical = 3
[node name="HBoxContainer2" type="HBoxContainer" parent="edit"]
offset_top = 590.0
offset_right = 350.0
offset_bottom = 636.0
custom_minimum_size = Vector2(0, 46)
mouse_filter = 2
[node name="save_button" type="TextureButton" parent="edit/HBoxContainer2"]
offset_right = 350.0
offset_bottom = 46.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource("6")
ignore_texture_size = true
stretch_mode = 5
[node name="Control" type="Control" parent="edit"]
offset_top = 640.0
offset_right = 350.0
offset_bottom = 650.0
custom_minimum_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"]