Upd: Map interact assets

This commit is contained in:
LmeSzinc 2024-02-07 08:14:05 +08:00
parent 8a1520871b
commit 6e26817e5d
3 changed files with 21 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -59,6 +59,11 @@ class Daemon(RouteBase, DaemonBase, AimDetectorMixin):
else: else:
logger.warning(f'Maatouch contact on {builder.contact}, may cause interruptions') logger.warning(f'Maatouch contact on {builder.contact}, may cause interruptions')
STORY_OPTION.set_search_offset((-5, -5, 32, 5))
INTERACT_COLLECT.set_search_offset((-5, -5, 32, 5))
INTERACT_INVESTIGATE.set_search_offset((-5, -5, 32, 5))
INTERACT_TREASURE.set_search_offset((-5, -5, 32, 5))
teleport_confirm = Timer(1, count=5) teleport_confirm = Timer(1, count=5)
while 1: while 1:
self.device.screenshot() self.device.screenshot()

View File

@ -5,13 +5,22 @@ from module.base.button import Button, ButtonWrapper
DUNGEON_COMBAT_INTERACT = ButtonWrapper( DUNGEON_COMBAT_INTERACT = ButtonWrapper(
name='DUNGEON_COMBAT_INTERACT', name='DUNGEON_COMBAT_INTERACT',
share=Button( share=[
file='./assets/share/combat/interact/DUNGEON_COMBAT_INTERACT.png', Button(
area=(753, 419, 781, 441), file='./assets/share/combat/interact/DUNGEON_COMBAT_INTERACT.png',
search=(733, 399, 801, 461), area=(753, 419, 781, 441),
color=(199, 197, 198), search=(733, 399, 801, 461),
button=(750, 411, 997, 448), color=(199, 197, 198),
), button=(750, 411, 997, 448),
),
Button(
file='./assets/share/combat/interact/DUNGEON_COMBAT_INTERACT.2.png',
area=(780, 419, 808, 441),
search=(760, 399, 828, 461),
color=(199, 197, 198),
button=(750, 411, 997, 448),
),
],
) )
DUNGEON_COMBAT_INTERACT_TEXT = ButtonWrapper( DUNGEON_COMBAT_INTERACT_TEXT = ButtonWrapper(
name='DUNGEON_COMBAT_INTERACT_TEXT', name='DUNGEON_COMBAT_INTERACT_TEXT',