mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-12-12 07:29:03 +00:00
Fix: Handle popup story (fixed #690)
This commit is contained in:
parent
5f4a2933b5
commit
de5092278f
BIN
assets/share/base/popup/POPUP_STORY_LATER.SEARCH.png
Normal file
BIN
assets/share/base/popup/POPUP_STORY_LATER.SEARCH.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
BIN
assets/share/base/popup/POPUP_STORY_LATER.png
Normal file
BIN
assets/share/base/popup/POPUP_STORY_LATER.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
@ -116,3 +116,13 @@ POPUP_SINGLE = ButtonWrapper(
|
|||||||
button=(578, 451, 705, 489),
|
button=(578, 451, 705, 489),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
POPUP_STORY_LATER = ButtonWrapper(
|
||||||
|
name='POPUP_STORY_LATER',
|
||||||
|
share=Button(
|
||||||
|
file='./assets/share/base/popup/POPUP_STORY_LATER.png',
|
||||||
|
area=(392, 534, 416, 558),
|
||||||
|
search=(359, 527, 424, 565),
|
||||||
|
color=(111, 103, 91),
|
||||||
|
button=(392, 534, 416, 558),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
@ -6,6 +6,7 @@ from module.logger import logger
|
|||||||
from module.ocr.ocr import Ocr
|
from module.ocr.ocr import Ocr
|
||||||
from tasks.base.assets.assets_base_main_page import ROGUE_LEAVE_FOR_NOW, ROGUE_LEAVE_FOR_NOW_OE
|
from tasks.base.assets.assets_base_main_page import ROGUE_LEAVE_FOR_NOW, ROGUE_LEAVE_FOR_NOW_OE
|
||||||
from tasks.base.assets.assets_base_page import CLOSE, MAIN_GOTO_CHARACTER, MAP_EXIT, MAP_EXIT_OE
|
from tasks.base.assets.assets_base_page import CLOSE, MAIN_GOTO_CHARACTER, MAP_EXIT, MAP_EXIT_OE
|
||||||
|
from tasks.base.assets.assets_base_popup import POPUP_STORY_LATER
|
||||||
from tasks.base.main_page import MainPage
|
from tasks.base.main_page import MainPage
|
||||||
from tasks.base.page import Page, page_gacha, page_main
|
from tasks.base.page import Page, page_gacha, page_main
|
||||||
from tasks.combat.assets.assets_combat_finish import COMBAT_EXIT
|
from tasks.combat.assets.assets_combat_finish import COMBAT_EXIT
|
||||||
@ -395,6 +396,9 @@ class UI(MainPage):
|
|||||||
return True
|
return True
|
||||||
if self.appear_then_click(INFO_CLOSE, interval=5):
|
if self.appear_then_click(INFO_CLOSE, interval=5):
|
||||||
return True
|
return True
|
||||||
|
# Popup story that advice you watch it, but no, later
|
||||||
|
if self.appear_then_click(POPUP_STORY_LATER, interval=5):
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user