1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-10 02:34:51 +00:00

feat(popup): add ap exceed and item expire handler

This commit is contained in:
2023-11-10 21:12:17 +08:00
parent d82e206463
commit f91fc2c55d
7 changed files with 36 additions and 0 deletions
+12
View File
@@ -87,3 +87,15 @@ class PopupHandler(ModuleBase):
return True
return False
def handle_ap_exceed(self, interval=5) -> bool:
if self.appear_then_click(AP_EXCEED, interval=interval):
return True
return False
def handle_item_expired(self, interval=5) -> bool:
if self.appear_then_click(ITEM_EXPIRED, interval=interval):
return True
return False