mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 11:25:36 +08:00
Upd: re-crop war_archives templates to reduce height
This commit is contained in:
@@ -58,12 +58,15 @@ class CampaignBase(CampaignBase_):
|
||||
Fixed number of scrolls until give up, may need to
|
||||
increase as more war archives campaigns are added
|
||||
"""
|
||||
for _ in range(10):
|
||||
for _ in range(20):
|
||||
if skip_first_screenshot:
|
||||
skip_first_screenshot = False
|
||||
else:
|
||||
self.device.screenshot()
|
||||
|
||||
while self.device.click_record and self.device.click_record[-1] == 'WAR_ARCHIVES_SCROLL':
|
||||
self.device.click_record.pop()
|
||||
|
||||
# Drag may result in accidental exit, recover
|
||||
# before starting next search attempt
|
||||
while not self.appear(WAR_ARCHIVES_CHECK):
|
||||
@@ -80,7 +83,7 @@ class CampaignBase(CampaignBase_):
|
||||
if WAR_ARCHIVES_SCROLL.at_bottom(main=self):
|
||||
WAR_ARCHIVES_SCROLL.set_top(main=self)
|
||||
else:
|
||||
WAR_ARCHIVES_SCROLL.next_page(main=self)
|
||||
WAR_ARCHIVES_SCROLL.next_page(main=self, page=0.66)
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user