127 lines
3.8 KiB
Plaintext
127 lines
3.8 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[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]
|
|
|
|
[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 )
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
theme = ExtResource( 3 )
|
|
script = ExtResource( 5 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": true
|
|
}
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
margin_right = 350.0
|
|
margin_bottom = 2.0
|
|
rect_min_size = Vector2( 0, 2 )
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
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
|
|
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"
|
|
mouse_default_cursor_shape = 2
|
|
texture_normal = ExtResource( 6 )
|
|
expand = true
|
|
stretch_mode = 5
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"]
|
|
margin_left = 50.0
|
|
margin_right = 106.0
|
|
margin_bottom = 46.0
|
|
mouse_filter = 2
|
|
custom_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"
|
|
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
|
|
mouse_filter = 2
|
|
custom_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
|
|
size_flags_horizontal = 3
|
|
custom_fonts/font = ExtResource( 4 )
|
|
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
|
|
size_flags_horizontal = 3
|
|
custom_fonts/font = ExtResource( 4 )
|
|
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
|
|
size_flags_horizontal = 3
|
|
custom_fonts/font = ExtResource( 4 )
|
|
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"
|
|
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
|
|
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 )
|
|
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"]
|