mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
ui fix: start button and andoid ip label, fixed shorcut
This commit is contained in:
parent
379d8ac4bf
commit
36daacbf42
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
from fishy.__main__ import main
|
from fishy.__main__ import main
|
||||||
__version__ = "0.2.6"
|
__version__ = "0.2.8"
|
||||||
|
@ -45,12 +45,11 @@ class Fishy:
|
|||||||
FishingMode("look", 2, LookEvent())
|
FishingMode("look", 2, LookEvent())
|
||||||
FishingMode("idle", 3, IdleEvent(ip != ""))
|
FishingMode("idle", 3, IdleEvent(ip != ""))
|
||||||
|
|
||||||
logging.info("Starting the bot engine, look at the fishing hole to start fishing")
|
|
||||||
|
|
||||||
self.fishPixWindow = Window(color=cv2.COLOR_RGB2HSV)
|
self.fishPixWindow = Window(color=cv2.COLOR_RGB2HSV)
|
||||||
|
|
||||||
# check for game window and stuff
|
# check for game window and stuff
|
||||||
self.gui.call(GUIFunction.STARTED, (True,))
|
self.gui.call(GUIFunction.STARTED, (True,))
|
||||||
|
logging.info("Starting the bot engine, look at the fishing hole to start fishing")
|
||||||
Thread(target=wait_and_check).start()
|
Thread(target=wait_and_check).start()
|
||||||
while self.start:
|
while self.start:
|
||||||
# Services to be ran in the start of the main loop
|
# Services to be ran in the start of the main loop
|
||||||
@ -116,8 +115,6 @@ def initialize(c: Config, gui):
|
|||||||
sys.excepthook = helper.unhandled_exception_logging
|
sys.excepthook = helper.unhandled_exception_logging
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def wait_and_check():
|
def wait_and_check():
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
if not G.FishingStarted:
|
if not G.FishingStarted:
|
||||||
|
@ -116,7 +116,7 @@ class GUI:
|
|||||||
# region controls
|
# region controls
|
||||||
left_frame = Frame(controls_frame)
|
left_frame = Frame(controls_frame)
|
||||||
|
|
||||||
# Label(left_frame, text="Android IP").grid(row=0, column=0)
|
Label(left_frame, text="Android IP").grid(row=0, column=0)
|
||||||
ip = Entry(left_frame)
|
ip = Entry(left_frame)
|
||||||
ip.insert(0, self.config.get("ip", ""))
|
ip.insert(0, self.config.get("ip", ""))
|
||||||
ip.grid(row=0, column=1)
|
ip.grid(row=0, column=1)
|
||||||
@ -182,7 +182,7 @@ class GUI:
|
|||||||
if func[0] == GUIFunction.LOG:
|
if func[0] == GUIFunction.LOG:
|
||||||
self._write_to_console(func[1][0])
|
self._write_to_console(func[1][0])
|
||||||
elif func[0] == GUIFunction.STARTED:
|
elif func[0] == GUIFunction.STARTED:
|
||||||
# self._bot_running = func[1][0]
|
self._bot_running = func[1][0]
|
||||||
self.start_button["text"] = "STOP" if self._bot_running else "START"
|
self.start_button["text"] = "STOP" if self._bot_running else "START"
|
||||||
elif func[0] == GUIFunction.ASK_DIRECTORY:
|
elif func[0] == GUIFunction.ASK_DIRECTORY:
|
||||||
messagebox.showinfo("Directory?", func[1][1])
|
messagebox.showinfo("Directory?", func[1][1])
|
||||||
|
Loading…
Reference in New Issue
Block a user