Upd: UI navigation to forgotten hall

This commit is contained in:
LmeSzinc 2024-02-06 15:58:34 +08:00
parent dc917c553c
commit e9d700bd53
6 changed files with 23 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -137,9 +137,19 @@ TREASURES_LIGHTWARD_LOADED = ButtonWrapper(
name='TREASURES_LIGHTWARD_LOADED',
share=Button(
file='./assets/share/dungeon/ui/TREASURES_LIGHTWARD_LOADED.png',
area=(1029, 288, 1047, 306),
search=(1024, 283, 1052, 311),
color=(149, 149, 152),
button=(1029, 288, 1047, 306),
area=(1028, 288, 1048, 308),
search=(1008, 268, 1068, 328),
color=(82, 80, 80),
button=(1028, 288, 1048, 308),
),
)
TREASURES_LIGHTWARD_LOCKED = ButtonWrapper(
name='TREASURES_LIGHTWARD_LOCKED',
share=Button(
file='./assets/share/dungeon/ui/TREASURES_LIGHTWARD_LOCKED.png',
area=(789, 423, 817, 457),
search=(769, 403, 837, 477),
color=(112, 112, 112),
button=(789, 423, 817, 457),
),
)

View File

@ -243,6 +243,8 @@ class DungeonUI(DungeonState):
in: page_guide, Survival_Index
"""
timeout = Timer(2, count=4).start()
TREASURES_LIGHTWARD_LOADED.set_search_offset((5, 5))
TREASURES_LIGHTWARD_LOCKED.set_search_offset((5, 5))
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
@ -253,7 +255,10 @@ class DungeonUI(DungeonState):
logger.warning('Wait treasures lightward loaded timeout')
return False
if self.appear(TREASURES_LIGHTWARD_LOADED):
logger.info('Treasures lightward loaded')
logger.info('Treasures lightward loaded (event unlocked)')
return True
if self.appear(TREASURES_LIGHTWARD_LOCKED):
logger.info('Treasures lightward loaded (event locked)')
return True
def _dungeon_wait_until_echo_or_war_stabled(self, skip_first_screenshot=True):

View File

@ -155,9 +155,9 @@ TELEPORT = ButtonWrapper(
name='TELEPORT',
share=Button(
file='./assets/share/forgotten_hall/ui/TELEPORT.png',
area=(1019, 451, 1037, 470),
area=(1018, 355, 1038, 375),
search=(993, 176, 1088, 658),
color=(166, 165, 166),
button=(1019, 451, 1037, 470),
color=(80, 83, 85),
button=(1018, 355, 1038, 375),
),
)