refactor config

This commit is contained in:
2022-05-01 17:09:50 +02:00
parent 6bde685a7c
commit 3691bb9f78
32 changed files with 71 additions and 281 deletions

View File

@@ -27,10 +27,14 @@ class WindowCapture:
if not self.hwnd:
raise Exception('Window not found: {}'.format(window_name))
if area == "poison":
val = config.returnPoisonWindowPos()
if area == "dig":
val = config.returnDiggingWindowPos()
elif area == "magic":
val = config.returnMagicWindowPos()
elif area == "equip":
val = config.returnEquipmentWindowPos()
else:
val = config.returnStunWindowPos()
val = config.returnFullScreenWindowPos()
self.w = val[0]
self.h = val[1]