mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Revert "Fix: Instance attribute grids defined outside __init__"
This reverts commit 9fa44fc977.
This commit is contained in:
@@ -33,10 +33,6 @@ class Camera(InfoHandler):
|
||||
map: CampaignMap
|
||||
camera = (0, 0)
|
||||
|
||||
def __init__(self, config, device=None):
|
||||
super().__init__(config, device=None)
|
||||
self.grids = Grids(self.device.image, config=self.config)
|
||||
|
||||
def _map_swipe(self, vector, drop_threshold=0.1):
|
||||
"""
|
||||
Args:
|
||||
@@ -116,7 +112,7 @@ class Camera(InfoHandler):
|
||||
return True
|
||||
|
||||
try:
|
||||
pass
|
||||
self.grids = Grids(self.device.image, config=self.config)
|
||||
except Exception as e:
|
||||
if self.info_bar_count():
|
||||
logger.info('Perspective error cause by info bar. Waiting.')
|
||||
|
||||
Reference in New Issue
Block a user