added mining ui mode
This commit is contained in:
@@ -6,7 +6,7 @@ from crops import Crops
|
|||||||
from farm import Farm
|
from farm import Farm
|
||||||
from magic import Magic
|
from magic import Magic
|
||||||
from craft import Craft
|
from craft import Craft
|
||||||
from Mine import Mine
|
from mine import Mine
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|||||||
@@ -44,11 +44,11 @@ class PrimaryOverlay(threading.Thread):
|
|||||||
self.PauseButton = tk.Button
|
self.PauseButton = tk.Button
|
||||||
self.QuitButton = tk.Button
|
self.QuitButton = tk.Button
|
||||||
self.TkPosition = '133x239+60+600'
|
self.TkPosition = '133x239+60+600'
|
||||||
|
self.setDaemon(True)
|
||||||
self.StatusLabel = tk.Label
|
self.StatusLabel = tk.Label
|
||||||
|
|
||||||
# self.TkPosition = config.returnEnemyPlayerOverlayPos()
|
# self.TkPosition = config.returnEnemyPlayerOverlayPos()
|
||||||
|
#
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
@@ -128,6 +128,7 @@ class PrimaryOverlay(threading.Thread):
|
|||||||
self.root.quit()
|
self.root.quit()
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
self.hide_mining_overlay()
|
||||||
self.root.destroy()
|
self.root.destroy()
|
||||||
|
|
||||||
def start_button_callback(self):
|
def start_button_callback(self):
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import cv2 as cv
|
|||||||
from utils import dig_point, check_for_ok_button
|
from utils import dig_point, check_for_ok_button
|
||||||
from window_capture import WindowCapture
|
from window_capture import WindowCapture
|
||||||
from vision import Vision
|
from vision import Vision
|
||||||
from mine_overlay import DiggingOverlay
|
|
||||||
|
|
||||||
|
|
||||||
class Mine:
|
class Mine:
|
||||||
@@ -16,7 +15,6 @@ class Mine:
|
|||||||
|
|
||||||
# initialize the StunVision class
|
# initialize the StunVision class
|
||||||
self.vision_stun = Vision()
|
self.vision_stun = Vision()
|
||||||
self.dig_overlay = DiggingOverlay(self.config)
|
|
||||||
|
|
||||||
self.level = 1
|
self.level = 1
|
||||||
|
|
||||||
@@ -47,12 +45,12 @@ class Mine:
|
|||||||
while True:
|
while True:
|
||||||
if self.overlay.run_mode == 'paused':
|
if self.overlay.run_mode == 'paused':
|
||||||
cv.waitKey(10)
|
cv.waitKey(10)
|
||||||
self.dig_overlay.show_window()
|
self.overlay.show_mining_overlay()
|
||||||
continue
|
continue
|
||||||
elif self.overlay.run_mode == 'stopped':
|
elif self.overlay.run_mode == 'stopped':
|
||||||
break
|
break
|
||||||
|
|
||||||
self.dig_overlay.hide_window()
|
self.overlay.hide_mining_overlay()
|
||||||
|
|
||||||
if self.level >= 28:
|
if self.level >= 28:
|
||||||
break
|
break
|
||||||
@@ -10,6 +10,7 @@ class DiggingOverlay(threading.Thread):
|
|||||||
self.root = tk.Tk
|
self.root = tk.Tk
|
||||||
self.EnemyLabel = tk.Label
|
self.EnemyLabel = tk.Label
|
||||||
self.TkPosition = '1440x1150+570+22'
|
self.TkPosition = '1440x1150+570+22'
|
||||||
|
self.setDaemon(True)
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
def callback(self):
|
def callback(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user