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

fix(popup): support another type of network reconnection

This commit is contained in:
YoursFunny 2023-11-07 19:14:01 +08:00
parent f7444e29dc
commit 2e4a1f144b
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C
4 changed files with 15 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -27,9 +27,9 @@ DAILY_REWARD = ButtonWrapper(
name='DAILY_REWARD',
jp=Button(
file='./assets/jp/base/popup/DAILY_REWARD.png',
area=(854, 117, 1008, 165),
search=(834, 97, 1028, 185),
color=(178, 167, 112),
area=(416, 165, 434, 216),
search=(396, 145, 454, 236),
color=(203, 227, 237),
button=(920, 632, 1140, 712),
),
)
@ -73,3 +73,13 @@ NETWORK_RECONNECT = ButtonWrapper(
button=(663, 467, 870, 537),
),
)
NETWORK_RECONNECT_OK = ButtonWrapper(
name='NETWORK_RECONNECT_OK',
jp=Button(
file='./assets/jp/base/popup/NETWORK_RECONNECT_OK.png',
area=(744, 487, 791, 515),
search=(724, 467, 811, 535),
color=(91, 165, 196),
button=(665, 468, 870, 536),
),
)

View File

@ -65,6 +65,8 @@ class PopupHandler(ModuleBase):
def handle_network_reconnect(self, interval=5) -> bool:
if self.appear_then_click(NETWORK_RECONNECT, interval=interval):
return True
if self.appear_then_click(NETWORK_RECONNECT_OK, interval=interval):
return True
return False