This commit is contained in:
Tabby 2026-05-21 00:22:40 +10:00
parent add8a76bc8
commit d34084867b
14 changed files with 260 additions and 106 deletions

184
main.tscn
View file

@ -1,44 +1,36 @@
[gd_scene load_steps=10 format=3 uid="uid://df4wh83ypl085"]
[gd_scene 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://dblnpuq85tsmq" path="res://main.gd" id="1_h2yge"]
[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")]
[node name="Control" type="Control" unique_id=577067945 node_paths=PackedStringArray("player_name", "player_rank", "player_score", "cell_rank", "cell_score", "player_request", "cell_request", "cell_name")]
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")
script = ExtResource("1_h2yge")
player_name = NodePath("VBoxContainer/MainContent/OnTask/playerName")
player_rank = NodePath("VBoxContainer/MainContent/OnTask/GridContainer/playerRank")
player_score = NodePath("VBoxContainer/MainContent/OnTask/GridContainer/playerScore")
cell_rank = NodePath("VBoxContainer/MainContent/OnTask/GridContainer2/cellRank")
cell_score = NodePath("VBoxContainer/MainContent/OnTask/GridContainer2/cellScore")
player_request = NodePath("playerRequest")
cell_request = NodePath("cellRequest")
cell_name = NodePath("VBoxContainer/MainContent/OnTask/cellName")
[node name="Background" type="ColorRect" parent="."]
[node name="Background" type="ColorRect" parent="." unique_id=641703216]
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)
color = Color(0.31691015, 0.00042817116, 0.42128003, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=670454016]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -46,24 +38,24 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer" node_paths=PackedStringArray("options_menu")]
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer" unique_id=1245189107 node_paths=PackedStringArray("options_menu")]
layout_mode = 2
script = ExtResource("1_ig7tw")
options_menu = NodePath("../../StatusIndicator/PopupMenu")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar"]
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar" unique_id=1199806333]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/TitleBar/HBoxContainer"]
[node name="Label" type="Label" parent="VBoxContainer/TitleBar/HBoxContainer" unique_id=804273888]
layout_mode = 2
text = "Focus Tool"
text = "Payphone Watcher"
[node name="MainContent" type="Control" parent="VBoxContainer"]
[node name="MainContent" type="Control" parent="VBoxContainer" unique_id=1523584708]
layout_mode = 2
size_flags_vertical = 3
[node name="OnTask" type="VBoxContainer" parent="VBoxContainer/MainContent"]
[node name="OnTask" type="VBoxContainer" parent="VBoxContainer/MainContent" unique_id=1800861120]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -71,99 +63,81 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
theme_override_constants/separation = 0
alignment = 1
[node name="OnTaskClock" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"]
[node name="playerName" type="Label" parent="VBoxContainer/MainContent/OnTask" unique_id=1091176720]
modulate = Color(1, 0.58431375, 1, 1)
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
text = "LunarLynx 😜"
horizontal_alignment = 1
[node name="TimeSpentWorking" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"]
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/MainContent/OnTask" unique_id=938839243]
layout_mode = 2
theme_override_colors/default_color = Color(0.564962, 0.564962, 0.564962, 1)
text = "2:00 Spent working"
fit_content = true
columns = 2
[node name="Label" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=1388196608]
layout_mode = 2
size_flags_horizontal = 3
text = "Rank:"
horizontal_alignment = 2
[node name="playerRank" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=482359721]
layout_mode = 2
size_flags_horizontal = 3
text = "..."
[node name="Label2" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=1618465185]
layout_mode = 2
size_flags_horizontal = 3
text = "Score:"
horizontal_alignment = 2
[node name="playerScore" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=994771734]
layout_mode = 2
size_flags_horizontal = 3
text = "..."
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/MainContent/OnTask" unique_id=1485557779]
layout_mode = 2
[node name="cellName" type="Label" parent="VBoxContainer/MainContent/OnTask" unique_id=157893317]
modulate = Color(1, 0.58431375, 1, 1)
layout_mode = 2
text = "The Catgirl Mafia [MIAW]"
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"]
[node name="GridContainer2" type="GridContainer" parent="VBoxContainer/MainContent/OnTask" unique_id=959168299]
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
columns = 2
[node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/OffTask"]
[node name="Label" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=521074097]
layout_mode = 2
text = "Off Task"
fit_content = true
horizontal_alignment = 1
size_flags_horizontal = 3
text = "Rank:"
horizontal_alignment = 2
[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"]
[node name="cellRank" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=1333088748]
layout_mode = 2
theme_override_font_sizes/normal_font_size = 52
text = "2:32"
fit_content = true
horizontal_alignment = 1
vertical_alignment = 1
size_flags_horizontal = 3
text = "..."
[node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/Break"]
[node name="Label2" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=639603789]
layout_mode = 2
text = "On Break"
fit_content = true
horizontal_alignment = 1
size_flags_horizontal = 3
text = "Score:"
horizontal_alignment = 2
[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"]
[node name="cellScore" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=329730910]
layout_mode = 2
size_flags_horizontal = 3
text = "..."
[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="."]
[node name="StatusIndicator" type="StatusIndicator" parent="." unique_id=1039426600]
icon = ExtResource("3_h2yge")
menu = NodePath("PopupMenu")
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator"]
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator" unique_id=1255435033]
item_count = 6
item_0/text = "Exit"
item_0/id = 0
@ -183,8 +157,12 @@ item_5/text = "Large"
item_5/checkable = 2
item_5/id = 4
[node name="playerRequest" type="HTTPRequest" parent="." unique_id=692196380]
[node name="cellRequest" type="HTTPRequest" parent="." unique_id=1748890035]
[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"]
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="VBoxContainer/TitleBar" method="_on_popup_menu_id_pressed"]
[connection signal="request_completed" from="playerRequest" to="." method="player_request_completed"]
[connection signal="request_completed" from="cellRequest" to="." method="cell_request_completed"]