forked from Windsland52/ArknightsAutoOperator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.json
More file actions
142 lines (142 loc) · 4.43 KB
/
Copy pathinterface.json
File metadata and controls
142 lines (142 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"interface_version": 2,
"name": "arknights-auto-operator",
"label": "明日方舟自动凹图",
"version": "v0.1.0",
"icon": "logo.png",
"description": "帧级自动凹图 + 费用条计时 + 打轴对轴(MaaFramework 方案二 + PySide6)",
"github": "https://github.com/Windsland52/ArknightsAutoOperator",
"controller": [
{
"name": "Win32-PC",
"label": "PC 官方客户端 (Arknights.exe)",
"type": "Win32",
"permission_required": true,
"win32": {
"window_regex": "明日方舟",
"class_regex": "UnityWndClass",
"screencap": "FramePool",
"mouse": "PostMessageWithCursorPos",
"keyboard": "SendMessage"
},
"display_short_side": 720
}
],
"resource": [
{
"name": "base",
"label": "Base",
"path": [
"./resource/base"
]
}
],
"agent": {
"child_exec": "uv",
"child_args": [
"run",
"python",
"-u",
"-m",
"custom.agent"
]
},
"task": [
// {
// "name": "Calibrate",
// "label": "费用条校准",
// "entry": "Calibrate.Start",
// "description": "刻度尺工具:校准费用条帧检测,产出 pixel_map(先行通过 custom.measure.run 使用)"
// },
{
"name": "FarmStage",
"label": "自动刷图",
"entry": "Farm",
"description": "关卡导航→ExecuteTimeline 帧级执行→结算→循环刷图",
"option": [
"时间轴",
"选择难度"
]
}
],
"option": {
"时间轴": {
"type": "input",
"description": "config/timelines/ 下的时间轴文件路径(如 test_1-7.json),map_code 从文件读取",
"inputs": [
{
"name": "timeline_path",
"pipeline_type": "string",
"default": "test_1-7.json"
}
],
"pipeline_override": {
"Farm@ClickStage": {
"custom_recognition_param": {
"timeline_path": "{timeline_path}"
}
},
"Farm@Execute": {
"custom_action_param": {
"timeline_path": "{timeline_path}"
}
}
}
},
"选择难度": {
"type": "select",
"cases": [
{
"name": "自行选好难度",
"description": "点击关卡后会直接点击开始行动/演习",
"option": [
"是否演习"
],
"pipeline_override": {
"Farm": {
"anchor": {
"Farm@SwitchDifficulty": "Farm@StartButton1"
}
}
}
},
{
"name": "沙盘推演",
"description": "点击关卡后会选择沙盘难度并点击开始推演",
"pipeline_override": {
"Farm": {
"anchor": {
"Farm@SwitchDifficulty": "Farm@SwitchDifficulty"
}
}
}
}
]
},
"是否演习": {
"type": "switch",
"cases": [
{
"name": "Yes",
"pipeline_override": {
"Farm@StartButton1": {
"expected": [
"演习"
]
}
}
},
{
"name": "No",
"pipeline_override": {
"Farm@StartButton1": {
"expected": [
"开始行动"
]
}
}
}
]
}
}
}