new ui elements for timing
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
1
mine.py
1
mine.py
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user