1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Opt: Remove ensure main after task finishes

- Clear offset of GOTO_MAIN to avoid clicking outside of screen
This commit is contained in:
LmeSzinc
2021-09-20 17:30:29 +08:00
parent 47ceb732c7
commit 4fd1147a40
4 changed files with 8 additions and 2 deletions

View File

@@ -104,6 +104,9 @@ class Button:
offset = np.subtract(button.button, button._button)[:2]
self._button_offset = area_offset(self._button, offset=offset)
def clear_offset(self):
self._button_offset = None
def ensure_template(self):
"""
Load asset image.