mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 02:29:16 +08:00
Opt: code style alterations
This commit is contained in:
@@ -222,17 +222,17 @@ class FastForwardHandler(AutoSearchHandler):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if clicked_timeout.reached():
|
if clicked_timeout.reached():
|
||||||
if self.appear(check_button):
|
if self.appear(check_button, offset=(100, 50)):
|
||||||
enabled = self.image_color_count(box_button, color=(156, 255, 82), threshold=221, count=20)
|
enabled = self.image_color_count(box_button, color=(156, 255, 82), threshold=221, count=20)
|
||||||
if ((status == 'on' and enabled) or (status == 'off' and not enabled)):
|
if (status == 'on' and enabled) or (status == 'off' and not enabled):
|
||||||
return True
|
return True
|
||||||
if ((status == 'on' and not enabled) or (status == 'off' and enabled)):
|
if (status == 'on' and not enabled) or (status == 'off' and enabled):
|
||||||
self.device.click(box_button)
|
self.device.click(box_button)
|
||||||
|
|
||||||
clicked_timeout.reset()
|
clicked_timeout.reset()
|
||||||
clicked_threshold -= 1
|
clicked_threshold -= 1
|
||||||
|
|
||||||
logger.warn(f'Wait time has expired; Cannot set 2x book setting')
|
logger.warning(f'Wait time has expired; Cannot set 2x book setting')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def handle_2x_book_setting(self, mode='prep'):
|
def handle_2x_book_setting(self, mode='prep'):
|
||||||
@@ -266,5 +266,5 @@ class FastForwardHandler(AutoSearchHandler):
|
|||||||
self.map_is_2x_book = False
|
self.map_is_2x_book = False
|
||||||
self.emotion.map_is_2x_book = self.map_is_2x_book
|
self.emotion.map_is_2x_book = self.map_is_2x_book
|
||||||
|
|
||||||
self.ensure_no_info_bar()
|
self.handle_info_bar()
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user