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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user