mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Upd: Add another state of _dungeon_wait_survival_index_loaded() end
This commit is contained in:
parent
a7c823f1d8
commit
64fa1797b0
BIN
assets/share/dungeon/ui/SURVIVAL_INDEX_OE_LOADED.png
Normal file
BIN
assets/share/dungeon/ui/SURVIVAL_INDEX_OE_LOADED.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
@ -143,10 +143,20 @@ SURVIVAL_INDEX_CLICK = ButtonWrapper(
|
||||
button=(332, 94, 370, 133),
|
||||
),
|
||||
)
|
||||
SURVIVAL_INDEX_LOADED = ButtonWrapper(
|
||||
name='SURVIVAL_INDEX_LOADED',
|
||||
SURVIVAL_INDEX_OE_LOADED = ButtonWrapper(
|
||||
name='SURVIVAL_INDEX_OE_LOADED',
|
||||
share=Button(
|
||||
file='./assets/share/dungeon/ui/SURVIVAL_INDEX_LOADED.png',
|
||||
file='./assets/share/dungeon/ui/SURVIVAL_INDEX_OE_LOADED.png',
|
||||
area=(473, 207, 498, 232),
|
||||
search=(453, 187, 518, 252),
|
||||
color=(185, 135, 74),
|
||||
button=(473, 207, 498, 232),
|
||||
),
|
||||
)
|
||||
SURVIVAL_INDEX_SU_LOADED = ButtonWrapper(
|
||||
name='SURVIVAL_INDEX_SU_LOADED',
|
||||
share=Button(
|
||||
file='./assets/share/dungeon/ui/SURVIVAL_INDEX_SU_LOADED.png',
|
||||
area=(451, 286, 476, 302),
|
||||
search=(449, 263, 489, 356),
|
||||
color=(142, 150, 197),
|
||||
|
@ -296,8 +296,11 @@ class DungeonUI(DungeonState):
|
||||
if timeout.reached():
|
||||
logger.warning('Wait survival index loaded timeout')
|
||||
return False
|
||||
if self.appear(SURVIVAL_INDEX_LOADED):
|
||||
logger.info('Survival index loaded')
|
||||
if self.appear(SURVIVAL_INDEX_SU_LOADED):
|
||||
logger.info('Survival index loaded, SURVIVAL_INDEX_SU_LOADED')
|
||||
return True
|
||||
if self.appear(SURVIVAL_INDEX_OE_LOADED):
|
||||
logger.info('Survival index loaded, SURVIVAL_INDEX_OE_LOADED')
|
||||
return True
|
||||
|
||||
def _dungeon_wait_treasures_lightward_loaded(self, skip_first_screenshot=True):
|
||||
@ -703,7 +706,7 @@ class DungeonUI(DungeonState):
|
||||
self._rogue_teleport()
|
||||
"""
|
||||
self.dungeon_tab_goto(KEYWORDS_DUNGEON_TAB.Survival_Index)
|
||||
if self.appear(SURVIVAL_INDEX_LOADED):
|
||||
if self.appear(SURVIVAL_INDEX_SU_LOADED):
|
||||
logger.info('Already at nav Simulated_Universe')
|
||||
else:
|
||||
self._dungeon_nav_goto(KEYWORDS_DUNGEON_NAV.Simulated_Universe)
|
||||
|
Loading…
Reference in New Issue
Block a user