minor change

This commit is contained in:
Tabby 2025-05-31 13:28:17 +10:00
parent 25aba0028d
commit 85740ade1d

View file

@ -54,7 +54,7 @@ func _process(delta: float) -> void:
break_time += delta
break_clock.text = seconds_to_time(break_time,false)
if(update <= 0):
if(update <= 0): #every time the clock is updated it resets the animation, this prevent sit from updating too often
update += 0.5
off_clock.text = "[shake rate="+str(off_time/5)+" level="+str(off_time/20)+"]"
off_clock.text += seconds_to_time(off_time,false)
@ -70,6 +70,7 @@ func _on_popup_menu_id_pressed(id: int) -> void:
func _on_off_task_button_pressed() -> void:
if state == State.OffTask:
state = State.Working
off_time = 0
else:
state = State.OffTask
off_time = 0