This commit is contained in:
Tabby 2026-06-01 00:33:34 +10:00
parent 181f3eaf50
commit 35efa621e9
4 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,7 @@
extends Control extends Control
var taskbar_height : int = 50 var taskbar_height : int = 50
var bar_size : int = 10 @export var bar_size : int = 10
@export var bar: TextureProgressBar @export var bar: TextureProgressBar
@export var label: Label @export var label: Label
@export var options_window: Window @export var options_window: Window

View file

@ -127,7 +127,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="../../Exports/Gadget Clock/MacOS/gadgetclock.zip" export_path="../../Exports/Gadget Clock/MacOS/sleepyclock.zip"
patches=PackedStringArray() patches=PackedStringArray()
patch_delta_encoding=false patch_delta_encoding=false
patch_delta_compression_level_zstd=19 patch_delta_compression_level_zstd=19
@ -151,7 +151,7 @@ debug/export_console_wrapper=1
application/liquid_glass_icon="" application/liquid_glass_icon=""
application/icon="" application/icon=""
application/icon_interpolation=4 application/icon_interpolation=4
application/bundle_identifier="dev.tabbycat.clockbar" application/bundle_identifier="dev.tabbycat.sleepyclock"
application/signature="" application/signature=""
application/app_category="Games" application/app_category="Games"
application/short_version="" application/short_version=""

View file

@ -33,6 +33,7 @@ script = ExtResource("1_h2yge")
bar = NodePath("VBoxContainer/MainContent/bar") bar = NodePath("VBoxContainer/MainContent/bar")
label = NodePath("VBoxContainer/MainContent/Label") label = NodePath("VBoxContainer/MainContent/Label")
options_window = NodePath("Options Window") options_window = NodePath("Options Window")
bar_position = 1
[node name="Bar" type="Window" parent="." unique_id=714499816] [node name="Bar" type="Window" parent="." unique_id=714499816]
transparent_bg = true transparent_bg = true
@ -132,6 +133,7 @@ oversampling_override = 1.0
title = "SleepClock Options" title = "SleepClock Options"
initial_position = 1 initial_position = 1
size = Vector2i(450, 300) size = Vector2i(450, 300)
visible = false
unresizable = true unresizable = true
always_on_top = true always_on_top = true
minimize_disabled = true minimize_disabled = true
@ -217,6 +219,7 @@ text = "Bar Position"
[node name="OptionButton" type="OptionButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1955200779] [node name="OptionButton" type="OptionButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1955200779]
layout_mode = 2 layout_mode = 2
disabled = true
selected = 0 selected = 0
item_count = 2 item_count = 2
popup/item_0/text = "Bottom" popup/item_0/text = "Bottom"
@ -243,12 +246,14 @@ min_value = 10.0
max_value = 50.0 max_value = 50.0
step = 10.0 step = 10.0
value = 10.0 value = 10.0
editable = false
tick_count = 5 tick_count = 5
ticks_on_borders = true ticks_on_borders = true
[node name="Label2" type="Label" parent="Options Window/MarginContainer/VBoxContainer" unique_id=201796106] [node name="Label2" type="Label" parent="Options Window/MarginContainer/VBoxContainer" unique_id=201796106]
layout_mode = 2 layout_mode = 2
text = "todo: text = "todo:
- position and size
- text to display inside bar" - text to display inside bar"
label_settings = SubResource("LabelSettings_1bvp3") label_settings = SubResource("LabelSettings_1bvp3")

View file

@ -3,3 +3,5 @@ class_name SleepyclockSave
@export var end_time : float = 0 # number of seconds past midnight the clock bar should fill up @export var end_time : float = 0 # number of seconds past midnight the clock bar should fill up
@export var duration : float = 7200 # number of seconds the clock bar should progress for (end_time - duration = "start_time") @export var duration : float = 7200 # number of seconds the clock bar should progress for (end_time - duration = "start_time")
#@export var position : int = 0
#@export var size : int = 10