claude godot 4 port

This commit is contained in:
2026-06-13 16:08:36 -04:00
parent aa1f470a7b
commit 1c1109fe93
227 changed files with 3112 additions and 2505 deletions
+6 -7
View File
@@ -5,17 +5,16 @@ signal selected(idx)
func _ready():
var x := 0
for item in get_children():
item.connect("toggled",self,"_on_button_toggled", [x])
item.toggled.connect(_on_button_toggled.bind(x))
x += 1
func select(index:int):
func select(index: int):
var x := 0
for item in get_children():
item.set_pressed_no_signal( x == index )
if item.pressed:
emit_signal("selected", x)
item.set_pressed_no_signal(x == index)
if item.button_pressed:
selected.emit(x)
x += 1
func _on_button_toggled(state:bool, idx:int):
func _on_button_toggled(state: bool, idx: int):
select(idx)
+1
View File
@@ -0,0 +1 @@
uid://c2b4dt8dhyf8g
+7 -7
View File
@@ -1,18 +1,18 @@
extends VBoxContainer
var alarm_res:Alarm
onready var alarm_node = $"/root/main/alarm"
var alarm_res: Alarm
@onready var alarm_node = $"/root/main/alarm"
signal edit()
func _ready():
Config.connect("changed", self ,"_update")
Config.changed.connect(_update)
self.modulate.a = 0
var tween = get_tree().create_tween()
tween.set_trans(Tween.TRANS_CUBIC)
tween.tween_property(self, "modulate:a", 1.0, 0.5)
tween.play()
print(alarm_res)
_update()
@@ -20,7 +20,7 @@ func _ready():
func _update():
$"%hour".text = alarm_res.moment.padded_hour()
$"%minute".text = alarm_res.moment.padded_minute()
$"%active".pressed = alarm_res.active
$"%active".button_pressed = alarm_res.active
func _on_active_toggled(button_pressed):
@@ -41,7 +41,7 @@ func _on_delete_button_pressed():
tween.set_trans(Tween.TRANS_CUBIC)
tween.tween_property(self, "modulate:a", 0.0, 0.5)
tween.play()
yield(tween, "finished")
await tween.finished
self.queue_free()
if alarm_res:
Config.flags.remove_alarm(alarm_res)
@@ -50,4 +50,4 @@ func _on_delete_button_pressed():
func _on_edit_button_pressed():
if self.modulate.a != 1:
return
emit_signal("edit")
edit.emit()
+1
View File
@@ -0,0 +1 @@
uid://b4wofhc0ow47i
+66 -66
View File
@@ -1,125 +1,125 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=7 format=3]
[ext_resource path="res://assets/texture/buttons/toggle_on.png" type="Texture" id=1]
[ext_resource path="res://assets/texture/buttons/toggle_off.png" type="Texture" id=2]
[ext_resource path="res://assets/main.tres" type="Theme" id=3]
[ext_resource path="res://assets/font/resource/alarm_item_time.tres" type="DynamicFont" id=4]
[ext_resource path="res://scenes/alarms_screen/alarms_item.gd" type="Script" id=5]
[ext_resource path="res://assets/texture/alarms/mark.png" type="Texture" id=6]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_on.png" id="1"]
[ext_resource type="Texture2D" path="res://assets/texture/buttons/toggle_off.png" id="2"]
[ext_resource type="Theme" path="res://assets/main.tres" id="3"]
[ext_resource type="FontVariation" path="res://assets/font/resource/alarm_item_time.tres" id="4"]
[ext_resource type="Script" path="res://scenes/alarms_screen/alarms_item.gd" id="5"]
[ext_resource type="Texture2D" path="res://assets/texture/alarms/mark.png" id="6"]
[node name="alarms_item" type="VBoxContainer" groups=["alarm_items", "minute_timer_updates"]]
anchor_right = 1.0
anchor_bottom = 0.09
rect_min_size = Vector2( 0, 55 )
custom_minimum_size = Vector2(0, 55)
mouse_filter = 2
size_flags_horizontal = 3
theme = ExtResource( 3 )
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": true
}
theme = ExtResource("3")
script = ExtResource("5")
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 350.0
margin_bottom = 2.0
rect_min_size = Vector2( 0, 2 )
offset_right = 350.0
offset_bottom = 2.0
custom_minimum_size = Vector2(0, 2)
mouse_filter = 2
size_flags_horizontal = 3
color = Color( 1, 1, 1, 0.109804 )
color = Color(1, 1, 1, 0.109804)
[node name="HBoxContainer" type="HBoxContainer" parent="."]
margin_top = 6.0
margin_right = 350.0
margin_bottom = 52.0
offset_top = 6.0
offset_right = 350.0
offset_bottom = 52.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="delete_button" type="TextureButton" parent="HBoxContainer"]
margin_right = 46.0
margin_bottom = 46.0
rect_min_size = Vector2( 46, 0 )
hint_tooltip = "Delete alarm"
offset_right = 46.0
offset_bottom = 46.0
custom_minimum_size = Vector2(46, 0)
tooltip_text = "Delete alarm"
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 6 )
expand = true
texture_normal = ExtResource("6")
ignore_texture_size = true
stretch_mode = 5
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"]
margin_left = 50.0
margin_right = 106.0
margin_bottom = 46.0
offset_left = 50.0
offset_right = 106.0
offset_bottom = 46.0
mouse_filter = 2
custom_constants/margin_left = 10
theme_override_constants/margin_left = 10
[node name="edit_button" type="Button" parent="HBoxContainer/MarginContainer"]
margin_left = 10.0
margin_right = 56.0
margin_bottom = 46.0
hint_tooltip = "Edit alarm"
offset_left = 10.0
offset_right = 56.0
offset_bottom = 46.0
tooltip_text = "Edit alarm"
mouse_default_cursor_shape = 2
flat = true
[node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/MarginContainer"]
margin_left = 10.0
margin_right = 56.0
margin_bottom = 46.0
offset_left = 10.0
offset_right = 56.0
offset_bottom = 46.0
mouse_filter = 2
custom_constants/separation = 1
theme_override_constants/separation = 1
[node name="hour" type="Label" parent="HBoxContainer/MarginContainer/HBoxContainer"]
unique_name_in_owner = true
margin_top = 12.0
margin_right = 20.0
margin_bottom = 33.0
offset_top = 12.0
offset_right = 20.0
offset_bottom = 33.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 4 )
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 22
text = "12"
[node name="colon" type="Label" parent="HBoxContainer/MarginContainer/HBoxContainer"]
margin_left = 21.0
margin_top = 12.0
margin_right = 25.0
margin_bottom = 33.0
offset_left = 21.0
offset_top = 12.0
offset_right = 25.0
offset_bottom = 33.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 4 )
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 22
text = ":"
[node name="minute" type="Label" parent="HBoxContainer/MarginContainer/HBoxContainer"]
unique_name_in_owner = true
margin_left = 26.0
margin_top = 12.0
margin_right = 46.0
margin_bottom = 33.0
offset_left = 26.0
offset_top = 12.0
offset_right = 46.0
offset_bottom = 33.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 4 )
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 22
text = "30"
[node name="active" type="TextureButton" parent="HBoxContainer"]
unique_name_in_owner = true
margin_left = 250.0
margin_right = 350.0
margin_bottom = 46.0
rect_min_size = Vector2( 100, 0 )
hint_tooltip = "Enable/disable alarm"
offset_left = 250.0
offset_right = 350.0
offset_bottom = 46.0
custom_minimum_size = Vector2(100, 0)
tooltip_text = "Enable/disable alarm"
mouse_default_cursor_shape = 2
size_flags_horizontal = 10
size_flags_vertical = 3
toggle_mode = true
pressed = true
texture_normal = ExtResource( 2 )
texture_pressed = ExtResource( 1 )
expand = true
button_pressed = true
texture_normal = ExtResource("2")
texture_pressed = ExtResource("1")
ignore_texture_size = true
stretch_mode = 4
[node name="ColorRect2" type="ColorRect" parent="."]
margin_top = 56.0
margin_right = 350.0
margin_bottom = 58.0
rect_min_size = Vector2( 0, 2 )
offset_top = 56.0
offset_right = 350.0
offset_bottom = 58.0
custom_minimum_size = Vector2(0, 2)
mouse_filter = 2
size_flags_horizontal = 3
color = Color( 0.25098, 0.25098, 0.25098, 0.168627 )
color = Color(0.25098, 0.25098, 0.25098, 0.168627)
[connection signal="pressed" from="HBoxContainer/delete_button" to="." method="_on_delete_button_pressed"]
[connection signal="pressed" from="HBoxContainer/MarginContainer/edit_button" to="." method="_on_edit_button_pressed"]
+13 -16
View File
@@ -2,33 +2,30 @@ extends TabContainer
const prefab := preload("res://scenes/alarms_screen/alarms_item.tscn")
onready var alarm_items = $"%alarm_items"
@onready var alarm_items = $"%alarm_items"
func _ready():
# current_tab = 1
_replace_alarm_items()
func _replace_alarm_items():
for item in alarm_items.get_children():
alarm_items.remove_child(item)
item.queue_free()
for alarm in Config.flags.alarms:
spawn_item(alarm)
func spawn_item(alarm):
var new = prefab.instance()
var new = prefab.instantiate()
new.alarm_res = alarm
new.connect("edit", self, "_on_item_edit_pressed", [new])
new.edit.connect(_on_item_edit_pressed.bind(new))
alarm_items.add_child(new)
func _on_add_button_pressed():
var new = Alarm.new()
new.moment = Constants.current_moment()
edit_alarm(new)
# if Config.flags.add_alarm(new):
# spawn_item(new)
func _on_item_edit_pressed(item):
@@ -36,10 +33,10 @@ func _on_item_edit_pressed(item):
edit_alarm(item.alarm_res)
var editing_alarm:Alarm setget edit_alarm
var editing_alarm: Alarm
func edit_alarm(new:Alarm, show_UI:=true):
print("edit alarm: ",new)
func edit_alarm(new: Alarm, show_UI: bool = true):
print("edit alarm: ", new)
editing_alarm = new
if editing_alarm:
if show_UI:
@@ -51,12 +48,12 @@ func edit_alarm(new:Alarm, show_UI:=true):
$"%alarm_weather_override".set_pressed_no_signal(new.override_weather_music)
$"%alarm_music_override_selection".select(new.weather_music)
$"%alarm_speak_time".set_pressed_no_signal(new.speak_time)
$"%customs".visible = new.play_music
$"%override_panel".visible = new.override_weather_music
func _on_alarm_play_music_toggled(button_pressed):
$"%customs".visible =button_pressed
$"%customs".visible = button_pressed
if editing_alarm:
editing_alarm.play_music = button_pressed
@@ -84,14 +81,14 @@ func _on_alarm_moment_minute_value_changed(value):
func _on_save_button_pressed():
if Config.flags.add_alarm(editing_alarm):
spawn_item(editing_alarm)
Config.emit_signal("changed")
Config.changed.emit()
editing_alarm = null
current_tab = 0
func _on_cancel_button_pressed():
editing_alarm = null
current_tab= 0
current_tab = 0
func _on_alarm_speak_time_toggled(button_pressed):
@@ -100,6 +97,6 @@ func _on_alarm_speak_time_toggled(button_pressed):
func _on_alarm_music_override_selection_selected(idx):
print("SETTING override music to ",idx," (", Constants.WEATHER.keys()[idx],')')
print("SETTING override music to ", idx, " (", Constants.WEATHER.keys()[idx], ')')
if editing_alarm:
editing_alarm.weather_music = idx
@@ -0,0 +1 @@
uid://b3fsf4f2y4v4p
+262 -260
View File
@@ -1,34 +1,34 @@
[gd_scene load_steps=22 format=2]
[gd_scene load_steps=22 format=3]
[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]
[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="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="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 )
[sub_resource type="GradientTexture2D" id="2"]
gradient = SubResource("3")
height = 32
fill_to = Vector2( 0, 1 )
fill_to = Vector2(0, 1)
[node name="alarms_screen" type="TabContainer"]
anchor_right = 1.0
@@ -36,10 +36,10 @@ anchor_bottom = 1.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 17 )
custom_styles/panel = SubResource( 4 )
theme = ExtResource("17")
theme_override_styles/panel = SubResource("4")
tabs_visible = false
script = ExtResource( 5 )
script = ExtResource("5")
[node name="main" type="VBoxContainer" parent="."]
visible = false
@@ -50,96 +50,97 @@ 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 )
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"]
margin_left = 137.0
margin_top = 10.0
margin_right = 213.0
margin_bottom = 35.0
custom_fonts/font = ExtResource( 2 )
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"]
margin_top = 49.0
margin_right = 350.0
margin_bottom = 532.0
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"]
margin_right = 350.0
margin_bottom = 21.0
rect_min_size = Vector2( 0, 21 )
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 = true
stretch_mode = 2
texture = SubResource("2")
expand_mode = 1
stretch_mode = 1
[node name="ScrollContainer" type="ScrollContainer" parent="main/VBoxContainer"]
margin_right = 350.0
margin_bottom = 483.0
offset_right = 350.0
offset_bottom = 483.0
mouse_filter = 1
size_flags_horizontal = 3
size_flags_vertical = 3
scroll_horizontal_enabled = false
horizontal_scroll_mode = 0
[node name="VBoxContainer" type="VBoxContainer" parent="main/VBoxContainer/ScrollContainer"]
margin_right = 350.0
margin_bottom = 483.0
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"]
margin_right = 350.0
margin_bottom = 20.0
rect_min_size = Vector2( 0, 20 )
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
margin_top = 24.0
margin_right = 350.0
margin_bottom = 483.0
offset_top = 24.0
offset_right = 350.0
offset_bottom = 483.0
mouse_filter = 2
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 0
theme_override_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 )
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
margin_right = 173.0
margin_bottom = 64.0
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 )
expand = true
texture_normal = ExtResource("4")
ignore_texture_size = 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
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 )
expand = true
texture_normal = ExtResource("3")
ignore_texture_size = true
stretch_mode = 5
[node name="edit" type="VBoxContainer" parent="."]
@@ -150,386 +151,387 @@ 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 )
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"]
margin_right = 350.0
margin_bottom = 45.0
offset_right = 350.0
offset_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 )
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 )
expand = true
texture_normal = ExtResource("1")
ignore_texture_size = true
stretch_mode = 5
[node name="Label" type="Label" parent="edit/HBoxContainer"]
margin_top = 10.0
margin_right = 350.0
margin_bottom = 35.0
offset_top = 10.0
offset_right = 350.0
offset_bottom = 35.0
size_flags_horizontal = 3
custom_fonts/font = ExtResource( 2 )
theme_override_fonts/font = ExtResource("2")
theme_override_font_sizes/font_size = 26
text = "EDIT ALARM"
align = 1
horizontal_alignment = 1
[node name="VBoxContainer" type="MarginContainer" parent="edit"]
margin_top = 49.0
margin_right = 350.0
margin_bottom = 586.0
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"]
margin_right = 350.0
margin_bottom = 21.0
rect_min_size = Vector2( 0, 21 )
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 = true
stretch_mode = 2
texture = SubResource("2")
expand_mode = 1
stretch_mode = 1
[node name="ScrollContainer" type="ScrollContainer" parent="edit/VBoxContainer"]
margin_right = 350.0
margin_bottom = 537.0
scroll_horizontal_enabled = false
offset_right = 350.0
offset_bottom = 537.0
horizontal_scroll_mode = 0
[node name="VBoxContainer" type="VBoxContainer" parent="edit/VBoxContainer/ScrollContainer"]
margin_right = 350.0
margin_bottom = 537.0
rect_pivot_offset = Vector2( -731, 244 )
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"]
margin_right = 350.0
margin_bottom = 113.0
rect_min_size = Vector2( 0, 20 )
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"]
margin_left = 46.0
margin_top = 117.0
margin_right = 304.0
margin_bottom = 175.0
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"]
margin_right = 127.0
margin_bottom = 22.0
offset_right = 127.0
offset_bottom = 22.0
text = "Hour "
align = 1
horizontal_alignment = 1
[node name="Label2" type="Label" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/VBoxContainer"]
margin_left = 131.0
margin_right = 258.0
margin_bottom = 22.0
offset_left = 131.0
offset_right = 258.0
offset_bottom = 22.0
text = "Minute "
align = 1
horizontal_alignment = 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
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
margin_left = 131.0
margin_top = 26.0
margin_right = 258.0
margin_bottom = 58.0
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"]
margin_top = 179.0
margin_right = 350.0
margin_bottom = 236.0
offset_top = 179.0
offset_right = 350.0
offset_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
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
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Allow the alarm
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
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = 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"]
margin_top = 240.0
margin_right = 350.0
margin_bottom = 297.0
offset_top = 240.0
offset_right = 350.0
offset_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
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
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Will speak the time,
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
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = 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"]
margin_top = 301.0
margin_right = 350.0
margin_bottom = 358.0
offset_top = 301.0
offset_right = 350.0
offset_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
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
margin_left = 218.0
margin_right = 350.0
margin_bottom = 57.0
rect_min_size = Vector2( 132, 57 )
hint_tooltip = "Plays an alarm tune
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
pressed = true
texture_normal = ExtResource( 8 )
texture_pressed = ExtResource( 7 )
expand = 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
margin_top = 362.0
margin_right = 350.0
margin_bottom = 419.0
offset_top = 362.0
offset_right = 350.0
offset_bottom = 419.0
[node name="HBoxContainer" type="HBoxContainer" parent="edit/VBoxContainer/ScrollContainer/VBoxContainer/customs"]
margin_right = 350.0
margin_bottom = 57.0
offset_right = 350.0
offset_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
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
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
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 )
expand = 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
margin_top = 61.0
margin_right = 350.0
margin_bottom = 221.0
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
margin_left = 15.0
margin_top = 5.0
margin_right = 335.0
margin_bottom = 155.0
rect_min_size = Vector2( 0, 150 )
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 )
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
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 14 )
icon_align = 1
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"]
margin_left = 81.0
margin_right = 158.0
margin_bottom = 73.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 11 )
icon_align = 1
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"]
margin_left = 162.0
margin_right = 239.0
margin_bottom = 73.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 16 )
icon_align = 1
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"]
margin_left = 243.0
margin_right = 320.0
margin_bottom = 73.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 9 )
icon_align = 1
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"]
margin_top = 77.0
margin_right = 77.0
margin_bottom = 150.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 15 )
icon_align = 1
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"]
margin_left = 81.0
margin_top = 77.0
margin_right = 158.0
margin_bottom = 150.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 13 )
icon_align = 1
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"]
margin_left = 162.0
margin_top = 77.0
margin_right = 239.0
margin_bottom = 150.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
pressed = true
icon = ExtResource( 12 )
icon_align = 1
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"]
margin_left = 243.0
margin_top = 77.0
margin_right = 320.0
margin_bottom = 150.0
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"
theme_type_variation = &"SelectedItem"
toggle_mode = true
icon = ExtResource( 10 )
icon_align = 1
icon = ExtResource("10")
icon_alignment = 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
offset_top = 423.0
offset_right = 350.0
offset_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 )
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"]
margin_right = 350.0
margin_bottom = 46.0
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 )
expand = true
texture_normal = ExtResource("6")
ignore_texture_size = 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 )
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"]