Upd: ENTRANCE_CHECKED in forgotten hall

This commit is contained in:
LmeSzinc 2023-07-20 15:33:59 +08:00
parent ea8a143780
commit 0bd94ebecc
3 changed files with 10 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -37,10 +37,10 @@ ENTRANCE_CHECKED = ButtonWrapper(
name='ENTRANCE_CHECKED', name='ENTRANCE_CHECKED',
share=Button( share=Button(
file='./assets/share/forgotten_hall/ENTRANCE_CHECKED.png', file='./assets/share/forgotten_hall/ENTRANCE_CHECKED.png',
area=(62, 662, 80, 680), area=(55, 632, 71, 650),
search=(42, 642, 100, 700), search=(35, 612, 91, 670),
color=(160, 162, 162), color=(156, 156, 157),
button=(62, 662, 80, 680), button=(55, 632, 71, 650),
), ),
) )
EXIT_CONFIRM = ButtonWrapper( EXIT_CONFIRM = ButtonWrapper(

View File

@ -91,6 +91,12 @@ class DraggableStageList(DraggableList):
def is_row_selected(self, button: OcrResultButton, main: ModuleBase) -> bool: def is_row_selected(self, button: OcrResultButton, main: ModuleBase) -> bool:
return main.appear(ENTRANCE_CHECKED) 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, STAGE_LIST = DraggableStageList("ForgottenHallStageList", keyword_class=ForgottenHallStage,
ocr_class=ForgottenHallStageOcr, search_button=OCR_STAGE, ocr_class=ForgottenHallStageOcr, search_button=OCR_STAGE,