mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: Start running at Himeko trial (#107)
This commit is contained in:
parent
2591bb3a28
commit
05072925d5
BIN
assets/share/base/page/GACHA_CHECK.2.png
Normal file
BIN
assets/share/base/page/GACHA_CHECK.2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
@ -85,13 +85,22 @@ FORGOTTEN_HALL_CHECK = ButtonWrapper(
|
||||
)
|
||||
GACHA_CHECK = ButtonWrapper(
|
||||
name='GACHA_CHECK',
|
||||
share=Button(
|
||||
file='./assets/share/base/page/GACHA_CHECK.png',
|
||||
area=(40, 20, 74, 54),
|
||||
search=(20, 0, 94, 74),
|
||||
color=(157, 139, 112),
|
||||
button=(40, 20, 74, 54),
|
||||
),
|
||||
share=[
|
||||
Button(
|
||||
file='./assets/share/base/page/GACHA_CHECK.png',
|
||||
area=(40, 20, 74, 54),
|
||||
search=(20, 0, 94, 74),
|
||||
color=(157, 139, 112),
|
||||
button=(40, 20, 74, 54),
|
||||
),
|
||||
Button(
|
||||
file='./assets/share/base/page/GACHA_CHECK.2.png',
|
||||
area=(41, 21, 74, 54),
|
||||
search=(20, 0, 94, 74),
|
||||
color=(188, 167, 142),
|
||||
button=(41, 21, 74, 54),
|
||||
),
|
||||
],
|
||||
)
|
||||
GUIDE_CHECK = ButtonWrapper(
|
||||
name='GUIDE_CHECK',
|
||||
|
@ -15,8 +15,10 @@ class CharacterTrial(UI):
|
||||
"""
|
||||
logger.info('Enter Himeko trial')
|
||||
switched = False
|
||||
if self.match_template_color(HIMEKO_CHECK):
|
||||
if self.appear(HIMEKO_CHECK):
|
||||
logger.info(f'Already at {HIMEKO_CHECK}')
|
||||
elif self.match_template_color(START_TRIAL):
|
||||
logger.info(f'Already at {START_TRIAL}')
|
||||
elif self.match_template_color(REGULAR_GACHA_CHECK):
|
||||
logger.info(f'Already at {REGULAR_GACHA_CHECK}')
|
||||
elif self.ui_page_appear(page_gacha):
|
||||
|
Loading…
Reference in New Issue
Block a user