1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 15:35:12 +00:00

feat: added level up and location level up popup

This commit is contained in:
RedDeadDepresso 2024-01-06 22:33:44 +00:00
parent 8a6851d24c
commit d86d0ccb13
6 changed files with 34 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -135,6 +135,28 @@ ITEM_EXPIRED = ButtonWrapper(
button=(537, 487, 742, 553),
),
)
LEVEL_UP = ButtonWrapper(
name='LEVEL_UP',
jp=None,
en=Button(
file='./assets/en/base/popup/LEVEL_UP.png',
area=(722, 210, 746, 238),
search=(702, 190, 766, 258),
color=(184, 202, 219),
button=(571, 559, 713, 601),
),
)
LOCATION_LEVEL_UP = ButtonWrapper(
name='LOCATION_LEVEL_UP',
jp=None,
en=Button(
file='./assets/en/base/popup/LOCATION_LEVEL_UP.png',
area=(430, 141, 463, 180),
search=(410, 121, 483, 200),
color=(177, 194, 207),
button=(577, 616, 707, 647),
),
)
NETWORK_RECONNECT = ButtonWrapper(
name='NETWORK_RECONNECT',
jp=Button(

View File

@ -105,3 +105,15 @@ class PopupHandler(ModuleBase):
return True
return False
def handle_location_level_up(self, interval=5) -> bool:
if self.appear_then_click(LOCATION_LEVEL_UP, interval=interval):
return True
return False
def handle_level_up(self, interval=5) -> bool:
if self.appear_then_click(LEVEL_UP, interval=interval):
return True
return False