mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 06:08:22 +08:00
Opt: Pseudo interval timer for appearance of add fleet button
3 seconds like others
This commit is contained in:
@@ -219,6 +219,7 @@ class RewardGuild(UI):
|
|||||||
"""
|
"""
|
||||||
confirm_timer = Timer(1.5, count=3).start()
|
confirm_timer = Timer(1.5, count=3).start()
|
||||||
close_timer = Timer(1.5, count=3).start()
|
close_timer = Timer(1.5, count=3).start()
|
||||||
|
add_timer = Timer(3, count=6)
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
@@ -232,10 +233,12 @@ class RewardGuild(UI):
|
|||||||
|
|
||||||
sim, point = TEMPLATE_OPERATIONS_ADD.match_result(self.device.image)
|
sim, point = TEMPLATE_OPERATIONS_ADD.match_result(self.device.image)
|
||||||
if sim > 0.85:
|
if sim > 0.85:
|
||||||
# Use small area to reduce random click point
|
if not add_timer.started() or add_timer.reached():
|
||||||
button = area_offset(area=(-2, -2, 24, 12), offset=point)
|
# Use small area to reduce random click point
|
||||||
dispatch_add = Button(area=button, color=(), button=button, name='GUILD_DISPATCH_ADD')
|
button = area_offset(area=(-2, -2, 24, 12), offset=point)
|
||||||
self.device.click(dispatch_add)
|
dispatch_add = Button(area=button, color=(), button=button, name='GUILD_DISPATCH_ADD')
|
||||||
|
self.device.click(dispatch_add)
|
||||||
|
add_timer.reset()
|
||||||
confirm_timer.reset()
|
confirm_timer.reset()
|
||||||
close_timer.reset()
|
close_timer.reset()
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user