diff --git a/clock.gd b/clock.gd index c12c389..7f8e19e 100644 --- a/clock.gd +++ b/clock.gd @@ -1,7 +1,7 @@ extends Control var taskbar_height : int = 50 -var bar_size : int = 10 +@export var bar_size : int = 10 @export var bar: TextureProgressBar @export var label: Label @export var options_window: Window diff --git a/export_presets.cfg b/export_presets.cfg index 57f9e79..ac8d319 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -127,7 +127,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../../Exports/Gadget Clock/MacOS/gadgetclock.zip" +export_path="../../Exports/Gadget Clock/MacOS/sleepyclock.zip" patches=PackedStringArray() patch_delta_encoding=false patch_delta_compression_level_zstd=19 @@ -151,7 +151,7 @@ debug/export_console_wrapper=1 application/liquid_glass_icon="" application/icon="" application/icon_interpolation=4 -application/bundle_identifier="dev.tabbycat.clockbar" +application/bundle_identifier="dev.tabbycat.sleepyclock" application/signature="" application/app_category="Games" application/short_version="" diff --git a/main.tscn b/main.tscn index 1c468db..7b36750 100644 --- a/main.tscn +++ b/main.tscn @@ -33,6 +33,7 @@ script = ExtResource("1_h2yge") bar = NodePath("VBoxContainer/MainContent/bar") label = NodePath("VBoxContainer/MainContent/Label") options_window = NodePath("Options Window") +bar_position = 1 [node name="Bar" type="Window" parent="." unique_id=714499816] transparent_bg = true @@ -132,6 +133,7 @@ oversampling_override = 1.0 title = "SleepClock Options" initial_position = 1 size = Vector2i(450, 300) +visible = false unresizable = true always_on_top = 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] layout_mode = 2 +disabled = true selected = 0 item_count = 2 popup/item_0/text = "Bottom" @@ -243,12 +246,14 @@ min_value = 10.0 max_value = 50.0 step = 10.0 value = 10.0 +editable = false tick_count = 5 ticks_on_borders = true [node name="Label2" type="Label" parent="Options Window/MarginContainer/VBoxContainer" unique_id=201796106] layout_mode = 2 text = "todo: +- position and size - text to display inside bar" label_settings = SubResource("LabelSettings_1bvp3") diff --git a/sleepyclockSave.gd b/sleepyclockSave.gd index 22adc18..f4d44b7 100644 --- a/sleepyclockSave.gd +++ b/sleepyclockSave.gd @@ -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 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