mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-29 02:25:31 +08:00
Fix: Handle research popup when login
This commit is contained in:
@@ -4,7 +4,7 @@ from module.base.timer import Timer
|
|||||||
from module.combat.combat import Combat
|
from module.combat.combat import Combat
|
||||||
from module.handler.assets import *
|
from module.handler.assets import *
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
from module.ui.ui import MAIN_CHECK, EVENT_LIST_CHECK, BACK_ARROW
|
from module.ui.ui import MAIN_CHECK, EVENT_LIST_CHECK, BACK_ARROW, GOTO_MAIN
|
||||||
|
|
||||||
|
|
||||||
class LoginHandler(Combat):
|
class LoginHandler(Combat):
|
||||||
@@ -31,6 +31,12 @@ class LoginHandler(Combat):
|
|||||||
continue
|
continue
|
||||||
if self.appear_then_click(LOGIN_CONFIRM, interval=5):
|
if self.appear_then_click(LOGIN_CONFIRM, interval=5):
|
||||||
continue
|
continue
|
||||||
|
if self.handle_popup_confirm('LOGIN'):
|
||||||
|
continue
|
||||||
|
if self.handle_urgent_commission(save_get_items=False):
|
||||||
|
continue
|
||||||
|
if self.appear_then_click(GOTO_MAIN, offset=(30, 30), interval=5):
|
||||||
|
continue
|
||||||
|
|
||||||
if self.info_bar_count() and self.appear_then_click(LOGIN_CHECK, interval=5):
|
if self.info_bar_count() and self.appear_then_click(LOGIN_CHECK, interval=5):
|
||||||
if not login_success:
|
if not login_success:
|
||||||
|
|||||||
Reference in New Issue
Block a user