lots of progress

This commit is contained in:
Tabby 2026-06-01 12:21:11 +10:00
parent e24568da25
commit 733a8fd6c0
7 changed files with 240 additions and 51 deletions

134
main.tscn
View file

@ -33,7 +33,6 @@ 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
@ -128,12 +127,11 @@ 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="Options Window" type="Window" parent="." unique_id=1651073981 node_paths=PackedStringArray("sleep_h", "sleep_m", "duration_h", "duration_m")]
[node name="Options Window" type="Window" parent="." unique_id=1651073981 node_paths=PackedStringArray("sleep_h", "sleep_m", "duration_h", "duration_m", "size_label", "size_slider")]
oversampling_override = 1.0
title = "SleepClock Options"
title = "SleepyClock Options"
initial_position = 1
size = Vector2i(450, 300)
visible = false
size = Vector2i(450, 600)
unresizable = true
always_on_top = true
minimize_disabled = true
@ -143,6 +141,8 @@ sleep_h = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer/sl
sleep_m = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer/sleepM")
duration_h = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer2/durationH")
duration_m = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer2/durationM")
size_label = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer3/sizeLabel")
size_slider = NodePath("MarginContainer/VBoxContainer/GridContainer/HBoxContainer3/sizeSlider")
[node name="MarginContainer" type="MarginContainer" parent="Options Window" unique_id=426909220]
anchors_preset = 15
@ -168,7 +168,7 @@ layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "This is the time at which the bar should completely fill up"
mouse_filter = 1
text = "Sleep Time (24 hour time): 🛈"
text = "Sleep Time (24 hour time) 🛈"
[node name="HBoxContainer" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=34542284]
layout_mode = 2
@ -193,7 +193,7 @@ layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "How long it should take for the bar to fill"
mouse_filter = 1
text = "Bar/Clock Duration: 🛈"
text = "Bar/Clock Duration 🛈"
[node name="HBoxContainer2" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=650035341]
layout_mode = 2
@ -215,11 +215,12 @@ select_all_on_focus = true
[node name="Label4" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1856476808]
layout_mode = 2
text = "Bar Position"
tooltip_text = "Which edge of the screen should the bar be placed on"
mouse_filter = 1
text = "Bar Position 🛈"
[node name="OptionButton" type="OptionButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1955200779]
[node name="positionDropdown" 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"
@ -229,31 +230,121 @@ popup/item_1/id = 1
[node name="Label2" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1597493397]
layout_mode = 2
text = "Bar Size"
tooltip_text = "How much space should the bar take up"
mouse_filter = 1
text = "Bar Size 🛈"
[node name="HBoxContainer3" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1274134494]
layout_mode = 2
[node name="Label" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer3" unique_id=531473775]
[node name="sizeLabel" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer3" unique_id=531473775]
layout_mode = 2
text = "10px"
[node name="HSlider" type="HSlider" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer3" unique_id=271540690]
[node name="sizeSlider" type="HSlider" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer3" unique_id=271540690]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
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="Label6" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1332307585]
layout_mode = 2
tooltip_text = "Color that the bar should be under normal conditions"
mouse_filter = 1
text = "Bar Color 🛈"
[node name="barColor" type="ColorPickerButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=114688172]
layout_mode = 2
[node name="Label7" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1857238089]
layout_mode = 2
tooltip_text = "Color that the background of the bar should be"
mouse_filter = 1
text = "Background Color 🛈"
[node name="backgroundColor" type="ColorPickerButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=468934955]
layout_mode = 2
[node name="Label5" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=665826413]
layout_mode = 2
tooltip_text = "Make the bar change color when the time left is below a certain threshold"
mouse_filter = 1
text = "Warning 🛈"
[node name="HBoxContainer4" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=936118584]
layout_mode = 2
[node name="warningColor" type="ColorPickerButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4" unique_id=925432958]
layout_mode = 2
size_flags_horizontal = 3
[node name="warningH" type="SpinBox" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4" unique_id=232298746]
layout_mode = 2
size_flags_horizontal = 3
max_value = 23.0
suffix = "h"
select_all_on_focus = true
[node name="warningM" type="SpinBox" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4" unique_id=604816514]
layout_mode = 2
size_flags_horizontal = 3
max_value = 59.0
suffix = "m"
select_all_on_focus = true
[node name="Label10" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=207682712]
layout_mode = 2
tooltip_text = "Play a flashing effect when time expires"
mouse_filter = 1
text = "flash bar when time ends 🛈"
[node name="flashCheck" type="CheckButton" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1168112585]
layout_mode = 2
size_flags_horizontal = 4
[node name="Label8" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=280072151]
layout_mode = 2
tooltip_text = "How long should the bar be visible before the time starts"
mouse_filter = 1
text = "Display before time starts 🛈"
[node name="HBoxContainer5" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=2104802150]
layout_mode = 2
[node name="beforeM" type="SpinBox" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer5" unique_id=157077084]
layout_mode = 2
size_flags_horizontal = 3
max_value = 59.0
editable = false
suffix = "m"
select_all_on_focus = true
[node name="Label9" type="Label" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=703302168]
layout_mode = 2
tooltip_text = "How long should the bar be visible for after the time ends"
mouse_filter = 1
text = "Display after time ends 🛈"
[node name="HBoxContainer6" type="HBoxContainer" parent="Options Window/MarginContainer/VBoxContainer/GridContainer" unique_id=1503325100]
layout_mode = 2
[node name="afterM" type="SpinBox" parent="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer6" unique_id=1517063919]
layout_mode = 2
size_flags_horizontal = 3
max_value = 59.0
editable = false
suffix = "m"
select_all_on_focus = true
[node name="Label2" type="Label" parent="Options Window/MarginContainer/VBoxContainer" unique_id=201796106]
layout_mode = 2
text = "todo:
- position and size
- red threshold
- display before/after time
- text to display inside bar"
label_settings = SubResource("LabelSettings_1bvp3")
@ -273,6 +364,17 @@ text = "Save"
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="." method="_on_popup_menu_id_pressed"]
[connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"]
[connection signal="close_requested" from="Options Window" to="Options Window" method="_on_close_requested"]
[connection signal="options_changed" from="Options Window" to="." method="setup_window"]
[connection signal="visibility_changed" from="Options Window" to="Options Window" method="_on_visibility_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer/sleepH" to="Options Window" method="_on_sleep_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer/sleepM" to="Options Window" method="_on_sleep_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2/durationH" to="Options Window" method="_on_duration_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2/durationM" to="Options Window" method="_on_duration_value_changed"]
[connection signal="item_selected" from="Options Window/MarginContainer/VBoxContainer/GridContainer/positionDropdown" to="Options Window" method="_on_position_dropdown_item_selected"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer3/sizeSlider" to="Options Window" method="_on_size_slider_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4/warningH" to="Options Window" method="_on_duration_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4/warningM" to="Options Window" method="_on_duration_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer5/beforeM" to="Options Window" method="_on_duration_value_changed"]
[connection signal="value_changed" from="Options Window/MarginContainer/VBoxContainer/GridContainer/HBoxContainer6/afterM" to="Options Window" method="_on_duration_value_changed"]
[connection signal="pressed" from="Options Window/MarginContainer/VBoxContainer/HBoxContainer/cancelButton" to="Options Window" method="_on_cancel_button_pressed"]
[connection signal="pressed" from="Options Window/MarginContainer/VBoxContainer/HBoxContainer/saveButton" to="Options Window" method="_on_save_button_pressed"]