diff --git a/logic.gd b/logic.gd index 05b4816..e84d133 100644 --- a/logic.gd +++ b/logic.gd @@ -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