mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 16:28:17 +00:00
Fix: Click account confirm at login
just donno why there is a button to confirm login this account even if there is only one account
This commit is contained in:
parent
543dd27e0e
commit
f0607ffe95
BIN
assets/cn/login/ACCOUNT_CONFIRM.png
Normal file
BIN
assets/cn/login/ACCOUNT_CONFIRM.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@ -3,6 +3,17 @@ from module.base.button import Button, ButtonWrapper
|
||||
# This file was auto-generated, do not modify it manually. To generate:
|
||||
# ``` python -m dev_tools.button_extract ```
|
||||
|
||||
ACCOUNT_CONFIRM = ButtonWrapper(
|
||||
name='ACCOUNT_CONFIRM',
|
||||
cn=Button(
|
||||
file='./assets/cn/login/ACCOUNT_CONFIRM.png',
|
||||
area=(583, 424, 696, 450),
|
||||
search=(563, 404, 716, 470),
|
||||
color=(172, 145, 92),
|
||||
button=(583, 424, 696, 450),
|
||||
),
|
||||
en=None,
|
||||
)
|
||||
LOGIN_CONFIRM = ButtonWrapper(
|
||||
name='LOGIN_CONFIRM',
|
||||
share=[
|
||||
|
@ -3,7 +3,7 @@ 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, USER_AGREEMENT_ACCEPT
|
||||
from tasks.login.assets.assets_login import *
|
||||
from tasks.login.cloud import LoginAndroidCloud
|
||||
|
||||
|
||||
@ -62,6 +62,8 @@ class Login(UI, LoginAndroidCloud):
|
||||
continue
|
||||
if self.appear_then_click(USER_AGREEMENT_ACCEPT):
|
||||
continue
|
||||
if self.appear_then_click(ACCOUNT_CONFIRM):
|
||||
continue
|
||||
# Additional
|
||||
if self.handle_popup_single():
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user