mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
feat: 点刺、后勤种子存钱 & ProcessTask 添加 Input 方法 (#11521)
* feat: 为 ProcessTask 添加文本输入功能 * feat: 点刺、后勤种子存钱 * docs: 为 Input 方法添加文档 * perf: 添加循环刷钱cd检查 * perf: werror * perf: 改变 Input 的 int 值 * perf: 减少 AsstProxy 传参,改用 c:Binding * chore: 界面显示和获取分离 --------- Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
This commit is contained in:
@@ -431,6 +431,7 @@ asst::TaskPtr asst::TaskData::generate_task_info(std::string_view name)
|
||||
ASST_TASKDATA_GET_VALUE_OR("rectMove", rect_move);
|
||||
ASST_TASKDATA_GET_VALUE_OR("specificRect", specific_rect);
|
||||
ASST_TASKDATA_GET_VALUE_OR("specialParams", special_params);
|
||||
ASST_TASKDATA_GET_VALUE_OR("inputText", input_text);
|
||||
|
||||
// 展开五个任务列表中的虚任务
|
||||
ASST_TASKDATA_GET_VALUE_OR_LAZY("next", next, false);
|
||||
@@ -933,6 +934,7 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
|
||||
"specialParams", "sub", "subErrorIgnored",
|
||||
|
||||
// specific
|
||||
"inputText"
|
||||
} },
|
||||
};
|
||||
// clang-format on
|
||||
@@ -940,6 +942,7 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
|
||||
static const std::unordered_map<ProcessTaskAction, std::unordered_set<std::string>> allowed_key_under_action = {
|
||||
{ ProcessTaskAction::ClickRect, { "specificRect" } },
|
||||
{ ProcessTaskAction::Swipe, { "specificRect", "rectMove" } },
|
||||
{ ProcessTaskAction::Input, { "inputText" } },
|
||||
};
|
||||
|
||||
auto is_doc = [&](std::string_view key) {
|
||||
|
||||
Reference in New Issue
Block a user