mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-02-06 08:55:13 +00:00
Compare commits
No commits in common. "02e0882900b90d684e4336b0112321e9105a6dbe" and "8a6851d24c70fc65995d8b00cfb75bc712b9b362" have entirely different histories.
02e0882900
...
8a6851d24c
Binary file not shown.
|
Before Width: | Height: | Size: 9.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.6 KiB |
@ -135,28 +135,6 @@ ITEM_EXPIRED = ButtonWrapper(
|
|||||||
button=(537, 487, 742, 553),
|
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(
|
NETWORK_RECONNECT = ButtonWrapper(
|
||||||
name='NETWORK_RECONNECT',
|
name='NETWORK_RECONNECT',
|
||||||
jp=Button(
|
jp=Button(
|
||||||
|
|||||||
@ -105,15 +105,3 @@ class PopupHandler(ModuleBase):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
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
|
|
||||||
@ -18,8 +18,7 @@ class ScheduleUI(UI):
|
|||||||
while 1:
|
while 1:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
self.appear_then_click(dest_enter, interval=1)
|
self.appear_then_click(dest_enter, interval=1)
|
||||||
if self.handle_affection_level_up() or self.handle_location_level_up():
|
self.handle_affection_level_up()
|
||||||
timer.reset()
|
|
||||||
if self.appear(dest_check):
|
if self.appear(dest_check):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user