mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Upd: put load_rows in the loop when select_row
This commit is contained in:
parent
30433ac4f6
commit
c0c3218389
@ -200,6 +200,10 @@ class DraggableList:
|
|||||||
Returns:
|
Returns:
|
||||||
If success
|
If success
|
||||||
"""
|
"""
|
||||||
|
result = self.insight_row(
|
||||||
|
row, main=main, skip_first_screenshot=skip_first_screenshot)
|
||||||
|
if not result:
|
||||||
|
return False
|
||||||
logger.info(f'Select row: {row}')
|
logger.info(f'Select row: {row}')
|
||||||
skip_first_screenshot = True
|
skip_first_screenshot = True
|
||||||
interval = Timer(5)
|
interval = Timer(5)
|
||||||
@ -208,11 +212,8 @@ class DraggableList:
|
|||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
main.device.screenshot()
|
main.device.screenshot()
|
||||||
|
self.load_rows(main=main)
|
||||||
|
|
||||||
result = self.insight_row(
|
|
||||||
row, main=main, skip_first_screenshot=skip_first_screenshot)
|
|
||||||
if not result:
|
|
||||||
return False
|
|
||||||
button = self.keyword2button(row)
|
button = self.keyword2button(row)
|
||||||
if not button:
|
if not button:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user