[gd_scene load_steps=10 format=3 uid="uid://df4wh83ypl085"] [ext_resource type="Script" uid="uid://q31pnijofl0q" path="res://logic.gd" id="1_0xm2m"] [ext_resource type="Script" uid="uid://njpp5gvmxi7f" path="res://TitleBar.gd" id="1_ig7tw"] [ext_resource type="Texture2D" uid="uid://brljmipci58rq" path="res://Sprites/offTask.png" id="3_7mycd"] [ext_resource type="Texture2D" uid="uid://b502wtiwv20em" path="res://Sprites/statusIcon.png" id="3_h2yge"] [ext_resource type="Texture2D" uid="uid://c2hn0uem08y1x" path="res://Sprites/offTaskPressed.png" id="4_272bh"] [ext_resource type="Texture2D" uid="uid://duvep02qg1u5d" path="res://Sprites/offTaskHover.png" id="5_5vw27"] [ext_resource type="Texture2D" uid="uid://buemgq8amjorw" path="res://Sprites/paused.png" id="6_kek77"] [ext_resource type="Texture2D" uid="uid://b7kxpcujq3cqn" path="res://Sprites/pausedPressed.png" id="7_4c57u"] [ext_resource type="Texture2D" uid="uid://cdmqqnh3ofp8u" path="res://Sprites/pausedHover.png" id="8_efxa6"] [node name="Control" type="Control" node_paths=PackedStringArray("on_task_panel", "off_task_panel", "break_panel", "background", "on_clock", "off_clock", "break_clock", "next_break_text", "time_spent_text")] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_0xm2m") colors = Array[Color]([Color(0.321569, 0.321569, 0.321569, 1), Color(0.612149, 0, 0.151715, 1), Color(3.36915e-07, 0.391146, 0.157066, 1)]) on_task_panel = NodePath("VBoxContainer/MainContent/OnTask") off_task_panel = NodePath("VBoxContainer/MainContent/OffTask") break_panel = NodePath("VBoxContainer/MainContent/Break") background = NodePath("Background") on_clock = NodePath("VBoxContainer/MainContent/OnTask/OnTaskClock") off_clock = NodePath("VBoxContainer/MainContent/OffTask/OffTaskTimer") break_clock = NodePath("VBoxContainer/MainContent/Break/BreakTimer") next_break_text = NodePath("VBoxContainer/MainContent/OnTask/NextBreakText") time_spent_text = NodePath("VBoxContainer/MainContent/OnTask/TimeSpentWorking") [node name="Background" type="ColorRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.321728, 0.321728, 0.321728, 1) [node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="TitleBar" type="PanelContainer" parent="VBoxContainer"] layout_mode = 2 script = ExtResource("1_ig7tw") [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar"] layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="VBoxContainer/TitleBar/HBoxContainer"] layout_mode = 2 text = "Focus Tool" [node name="MainContent" type="Control" parent="VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 [node name="OnTask" type="VBoxContainer" parent="VBoxContainer/MainContent"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_vertical = 3 alignment = 1 [node name="OnTaskClock" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"] layout_mode = 2 theme_override_font_sizes/normal_font_size = 52 text = "2:32" fit_content = true horizontal_alignment = 1 vertical_alignment = 1 [node name="NextBreakText" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"] layout_mode = 2 text = "Until Lunch" fit_content = true horizontal_alignment = 1 [node name="TimeSpentWorking" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"] layout_mode = 2 theme_override_colors/default_color = Color(0.564962, 0.564962, 0.564962, 1) text = "2:00 Spent working" fit_content = true horizontal_alignment = 1 [node name="OffTask" type="VBoxContainer" parent="VBoxContainer/MainContent"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_vertical = 3 alignment = 1 [node name="OffTaskTimer" type="RichTextLabel" parent="VBoxContainer/MainContent/OffTask"] layout_mode = 2 theme_override_font_sizes/normal_font_size = 52 bbcode_enabled = true text = "2:32" fit_content = true horizontal_alignment = 1 vertical_alignment = 1 [node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/OffTask"] layout_mode = 2 text = "Off Task" fit_content = true horizontal_alignment = 1 [node name="Break" type="VBoxContainer" parent="VBoxContainer/MainContent"] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_vertical = 3 alignment = 1 [node name="BreakTimer" type="RichTextLabel" parent="VBoxContainer/MainContent/Break"] layout_mode = 2 theme_override_font_sizes/normal_font_size = 52 text = "2:32" fit_content = true horizontal_alignment = 1 vertical_alignment = 1 [node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/Break"] layout_mode = 2 text = "On Break" fit_content = true horizontal_alignment = 1 [node name="Buttons" type="HBoxContainer" parent="VBoxContainer"] layout_mode = 2 [node name="OffTaskButton" type="TextureButton" parent="VBoxContainer/Buttons"] layout_mode = 2 texture_normal = ExtResource("3_7mycd") texture_pressed = ExtResource("4_272bh") texture_hover = ExtResource("5_5vw27") [node name="PauseButton" type="TextureButton" parent="VBoxContainer/Buttons"] layout_mode = 2 texture_normal = ExtResource("6_kek77") texture_pressed = ExtResource("7_4c57u") texture_hover = ExtResource("8_efxa6") [node name="StatusIndicator" type="StatusIndicator" parent="."] icon = ExtResource("3_h2yge") menu = NodePath("PopupMenu") [node name="PopupMenu" type="PopupMenu" parent="StatusIndicator"] item_count = 1 item_0/text = "Exit" item_0/id = 0 [connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"] [connection signal="pressed" from="VBoxContainer/Buttons/OffTaskButton" to="." method="_on_off_task_button_pressed"] [connection signal="pressed" from="VBoxContainer/Buttons/PauseButton" to="." method="_on_pause_button_pressed"] [connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="." method="_on_popup_menu_id_pressed"]