minor change
This commit is contained in:
parent
25aba0028d
commit
85740ade1d
1 changed files with 2 additions and 1 deletions
3
logic.gd
3
logic.gd
|
|
@ -54,7 +54,7 @@ func _process(delta: float) -> void:
|
||||||
break_time += delta
|
break_time += delta
|
||||||
break_clock.text = seconds_to_time(break_time,false)
|
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
|
update += 0.5
|
||||||
off_clock.text = "[shake rate="+str(off_time/5)+" level="+str(off_time/20)+"]"
|
off_clock.text = "[shake rate="+str(off_time/5)+" level="+str(off_time/20)+"]"
|
||||||
off_clock.text += seconds_to_time(off_time,false)
|
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:
|
func _on_off_task_button_pressed() -> void:
|
||||||
if state == State.OffTask:
|
if state == State.OffTask:
|
||||||
state = State.Working
|
state = State.Working
|
||||||
|
off_time = 0
|
||||||
else:
|
else:
|
||||||
state = State.OffTask
|
state = State.OffTask
|
||||||
off_time = 0
|
off_time = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue