From ef3e9632f6b463b77df0c8133ba2d11f0297b06d Mon Sep 17 00:00:00 2001 From: Thaloria Date: Wed, 19 Oct 2022 15:33:53 +0200 Subject: [PATCH] new ui elements for timing --- game_base_class.py | 2 ++ mine.py | 1 + 2 files changed, 3 insertions(+) diff --git a/game_base_class.py b/game_base_class.py index 730435b..6f11433 100644 --- a/game_base_class.py +++ b/game_base_class.py @@ -85,6 +85,8 @@ class GameBase: return 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: self.overlay.run_mode = 'stopped' for break_ in breaks: diff --git a/mine.py b/mine.py index 2c91d64..08f0a8a 100644 --- a/mine.py +++ b/mine.py @@ -2,6 +2,7 @@ import cv2 as cv from utils import dig_point, check_for_ok_button from game_base_class import GameBase from window_capture import WindowCapture +from time import time class Mine(GameBase):