dino_tomato/main.tscn

121 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2024-12-20 11:57:43 -05:00
[gd_scene load_steps=3 format=3 uid="uid://dw6uk60j153g4"]
[ext_resource type="Script" uid="uid://c4mjp8t1rmhgx" path="res://main.gd" id="1_fn6k1"]
2024-12-20 11:57:43 -05:00
[ext_resource type="AudioStream" uid="uid://doh10c785c5fm" path="res://assets/miss.wav" id="3_sir8a"]
[node name="Main" type="Control" node_paths=PackedStringArray("time_label", "realtime_label", "rest_label", "timer", "image", "edits")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_fn6k1")
time_label = NodePath("Time")
realtime_label = NodePath("TotalTime")
rest_label = NodePath("Rests")
timer = NodePath("Timer")
image = NodePath("FunnyImg")
edits = {
&"longrest": NodePath("VBoxContainer/EditMinutesLongBreak"),
2024-12-20 11:57:43 -05:00
&"rest": NodePath("VBoxContainer/EditMinutesBreak"),
&"run": NodePath("VBoxContainer/EditWorkMins")
2024-12-20 11:57:43 -05:00
}
[node name="FunnyImg" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 13.0
offset_right = -141.0
offset_bottom = -37.0
grow_horizontal = 2
grow_vertical = 2
expand_mode = 1
stretch_mode = 4
[node name="ButtonStart" type="Button" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -37.0
offset_right = 52.0
grow_vertical = 0
text = "Start"
[node name="Timer" type="Timer" parent="."]
[node name="Time" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -141.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
size_flags_vertical = 3
bbcode_enabled = true
text = "[color=black]00:00:00"
horizontal_alignment = 2
[node name="TotalTime" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -141.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
size_flags_vertical = 3
bbcode_enabled = true
text = "[color=black]00:00:00"
[node name="Rests" type="RichTextLabel" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
bbcode_enabled = true
text = "[color=black]4"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -141.0
grow_horizontal = 0
grow_vertical = 2
[node name="EditWorkMins" type="TextEdit" parent="VBoxContainer"]
layout_mode = 2
text = "25"
placeholder_text = "Work"
scroll_fit_content_height = true
[node name="EditMinutesBreak" type="TextEdit" parent="VBoxContainer"]
layout_mode = 2
text = "10"
placeholder_text = "Break"
scroll_fit_content_height = true
[node name="EditMinutesLongBreak" type="TextEdit" parent="VBoxContainer"]
layout_mode = 2
text = "25"
placeholder_text = "Long Break"
scroll_fit_content_height = true
[node name="SFX" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_sir8a")
[connection signal="button_up" from="ButtonStart" to="." method="on_clock_start"]
[connection signal="timeout" from="Timer" to="." method="_on_timeout"]