mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Opt: Search prioritize characters before scrolling
This commit is contained in:
parent
ccf357703e
commit
ab6aabeefa
@ -192,6 +192,14 @@ class CombatSupport(UI):
|
||||
out: COMBAT_SUPPORT_LIST
|
||||
"""
|
||||
logger.hr("Combat support search")
|
||||
# Search prioritize characters
|
||||
character = self._get_character(support_character_name)
|
||||
if character:
|
||||
logger.info("Support found in first page")
|
||||
if self._select_support(character):
|
||||
return True
|
||||
|
||||
# Search in the following pages
|
||||
scroll = AdaptiveScroll(area=COMBAT_SUPPORT_LIST_SCROLL.area,
|
||||
name=COMBAT_SUPPORT_LIST_SCROLL.name)
|
||||
if scroll.appear(main=self):
|
||||
|
Loading…
Reference in New Issue
Block a user