SleepyClock/main.tscn
2026-05-29 02:00:57 +10:00

128 lines
4.1 KiB
Text

[gd_scene format=3 uid="uid://df4wh83ypl085"]
[ext_resource type="Script" uid="uid://dp4nvppf3b0gj" path="res://clock.gd" id="1_h2yge"]
[ext_resource type="Script" uid="uid://njpp5gvmxi7f" path="res://TitleBar.gd" id="1_ig7tw"]
[ext_resource type="Texture2D" uid="uid://b502wtiwv20em" path="res://Sprites/statusIcon.png" id="3_h2yge"]
[sub_resource type="Gradient" id="Gradient_h2yge"]
offsets = PackedFloat32Array(1)
colors = PackedColorArray(1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_1bvp3"]
gradient = SubResource("Gradient_h2yge")
[sub_resource type="LabelSettings" id="LabelSettings_h2yge"]
font_size = 11
[node name="Control" type="Control" unique_id=577067945 node_paths=PackedStringArray("bar", "label")]
modulate = Color(1, 1, 1, 0.42745098)
layout_mode = 3
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -10.0
grow_horizontal = 2
grow_vertical = 0
script = ExtResource("1_h2yge")
bar = NodePath("VBoxContainer/MainContent/bar")
label = NodePath("VBoxContainer/MainContent/Label")
[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.31691015, 0.00042817116, 0.42128003, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=670454016]
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" unique_id=1245189107 node_paths=PackedStringArray("options_menu")]
visible = false
layout_mode = 2
script = ExtResource("1_ig7tw")
options_menu = NodePath("../../StatusIndicator/PopupMenu")
[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" unique_id=804273888]
layout_mode = 2
text = "Payphone Watcher"
[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" unique_id=1800861120]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
theme_override_constants/separation = 0
alignment = 1
[node name="bar" type="TextureProgressBar" parent="VBoxContainer/MainContent" unique_id=1249279407]
modulate = Color(0, 0.64705884, 1, 1)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
min_value = 11.5
max_value = 13.5
step = 0.0
value = 11.81
nine_patch_stretch = true
texture_progress = SubResource("GradientTexture1D_1bvp3")
[node name="Label" type="Label" parent="VBoxContainer/MainContent" unique_id=2054367507]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "12:34 Remaining Until Sleepy time, there is alot of space for text you can work with here meow meow meow meow"
label_settings = SubResource("LabelSettings_h2yge")
[node name="StatusIndicator" type="StatusIndicator" parent="." unique_id=1039426600]
icon = ExtResource("3_h2yge")
menu = NodePath("PopupMenu")
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator" unique_id=1255435033]
item_count = 6
item_0/text = "Exit"
item_0/id = 0
item_1/id = 1
item_1/separator = true
item_2/text = "Smaller"
item_2/checkable = 2
item_2/id = 5
item_3/text = "Small"
item_3/checkable = 2
item_3/checked = true
item_3/id = 2
item_4/text = "Medium"
item_4/checkable = 2
item_4/id = 3
item_5/text = "Large"
item_5/checkable = 2
item_5/id = 4
[connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"]
[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"]