1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-25 08:58:14 +08:00

Fix: Collect dorm loves and coins in non-U2 family control methods

This commit is contained in:
LmeSzinc
2023-03-16 22:54:22 +08:00
parent db2055099d
commit 23a4a151b1

View File

@@ -137,10 +137,10 @@ class RewardDorm(UI):
out: page_dorm, without info_bar out: page_dorm, without info_bar
""" """
logger.hr('Dorm collect') logger.hr('Dorm collect')
if self.config.Emulator_ControlMethod not in ['uiautomator2', 'minitouch']: # if self.config.Emulator_ControlMethod not in ['uiautomator2', 'minitouch']:
logger.warning(f'Current control method {self.config.Emulator_ControlMethod} ' # logger.warning(f'Current control method {self.config.Emulator_ControlMethod} '
f'does not support 2 finger zoom out, skip dorm collect') # f'does not support 2 finger zoom out, skip dorm collect')
return # return
# Already at a high camera view now, no need to zoom-out. # Already at a high camera view now, no need to zoom-out.
# for _ in range(2): # for _ in range(2):
@@ -160,8 +160,12 @@ class RewardDorm(UI):
# Collect # Collect
_dorm_receive_attempt = 0 _dorm_receive_attempt = 0
skip_first_screenshot = True
while 1: while 1:
self.device.screenshot() if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
# Handle all popups # Handle all popups
if self.ui_additional(): if self.ui_additional():