mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-17 00:15:13 +00:00
fix(popup): support another type of network reconnection
This commit is contained in:
parent
f7444e29dc
commit
2e4a1f144b
BIN
assets/jp/base/popup/NETWORK_RECONNECT_OK.BUTTON.png
Normal file
BIN
assets/jp/base/popup/NETWORK_RECONNECT_OK.BUTTON.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
assets/jp/base/popup/NETWORK_RECONNECT_OK.png
Normal file
BIN
assets/jp/base/popup/NETWORK_RECONNECT_OK.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@ -27,9 +27,9 @@ DAILY_REWARD = ButtonWrapper(
|
|||||||
name='DAILY_REWARD',
|
name='DAILY_REWARD',
|
||||||
jp=Button(
|
jp=Button(
|
||||||
file='./assets/jp/base/popup/DAILY_REWARD.png',
|
file='./assets/jp/base/popup/DAILY_REWARD.png',
|
||||||
area=(854, 117, 1008, 165),
|
area=(416, 165, 434, 216),
|
||||||
search=(834, 97, 1028, 185),
|
search=(396, 145, 454, 236),
|
||||||
color=(178, 167, 112),
|
color=(203, 227, 237),
|
||||||
button=(920, 632, 1140, 712),
|
button=(920, 632, 1140, 712),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -73,3 +73,13 @@ NETWORK_RECONNECT = ButtonWrapper(
|
|||||||
button=(663, 467, 870, 537),
|
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),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|||||||
@ -65,6 +65,8 @@ class PopupHandler(ModuleBase):
|
|||||||
def handle_network_reconnect(self, interval=5) -> bool:
|
def handle_network_reconnect(self, interval=5) -> bool:
|
||||||
if self.appear_then_click(NETWORK_RECONNECT, interval=interval):
|
if self.appear_then_click(NETWORK_RECONNECT, interval=interval):
|
||||||
return True
|
return True
|
||||||
|
if self.appear_then_click(NETWORK_RECONNECT_OK, interval=interval):
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user