127 lines
3.9 KiB
Plaintext
127 lines
3.9 KiB
Plaintext
[gd_scene load_steps=7 format=3]
|
|
|
|
[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
|
|
custom_minimum_size = Vector2(0, 55)
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
theme = ExtResource("3")
|
|
script = ExtResource("5")
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
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)
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
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"]
|
|
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")
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"]
|
|
offset_left = 50.0
|
|
offset_right = 106.0
|
|
offset_bottom = 46.0
|
|
mouse_filter = 2
|
|
theme_override_constants/margin_left = 10
|
|
|
|
[node name="edit_button" type="Button" parent="HBoxContainer/MarginContainer"]
|
|
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"]
|
|
offset_left = 10.0
|
|
offset_right = 56.0
|
|
offset_bottom = 46.0
|
|
mouse_filter = 2
|
|
theme_override_constants/separation = 1
|
|
|
|
[node name="hour" type="Label" parent="HBoxContainer/MarginContainer/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
offset_top = 12.0
|
|
offset_right = 20.0
|
|
offset_bottom = 33.0
|
|
size_flags_horizontal = 3
|
|
theme_override_fonts/font = ExtResource("4")
|
|
theme_override_font_sizes/font_size = 22
|
|
text = "12"
|
|
|
|
[node name="colon" type="Label" parent="HBoxContainer/MarginContainer/HBoxContainer"]
|
|
offset_left = 21.0
|
|
offset_top = 12.0
|
|
offset_right = 25.0
|
|
offset_bottom = 33.0
|
|
size_flags_horizontal = 3
|
|
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
|
|
offset_left = 26.0
|
|
offset_top = 12.0
|
|
offset_right = 46.0
|
|
offset_bottom = 33.0
|
|
size_flags_horizontal = 3
|
|
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
|
|
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
|
|
button_pressed = true
|
|
texture_normal = ExtResource("2")
|
|
texture_pressed = ExtResource("1")
|
|
ignore_texture_size = true
|
|
stretch_mode = 4
|
|
|
|
[node name="ColorRect2" type="ColorRect" parent="."]
|
|
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)
|
|
|
|
[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"]
|
|
[connection signal="toggled" from="HBoxContainer/active" to="." method="_on_active_toggled"]
|