mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix: LoadingText 结束后 UI 延迟变化导致误匹配 (#15198)
* fix: LoadingText 结束后 UI 延迟变化导致误匹配 * fix: task check
This commit is contained in:
@@ -1114,7 +1114,12 @@
|
||||
"algorithm": "OcrDetect",
|
||||
"text": ["正在提交", "反馈至神经"],
|
||||
"roi": [700, 600, 300, 120],
|
||||
"next": ["LoadingText", "#next", "#back"]
|
||||
"next": ["LoadingText", "LoadingTextPostDelay"]
|
||||
},
|
||||
"LoadingTextPostDelay": {
|
||||
"algorithm": "JustReturn",
|
||||
"postDelay": 2000,
|
||||
"next": ["#next", "#back"]
|
||||
},
|
||||
"NextAfterLoadingText": {
|
||||
"baseTask": "LoadingText",
|
||||
|
||||
@@ -166,7 +166,7 @@ bool asst::TaskData::lazy_parse(const json::value& json)
|
||||
return true;
|
||||
};
|
||||
bool enable_justreturn_check = true;
|
||||
if (name.ends_with("LoadingText") || name.ends_with("LoadingIcon")) {
|
||||
if (name.ends_with("LoadingText") || name.ends_with("LoadingTextPostDelay") || name.ends_with("LoadingIcon")) {
|
||||
// 放宽对 Loading 类任务的限制,不然 JustReturn 的任务如果本身有 JR 的 next,就不能 @Loading 了
|
||||
enable_justreturn_check = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user