new ui elements for timing
This commit is contained in:
@@ -74,8 +74,11 @@ class GameBase:
|
||||
for break_ in breaks:
|
||||
elapsed = int(time() - start_time)
|
||||
if elapsed > break_:
|
||||
cv.waitKey(random.randint(1, 3) *60*1000)
|
||||
pause = random.randint(1, 3)
|
||||
self.overlay.update_status_label("Paused " + str(pause) + " minutes")
|
||||
cv.waitKey(pause *60 *1000)
|
||||
breaks.remove(break_)
|
||||
self.overlay.update_status_label("running")
|
||||
if self.overlay.run_mode == 'paused':
|
||||
cv.waitKey(1)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user