mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 06:18:01 +08:00
Fix: TooManyClickError when selecting equipments
This commit is contained in:
@@ -212,6 +212,7 @@ class StorageHandler(StorageUI):
|
|||||||
if item.amount <= 0:
|
if item.amount <= 0:
|
||||||
continue
|
continue
|
||||||
self.device.click(item)
|
self.device.click(item)
|
||||||
|
self.device.click_record.pop()
|
||||||
if total >= amount:
|
if total >= amount:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
@@ -118,9 +118,11 @@ class StorageUI(UI):
|
|||||||
self.interval_clear(STORAGE_CHECK)
|
self.interval_clear(STORAGE_CHECK)
|
||||||
|
|
||||||
def _equipment_filter_enter(self):
|
def _equipment_filter_enter(self):
|
||||||
|
self.interval_clear(EQUIPMENT_FILTER)
|
||||||
self.ui_click(EQUIPMENT_FILTER, check_button=EQUIPMENT_FILTER_CONFIRM, skip_first_screenshot=True)
|
self.ui_click(EQUIPMENT_FILTER, check_button=EQUIPMENT_FILTER_CONFIRM, skip_first_screenshot=True)
|
||||||
|
|
||||||
def _equipment_filter_confirm(self):
|
def _equipment_filter_confirm(self):
|
||||||
|
self.interval_clear(EQUIPMENT_FILTER_CONFIRM)
|
||||||
self.ui_click(EQUIPMENT_FILTER_CONFIRM, check_button=STORAGE_CHECK, skip_first_screenshot=True)
|
self.ui_click(EQUIPMENT_FILTER_CONFIRM, check_button=STORAGE_CHECK, skip_first_screenshot=True)
|
||||||
self._wait_until_storage_stable()
|
self._wait_until_storage_stable()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user