mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Upd: ENTRANCE_CHECKED in forgotten hall
This commit is contained in:
parent
ea8a143780
commit
0bd94ebecc
Binary file not shown.
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.8 KiB |
@ -37,10 +37,10 @@ ENTRANCE_CHECKED = ButtonWrapper(
|
||||
name='ENTRANCE_CHECKED',
|
||||
share=Button(
|
||||
file='./assets/share/forgotten_hall/ENTRANCE_CHECKED.png',
|
||||
area=(62, 662, 80, 680),
|
||||
search=(42, 642, 100, 700),
|
||||
color=(160, 162, 162),
|
||||
button=(62, 662, 80, 680),
|
||||
area=(55, 632, 71, 650),
|
||||
search=(35, 612, 91, 670),
|
||||
color=(156, 156, 157),
|
||||
button=(55, 632, 71, 650),
|
||||
),
|
||||
)
|
||||
EXIT_CONFIRM = ButtonWrapper(
|
||||
|
@ -91,6 +91,12 @@ class DraggableStageList(DraggableList):
|
||||
def is_row_selected(self, button: OcrResultButton, main: ModuleBase) -> bool:
|
||||
return main.appear(ENTRANCE_CHECKED)
|
||||
|
||||
def load_rows(self, main: ModuleBase):
|
||||
if not main.appear(FORGOTTEN_HALL_CHECK):
|
||||
logger.info('Not in forgotten hall, skip load_rows()')
|
||||
return
|
||||
return super().load_rows(main=main)
|
||||
|
||||
|
||||
STAGE_LIST = DraggableStageList("ForgottenHallStageList", keyword_class=ForgottenHallStage,
|
||||
ocr_class=ForgottenHallStageOcr, search_button=OCR_STAGE,
|
||||
|
Loading…
Reference in New Issue
Block a user