mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 15:35:12 +00:00
feat(login): add survey page handle
This commit is contained in:
parent
8781e7830c
commit
6ef18ed8c0
@ -1,9 +1,10 @@
|
||||
from module.base.timer import Timer
|
||||
from module.base.decorator import Config
|
||||
from module.exception import GameNotRunningError
|
||||
from module.logger import logger
|
||||
from tasks.base.page import page_main
|
||||
from tasks.base.ui import UI
|
||||
from tasks.login.assets.assets_login import LOGIN_CONFIRM, LOGIN_LOADING, UPDATE
|
||||
from tasks.login.assets.assets_login import LOGIN_CONFIRM, LOGIN_LOADING, UPDATE, SURVEY
|
||||
|
||||
|
||||
class Login(UI):
|
||||
@ -29,6 +30,16 @@ class Login(UI):
|
||||
return True
|
||||
return False
|
||||
|
||||
@Config.when(Emulator_GameLanguage='jp')
|
||||
def _handle_survey():
|
||||
pass
|
||||
|
||||
@Config.when(Emulator_GameLanguage='en')
|
||||
def _handle_survey():
|
||||
if self.appear_then_click(SURVEY):
|
||||
return True
|
||||
return False
|
||||
|
||||
logger.hr('App login')
|
||||
orientation_timer = Timer(5)
|
||||
startup_timer = Timer(5).start()
|
||||
@ -78,6 +89,8 @@ class Login(UI):
|
||||
# continue
|
||||
if self.appear_then_click(UPDATE):
|
||||
continue
|
||||
if _handle_survey():
|
||||
continue
|
||||
if self.ui_additional():
|
||||
continue
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user