feat: 生息盐酸任务添加对错误模式 (有/无存档) 的提示 (#14131)

* feat: 生息盐酸任务添加对错误模式 (有/无存档) 的提示

* fix: callback 里任务名没有前缀
This commit is contained in:
Weiyou Wang
2025-09-17 02:26:28 +10:00
committed by GitHub
parent be3b1a2057
commit 7b6dada3ea
7 changed files with 35 additions and 5 deletions

View File

@@ -274,7 +274,7 @@
"next": ["#self", "Stop"]
},
"Tales@RA@PIS-Resume": {
"doc": "在主题入口界面点击 <继续演算> 开启新游戏",
"doc": "在主题入口界面点击 <继续演算> 继续游戏",
"algorithm": "OcrDetect",
"action": "ClickSelf",
"text": ["继续演算"],
@@ -405,7 +405,7 @@
]
},
"Tales@RA@PNS-ConfirmToLeaveNode": {
"doc": "确认离开当前区块,注意,可能会在没有 <正在提交反馈至神经> 文字的情况下卡住一小会儿",
"doc": "确认离开当前区块, 注意, 可能会在没有 <正在提交反馈至神经> 文字的情况下卡住一小会儿",
"baseTask": "Tales@RA@DialogConfirmYellow",
"template": "Tales@RA@DialogConfirmYellow.png",
"next": [
@@ -514,7 +514,7 @@
"next": ["Tales@RA@PNS-ClickBaseCamp"]
},
"Tales@RA@PNS-OpeningDialogue": {
"doc": "点击右下角对话选项位置跳过引导对话",
"doc": "点击右下角对话选项位置, 跳过引导对话",
"template": "DialogueLog.png",
"roi": [27, 14, 64, 51],
"sub": ["Tales@RA@PNS-OpeningDialogueClick*10"],
@@ -686,12 +686,24 @@
"Tales@RA@ProsperityInSave": {
"doc": "生息演算「沙洲遗闻」有存档刷生息点数 <ProsperityInSave> 任务入口",
"algorithm": "JustReturn",
"next": ["Tales@RA@PIS-Resume", "Tales@RA@PIS-Workbench", "Tales@RA@PIS-Navigation"]
"next": ["Tales@RA@PIS-Resume", "Tales@RA@PIS-Commence", "Tales@RA@PIS-Workbench", "Tales@RA@PIS-Navigation"]
},
"Tales@RA@PIS-Commence": {
"doc": "在主题入口界面识别到 <开始演算>, 可利用 callback 提示用户切换模式",
"baseTask": "Tales@RA@PNS-Commence",
"action": "DoNothing",
"next": []
},
"Tales@RA@ProsperityNoSave": {
"doc": "生息演算「沙洲遗闻」无存档刷生息点数 <ProsperityNoSave> 任务入口",
"algorithm": "JustReturn",
"next": ["Tales@RA@PNS-Commence", "Tales@RA@PNS-Navigation"]
"next": ["Tales@RA@PNS-Commence", "Tales@RA@PNS-Resume", "Tales@RA@PNS-Navigation"]
},
"Tales@RA@PNS-Resume": {
"doc": "在主题入口界面识别到 <继续演算>, 可利用 callback 提示用户切换模式",
"baseTask": "Tales@RA@PIS-Resume",
"action": "DoNothing",
"next": []
},
"Tales@RA@ProsperityReachLimit": {
"doc": "模板任务: 已完成生存周期, 生息点数达到上限, 点击 MAX 图案位置",

View File

@@ -1449,6 +1449,14 @@ namespace MaaWpfGui.Main
case "DeepExplorationNotUnlockedComplain":
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("DeepExplorationNotUnlockedComplain"), UiLogColor.Warning);
break;
case "PNS-Resume":
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ReclamationPnsModeError"), UiLogColor.Error);
break;
case "PIS-Commence":
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ReclamationPisModeError"), UiLogColor.Error);
break;
}
break;

View File

@@ -233,6 +233,8 @@ To customize rotation schedules, please use 「{key=InfrastModeCustom}」.</syst
<system:String x:Key="AlgorithmBadge">Algorithm Badge</system:String>
<system:String x:Key="AlgorithmConstructionPoint">Algorithm Construction Point</system:String>
<system:String x:Key="AlgorithmDoneSmeltGold">Forging Red Gold</system:String>
<system:String x:Key="ReclamationPnsModeError">当前使用无存档任务模式。请手动删除现有存档后再尝试。若您希望保留存档,请考虑切换模式。</system:String>
<system:String x:Key="ReclamationPisModeError">当前任务模式需要您拥有可合成道具的存档。请考虑切换模式。</system:String>
<system:String x:Key="NotSwitch">Don't Switch</system:String>
<system:String x:Key="NotSelected">Not selected</system:String>
<system:String x:Key="Official">Official (CN)</system:String>

View File

@@ -233,6 +233,8 @@
<system:String x:Key="AlgorithmBadge">繁栄のバッジ</system:String>
<system:String x:Key="AlgorithmConstructionPoint">ビルドポイント</system:String>
<system:String x:Key="AlgorithmDoneSmeltGold">鍛造レッドゴールド</system:String>
<system:String x:Key="ReclamationPnsModeError">当前使用无存档任务模式。请手动删除现有存档后再尝试。若您希望保留存档,请考虑切换模式。</system:String>
<system:String x:Key="ReclamationPisModeError">当前任务模式需要您拥有可合成道具的存档。请考虑切换模式。</system:String>
<system:String x:Key="NotSwitch">切り替えない</system:String>
<system:String x:Key="NotSelected">選ばない</system:String>
<system:String x:Key="Official">CN-公式</system:String>

View File

@@ -233,6 +233,8 @@
<system:String x:Key="AlgorithmBadge">번영의 배지</system:String>
<system:String x:Key="AlgorithmConstructionPoint">빌드 포인트</system:String>
<system:String x:Key="AlgorithmDoneSmeltGold">단조 레드 골드</system:String>
<system:String x:Key="ReclamationPnsModeError">当前使用无存档任务模式。请手动删除现有存档后再尝试。若您希望保留存档,请考虑切换模式。</system:String>
<system:String x:Key="ReclamationPisModeError">当前任务模式需要您拥有可合成道具的存档。请考虑切换模式。</system:String>
<system:String x:Key="NotSwitch">미변경</system:String>
<system:String x:Key="NotSelected">미선택</system:String>
<system:String x:Key="Official">공식 서버</system:String>

View File

@@ -233,6 +233,8 @@
<system:String x:Key="AlgorithmBadge">繁荣证章</system:String>
<system:String x:Key="AlgorithmConstructionPoint">建造点数</system:String>
<system:String x:Key="AlgorithmDoneSmeltGold">锻造赤金</system:String>
<system:String x:Key="ReclamationPnsModeError">当前使用无存档任务模式。请手动删除现有存档后再尝试。若您希望保留存档,请考虑切换模式。</system:String>
<system:String x:Key="ReclamationPisModeError">当前任务模式需要您拥有可合成道具的存档。请考虑切换模式。</system:String>
<system:String x:Key="NotSwitch">不切换</system:String>
<system:String x:Key="NotSelected">不选择</system:String>
<system:String x:Key="Official">官服</system:String>

View File

@@ -232,6 +232,8 @@
<system:String x:Key="AlgorithmBadge">繁榮證章</system:String>
<system:String x:Key="AlgorithmConstructionPoint">建造點數</system:String>
<system:String x:Key="AlgorithmDoneSmeltGold">鍛造赤金</system:String>
<system:String x:Key="ReclamationPnsModeError">当前使用无存档任务模式。请手动删除现有存档后再尝试。若您希望保留存档,请考虑切换模式。</system:String>
<system:String x:Key="ReclamationPisModeError">当前任务模式需要您拥有可合成道具的存档。请考虑切换模式。</system:String>
<system:String x:Key="NotSwitch">不切換</system:String>
<system:String x:Key="NotSelected">不選擇</system:String>
<system:String x:Key="Official">官服</system:String>