new ui elements for timing

This commit is contained in:
2022-10-19 15:33:53 +02:00
parent 81b7fe2871
commit ef3e9632f6
2 changed files with 3 additions and 0 deletions

View File

@@ -85,6 +85,8 @@ class GameBase:
return breaks return breaks
def check_breaks(self, start_time, breaks): def check_breaks(self, start_time, breaks):
if int(elf.stop_time) == 0:
return
if (time() - start_time) > float(self.stop_time) * 60 * 60: if (time() - start_time) > float(self.stop_time) * 60 * 60:
self.overlay.run_mode = 'stopped' self.overlay.run_mode = 'stopped'
for break_ in breaks: for break_ in breaks:

View File

@@ -2,6 +2,7 @@ import cv2 as cv
from utils import dig_point, check_for_ok_button from utils import dig_point, check_for_ok_button
from game_base_class import GameBase from game_base_class import GameBase
from window_capture import WindowCapture from window_capture import WindowCapture
from time import time
class Mine(GameBase): class Mine(GameBase):