refactor config
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user