mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-13 07:01:45 +08:00
fix: skip_first_screenshot bug
This commit is contained in:
@@ -32,7 +32,7 @@ class EquipmentChange(Equipment):
|
|||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
pass
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ class EquipmentChange(Equipment):
|
|||||||
while 1:
|
while 1:
|
||||||
|
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
pass
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ class EquipmentChange(Equipment):
|
|||||||
self.device.sleep(0.3)
|
self.device.sleep(0.3)
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
def _equip_equipment(self, point, offset=(100, 100)):
|
def _equip_equipment(self, point, offset=(100, 100), skip_first_screenshot=True):
|
||||||
'''
|
'''
|
||||||
Equip Equipment then back to ship details
|
Equip Equipment then back to ship details
|
||||||
Pages:
|
Pages:
|
||||||
@@ -110,8 +110,12 @@ class EquipmentChange(Equipment):
|
|||||||
have_equipped = False
|
have_equipped = False
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
|
if skip_first_screenshot:
|
||||||
|
skip_first_screenshot = False
|
||||||
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
|
|
||||||
if not have_equipped and self.appear(EQUIPPING_OFF, interval=5):
|
if not have_equipped and self.appear(EQUIPPING_OFF, interval=5):
|
||||||
self.device.click(
|
self.device.click(
|
||||||
Button(button=(point[0], point[1], point[0]+offset[0], point[1]+offset[1]), color=None, area=None))
|
Button(button=(point[0], point[1], point[0]+offset[0], point[1]+offset[1]), color=None, area=None))
|
||||||
|
|||||||
Reference in New Issue
Block a user