mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Clear click record after list dragging
This commit is contained in:
parent
2657be9878
commit
2de76057cd
@ -203,6 +203,7 @@ class CombatSupport(UI):
|
||||
scroll.set_bottom(main=self)
|
||||
scroll.drag_threshold = backup
|
||||
scroll.set_top(main=self)
|
||||
self.device.click_record_clear()
|
||||
|
||||
logger.info("Searching support")
|
||||
skip_first_screenshot = True
|
||||
@ -216,9 +217,11 @@ class CombatSupport(UI):
|
||||
if character:
|
||||
logger.info("Support found")
|
||||
if self._select_support(character):
|
||||
self.device.click_record_clear()
|
||||
return True
|
||||
else:
|
||||
logger.warning("Support not selected")
|
||||
self.device.click_record_clear()
|
||||
return False
|
||||
|
||||
if not scroll.at_bottom(main=self):
|
||||
@ -226,6 +229,7 @@ class CombatSupport(UI):
|
||||
continue
|
||||
else:
|
||||
logger.info("Support not found")
|
||||
self.device.click_record_clear()
|
||||
return False
|
||||
|
||||
def _select_support(self, character: SupportCharacter):
|
||||
|
@ -578,6 +578,7 @@ class DungeonUI(DungeonState):
|
||||
DUNGEON_LIST.use_plane = bool(dungeon.is_Calyx_Crimson)
|
||||
# Insight dungeon
|
||||
DUNGEON_LIST.insight_row(dungeon, main=self)
|
||||
self.device.click_record_clear()
|
||||
# Check if dungeon unlocked
|
||||
for entrance in DUNGEON_LIST.navigates:
|
||||
entrance: OcrResultButton = entrance
|
||||
@ -596,6 +597,7 @@ class DungeonUI(DungeonState):
|
||||
DUNGEON_LIST.drag_vector = (0.2, 0.4)
|
||||
DUNGEON_LIST.limit_entrance = True
|
||||
DUNGEON_LIST.insight_row(dungeon, main=self)
|
||||
self.device.click_record_clear()
|
||||
DUNGEON_LIST.drag_vector = DraggableList.drag_vector
|
||||
DUNGEON_LIST.limit_entrance = False
|
||||
DUNGEON_LIST.load_rows(main=self)
|
||||
|
Loading…
Reference in New Issue
Block a user