forked from jfd02/TFT-OCR-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
25 lines (20 loc) · 837 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import auto_queue
from game import Game
import multiprocessing
from ui import Ui
import settings
def game_loop(message_queue):
while True:
auto_queue.queue(message_queue)
game = Game(message_queue)
if __name__ == "__main__":
if settings.league_client_path == None:
raise Exception("No league client path specified. Please set the path in settings.py")
message_queue = multiprocessing.Queue()
overlay = Ui(message_queue)
game_thread = multiprocessing.Process(target=game_loop, args=(message_queue,))
print("TFT OCR | https://github.com/jfd02/TFT-OCR-BOT")
print("If text is not visible on the top left of the screen, the program is not functioning correctly.")
print("Close this window to terminate the overlay window & program")
game_thread.start()
overlay.ui_loop()