fix(task): 修复无法处理培育开始时 Another Ver 弹窗
This commit is contained in:
parent
64aba99c6a
commit
d5ff1f4af3
Binary file not shown.
After Width: | Height: | Size: 450 KiB |
|
@ -0,0 +1 @@
|
|||
{"definitions":{"cbf4ce9c-f8d8-4fb7-a197-15bb9847df04":{"name":"Produce.TextAnotherIdolAvailableDialog","displayName":"Another 版本偶像可用对话框标题","type":"template","annotationId":"cbf4ce9c-f8d8-4fb7-a197-15bb9847df04","useHintRect":false}},"annotations":[{"id":"cbf4ce9c-f8d8-4fb7-a197-15bb9847df04","type":"rect","data":{"x1":54,"y1":568,"x2":450,"y2":615}}]}
|
|
@ -10,6 +10,7 @@ from kotonebot.backend.dispatch import SimpleDispatcher
|
|||
|
||||
from .. import R
|
||||
from ..common import conf
|
||||
from ..game_ui import dialog
|
||||
from ..actions.scenes import at_home, goto_home
|
||||
from ..game_ui.idols_overview import locate_idol
|
||||
from ..produce.in_purodyuusu import hajime_pro, hajime_regular, resume_pro_produce, resume_regular_produce
|
||||
|
@ -218,7 +219,16 @@ def do_produce(
|
|||
return False
|
||||
# 1. 选择 PIdol [screenshots/produce/select_p_idol.png]
|
||||
select_idol(idol_skin_id)
|
||||
device.click(image.expect_wait(R.Common.ButtonNextNoIcon))
|
||||
it = Interval()
|
||||
while True:
|
||||
it.wait()
|
||||
device.screenshot()
|
||||
if image.find(R.Produce.TextAnotherIdolAvailableDialog):
|
||||
dialog.no()
|
||||
elif image.find(R.Common.ButtonNextNoIcon):
|
||||
device.click()
|
||||
elif ocr.find(contains('サポート'), rect=R.Produce.BoxStepIndicator):
|
||||
break
|
||||
# 2. 选择支援卡 自动编成 [screenshots/produce/select_support_card.png]
|
||||
ocr.expect_wait(contains('サポート'), rect=R.Produce.BoxStepIndicator)
|
||||
it = Interval()
|
||||
|
|
Loading…
Reference in New Issue