feat: 支持「登临意」活动导航

This commit is contained in:
uye
2023-01-17 16:22:11 +08:00
parent 9a0e051d0f
commit aa6e9c5aee
3 changed files with 107 additions and 1 deletions

View File

@@ -774,6 +774,112 @@
120
]
},
"WB-7": {
"algorithm": "JustReturn",
"action": "DoNothing",
"sub": [
"WB-Open",
"WBChapterToWB"
],
"next": [
"StageWB-7",
"WB-7@SwipeToStage"
]
},
"WB-8": {
"algorithm": "JustReturn",
"action": "DoNothing",
"sub": [
"WB-Open",
"WBChapterToWB"
],
"next": [
"StageWB-8",
"WB-8@SwipeToStage"
]
},
"WB-9": {
"algorithm": "JustReturn",
"action": "DoNothing",
"sub": [
"WB-Open",
"WBChapterToWB"
],
"next": [
"StageWB-9",
"WB-9@SwipeToStage"
]
},
"WB-Open": {
"action": "ClickSelf",
"algorithm": "OcrDetect",
"text": [
"登临意",
"关卡已开放"
],
"roi": [
0,
500,
500,
150
]
},
"WBChapterToWB": {
"action": "ClickSelf",
"roi": [
1071,
589,
209,
131
],
"postDelay": 2000,
"next": [
"WBChapterToWB",
"ChapterSwipeToTheRight"
]
},
"StageWB-7": {
"action": "ClickSelf",
"algorithm": "OcrDetect",
"text": [
"WB-7"
],
"cache": false,
"roi": [
0,
283,
1280,
324
]
},
"StageWB-8": {
"action": "ClickSelf",
"algorithm": "OcrDetect",
"text": [
"WB-8"
],
"cache": false,
"roi": [
0,
283,
1280,
324
]
},
"StageWB-9": {
"action": "ClickSelf",
"algorithm": "OcrDetect",
"text": [
"WB-9"
],
"cache": false,
"roi": [
0,
283,
1280,
324
]
},
"IW-6": {
"algorithm": "JustReturn",
"action": "DoNothing",

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -91,7 +91,7 @@ namespace MaaWpfGui
bool isDebugVersion = Marshal.PtrToStringAnsi(AsstGetVersion()) == "DEBUG VERSION";
bool curParsed = !isDebugVersion ?
SemVersion.TryParse(Marshal.PtrToStringAnsi(AsstGetVersion()), SemVersionStyles.AllowLowerV, out var curVersionObj) :
SemVersion.TryParse("4.10.0", SemVersionStyles.AllowLowerV, out curVersionObj);
SemVersion.TryParse("4.10.1", SemVersionStyles.AllowLowerV, out curVersionObj);
bool minimumRequiredPared = SemVersion.TryParse(stageObj?["MinimumRequired"]?.ToString() ?? string.Empty, SemVersionStyles.AllowLowerV, out var minimumRequiredObj);
if (curParsed && minimumRequiredPared)