From 4d91c5e173faa4f516dafc183ab631993a6de4af Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:37:23 +0800 Subject: [PATCH 01/12] =?UTF-8?q?feat:=20=E5=85=B3=E5=8D=A1=E6=8E=89?= =?UTF-8?q?=E8=90=BD=E6=B1=87=E6=8A=A5=E8=87=B3=E4=B8=80=E5=9B=BE=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Task/Fight/StageDropsTaskPlugin.cpp | 97 +++++++++++++++++++ src/MaaCore/Task/Fight/StageDropsTaskPlugin.h | 2 + 2 files changed, 99 insertions(+) diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index 754f73557e..8ceb9e705e 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -95,6 +95,9 @@ bool asst::StageDropsTaskPlugin::_run() if (!upload_to_penguin()) { save_img(utils::path("debug") / utils::path("drops")); } + else { + upload_to_yituliu(); + } } return true; @@ -330,6 +333,100 @@ void asst::StageDropsTaskPlugin::report_penguin_callback(AsstMsg msg, const json p_this->callback(msg, detail); } +void asst::StageDropsTaskPlugin::upload_to_yituliu() +{ + LogTraceFunction; + + // 企鹅上报成功再上报一图流,这里就不判断了 + /* + if (m_server != "CN" && m_server != "US" && m_server != "JP" && m_server != "KR") { + return; + } + */ + + json::value cb_info = basic_info(); + cb_info["subtask"] = "ReportToYituliu"; + + std::string stage_id = m_cur_info_json.get("stage", "stageId", std::string()); + /* + if (stage_id.empty()) { + cb_info["why"] = "UnknownStage"; + cb_info["details"] = + json::object { { "stage_code", m_stage_code }, { "stage_difficulty", enum_to_string(m_stage_difficulty) } }; + callback(AsstMsg::SubTaskError, cb_info); + return; + } + if (m_stars != 3) { + cb_info["why"] = "NotThreeStars"; + callback(AsstMsg::SubTaskError, cb_info); + return; + } + if (m_times == -2) { + cb_info["why"] = "UnknownTimes"; + callback(AsstMsg::SubTaskError, cb_info); + return; + } + */ + + json::value body; + body["server"] = m_server; + body["stageId"] = stage_id; + if (m_times >= 0) { // -1 means not found, don't have times field + body["times"] = m_times; + } + auto& all_drops = body["drops"]; + for (const auto& drop : m_cur_info_json["drops"].as_array()) { + static const std::array filter = { + "NORMAL_DROP", + "EXTRA_DROP", + "FURNITURE", + "SPECIAL_DROP", + }; + std::string drop_type = drop.at("dropType").as_string(); + + /* + if (drop_type == "UNKNOWN_DROP") { + cb_info["why"] = "UnknownDropType"; + callback(AsstMsg::SubTaskError, cb_info); + return; + } + */ + + if (ranges::find(filter, drop_type) == filter.cend()) { + continue; + } + + /* + if (drop.at("itemId").as_string().empty()) { + cb_info["why"] = "UnknownDrops"; + callback(AsstMsg::SubTaskError, cb_info); + return; + } + */ + + json::value format_drop = drop; + format_drop.as_object().erase("itemName"); + all_drops.array_emplace(std::move(format_drop)); + } + body["source"] = UploadDataSource; + body["version"] = Version; + + std::unordered_map extra_headers; + if (!m_penguin_id.empty()) { + extra_headers.insert({ "authorization", "PenguinID " + m_penguin_id }); + } + + if (!m_report_yituliu_task_ptr) { + m_report_yituliu_task_ptr = std::make_shared(report_penguin_callback, this); + } + + m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigData) + .set_body(body.to_string()) + .set_extra_headers(extra_headers) + .set_retry_times(5) + .run(); +} + bool asst::StageDropsTaskPlugin::check_stage_valid() { LogTraceFunction; diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h index bc889e93ba..52d8dbfd78 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h @@ -38,6 +38,7 @@ namespace asst bool check_specify_quantity() const; void stop_task(); bool upload_to_penguin(); // 返回值表示该次掉落是否通过企鹅检查 + void upload_to_yituliu(); static void report_penguin_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr); static inline constexpr int64_t RecognitionTimeOffset = 20; @@ -57,6 +58,7 @@ namespace asst bool m_start_button_delay_is_set = false; ProcessTask* m_cast_ptr = nullptr; std::shared_ptr m_report_penguin_task_ptr = nullptr; + std::shared_ptr m_report_yituliu_task_ptr = nullptr; bool m_enable_penguid = false; std::string m_penguin_id; std::string m_server = "CN"; From 3983509636669ce2d0c9a38c3131a219f9caecf7 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:13:35 +0800 Subject: [PATCH 02/12] =?UTF-8?q?feat:=20=E4=B8=80=E5=9B=BE=E6=B5=81?= =?UTF-8?q?=E6=B1=87=E6=8A=A5=E5=8C=BA=E5=88=86=E5=85=AC=E6=8B=9B=E5=92=8C?= =?UTF-8?q?=E6=8E=89=E8=90=BD=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/config.json | 4 ++- src/MaaCore/Config/GeneralConfig.cpp | 3 ++- src/MaaCore/Config/GeneralConfig.h | 2 ++ .../Task/Fight/StageDropsTaskPlugin.cpp | 2 +- .../Task/Miscellaneous/AutoRecruitTask.cpp | 2 +- src/MaaCore/Task/ReportDataTask.cpp | 25 +++++++++++++------ src/MaaCore/Task/ReportDataTask.h | 5 ++-- 7 files changed, 30 insertions(+), 13 deletions(-) diff --git a/resource/config.json b/resource/config.json index db35a64c86..73b54109ca 100644 --- a/resource/config.json +++ b/resource/config.json @@ -32,6 +32,7 @@ "penguinReport": { "Doc": "企鹅物流汇报: https://penguin-stats.cn/", "url": "https://penguin-stats.io/PenguinStats/api/v2/report", + "url_Doc": "企鹅的汇报用的同一个url,就不区分recruit和drop了", "timeout": 10000, "headers": { "Content-Type": "application/json" @@ -39,7 +40,8 @@ }, "yituliuReport": { "Doc": "一图流汇报:https://yituliu.site/maarecruitdata", - "url": "https://backend.yituliu.site/maa/upload/recruit", + "recruitUrl": "https://backend.yituliu.site/maa/upload/recruit", + "dropUrl": "https://backend.yituliu.site/maa/upload/drop", "timeout": 5000, "headers": { "Content-Type": "application/json" diff --git a/src/MaaCore/Config/GeneralConfig.cpp b/src/MaaCore/Config/GeneralConfig.cpp index 4a1018db8b..01b9478166 100644 --- a/src/MaaCore/Config/GeneralConfig.cpp +++ b/src/MaaCore/Config/GeneralConfig.cpp @@ -42,7 +42,8 @@ bool asst::GeneralConfig::parse(const json::value& json) } } if (auto yituliu_opt = options_json.find("yituliuReport")) { - m_options.yituliu_report.url = yituliu_opt->get("url", std::string()); + m_options.yituliu_report.drop_url = yituliu_opt->get("dropUrl", std::string()); + m_options.yituliu_report.recruit_url = yituliu_opt->get("recruitUrl", std::string()); m_options.yituliu_report.timeout = yituliu_opt->get("timeout", 5000); if (auto headers_opt = yituliu_opt->find("headers")) { m_options.yituliu_report.headers.clear(); diff --git a/src/MaaCore/Config/GeneralConfig.h b/src/MaaCore/Config/GeneralConfig.h index dbfab61e03..3a30239546 100644 --- a/src/MaaCore/Config/GeneralConfig.h +++ b/src/MaaCore/Config/GeneralConfig.h @@ -14,6 +14,8 @@ namespace asst struct RequestInfo { std::string url; // 上传地址 + std::string drop_url; + std::string recruit_url; std::unordered_map headers; // 请求头 int timeout = 0; // 超时时间 }; diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index 8ceb9e705e..b38f761bd6 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -420,7 +420,7 @@ void asst::StageDropsTaskPlugin::upload_to_yituliu() m_report_yituliu_task_ptr = std::make_shared(report_penguin_callback, this); } - m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigData) + m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigDataStageDrops) .set_body(body.to_string()) .set_extra_headers(extra_headers) .set_retry_times(5) diff --git a/src/MaaCore/Task/Miscellaneous/AutoRecruitTask.cpp b/src/MaaCore/Task/Miscellaneous/AutoRecruitTask.cpp index 7562fab4ed..b108753711 100644 --- a/src/MaaCore/Task/Miscellaneous/AutoRecruitTask.cpp +++ b/src/MaaCore/Task/Miscellaneous/AutoRecruitTask.cpp @@ -787,7 +787,7 @@ void asst::AutoRecruitTask::upload_to_yituliu(const json::value& details) m_report_yituliu_task_ptr = std::make_shared(report_yituliu_callback, this); } - m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigData) + m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigDataAutoRecruit) .set_body(body.to_string()) .set_retry_times(0) .run(); diff --git a/src/MaaCore/Task/ReportDataTask.cpp b/src/MaaCore/Task/ReportDataTask.cpp index d1527d4766..8632ee5ac4 100644 --- a/src/MaaCore/Task/ReportDataTask.cpp +++ b/src/MaaCore/Task/ReportDataTask.cpp @@ -45,8 +45,9 @@ bool asst::ReportDataTask::_run() case ReportType::PenguinStats: report_func = std::bind(&ReportDataTask::report_to_penguin, this); break; - case ReportType::YituliuBigData: - report_func = std::bind(&ReportDataTask::report_to_yituliu, this); + case ReportType::YituliuBigDataAutoRecruit: + case ReportType::YituliuBigDataStageDrops: + report_func = std::bind(&ReportDataTask::report_to_yituliu, this, m_report_type); break; default: return false; @@ -149,13 +150,23 @@ void asst::ReportDataTask::report_to_penguin() } } -void asst::ReportDataTask::report_to_yituliu() +void asst::ReportDataTask::report_to_yituliu(ReportType reportType) { LogTraceFunction; - constexpr std::string_view YituliuSubtaskName = "ReportToYituliu"; - const std::string& url = Config.get_options().yituliu_report.url; - int timeout = Config.get_options().yituliu_report.timeout; + constexpr std::string_view yituliu_subtask_name = "ReportToYituliu"; + const std::string* url_ptr = nullptr; + switch (reportType) { + case ReportType::YituliuBigDataAutoRecruit: + url_ptr = &Config.get_options().yituliu_report.recruit_url; + break; + case ReportType::YituliuBigDataStageDrops: + url_ptr = &Config.get_options().yituliu_report.drop_url; + break; + default: + return; + } + const int timeout = Config.get_options().yituliu_report.timeout; cpr::Header headers = {}; for (const auto& [header_key, value] : Config.get_options().yituliu_report.headers) { @@ -166,7 +177,7 @@ void asst::ReportDataTask::report_to_yituliu() headers.emplace(field); } - report(YituliuSubtaskName, url, headers, timeout); + report(yituliu_subtask_name, *url_ptr, headers, timeout); } cpr::Response asst::ReportDataTask::report(std::string_view subtask, const std::string& url, const cpr::Header& headers, diff --git a/src/MaaCore/Task/ReportDataTask.h b/src/MaaCore/Task/ReportDataTask.h index 6d49e55887..4d564bcade 100644 --- a/src/MaaCore/Task/ReportDataTask.h +++ b/src/MaaCore/Task/ReportDataTask.h @@ -14,7 +14,8 @@ namespace asst { Invalid, PenguinStats, - YituliuBigData, + YituliuBigDataAutoRecruit, + YituliuBigDataStageDrops, }; using TaskCallback = std::function; @@ -40,7 +41,7 @@ namespace asst virtual void callback(AsstMsg msg, const json::value& detail) override; void report_to_penguin(); - void report_to_yituliu(); + void report_to_yituliu(ReportType reportType); cpr::Response report( std::string_view subtask, const std::string& url, const cpr::Header& headers, const int timeout, HttpResponsePred success_cond = [](const cpr::Response& response) -> bool { From e7ea33992529460a02ea80c6aaba0d72aba44f61 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sat, 11 Nov 2023 02:37:43 +0800 Subject: [PATCH 03/12] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp | 14 +++++++++++++- src/MaaCore/Task/Fight/StageDropsTaskPlugin.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index b38f761bd6..38d302155f 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -417,7 +417,7 @@ void asst::StageDropsTaskPlugin::upload_to_yituliu() } if (!m_report_yituliu_task_ptr) { - m_report_yituliu_task_ptr = std::make_shared(report_penguin_callback, this); + m_report_yituliu_task_ptr = std::make_shared(report_yituliu_callback, this); } m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigDataStageDrops) @@ -427,6 +427,18 @@ void asst::StageDropsTaskPlugin::upload_to_yituliu() .run(); } +void asst::StageDropsTaskPlugin::report_yituliu_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr) +{ + LogTraceFunction; + + auto p_this = dynamic_cast(task_ptr); + if (!p_this) { + return; + } + + p_this->callback(msg, detail); +} + bool asst::StageDropsTaskPlugin::check_stage_valid() { LogTraceFunction; diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h index 52d8dbfd78..936b656260 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h @@ -40,6 +40,7 @@ namespace asst bool upload_to_penguin(); // 返回值表示该次掉落是否通过企鹅检查 void upload_to_yituliu(); static void report_penguin_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr); + static void report_yituliu_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr); static inline constexpr int64_t RecognitionTimeOffset = 20; static inline const std::string LastStartTimeKey = Status::ProcessTaskLastTimePrefix + "Fight@StartButton2"; From 7448c6a188a7f065af87e8b18202ee0f035a714a Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Mon, 13 Nov 2023 23:29:13 +0800 Subject: [PATCH 04/12] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E5=9B=BE=E6=B5=81=E7=9A=84dropUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/config.json b/resource/config.json index 73b54109ca..90b3e68cba 100644 --- a/resource/config.json +++ b/resource/config.json @@ -41,7 +41,7 @@ "yituliuReport": { "Doc": "一图流汇报:https://yituliu.site/maarecruitdata", "recruitUrl": "https://backend.yituliu.site/maa/upload/recruit", - "dropUrl": "https://backend.yituliu.site/maa/upload/drop", + "dropUrl": "https://developer.yituliu.site/stage/drop/upload", "timeout": 5000, "headers": { "Content-Type": "application/json" From 8347768ea6e2ae84ddae8c71fa9deff39951daf5 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 00:00:27 +0800 Subject: [PATCH 05/12] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=20StageDro?= =?UTF-8?q?psTaskPlugin=20=E4=B8=8A=E4=BC=A0=E5=87=BD=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E4=BB=A3=E7=A0=81=E9=87=8D=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Task/Fight/StageDropsTaskPlugin.cpp | 119 ++++-------------- src/MaaCore/Task/Fight/StageDropsTaskPlugin.h | 2 + 2 files changed, 27 insertions(+), 94 deletions(-) diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index 38d302155f..880d8ad588 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -233,7 +233,7 @@ void asst::StageDropsTaskPlugin::set_start_button_delay() m_cast_ptr->set_post_delay("StartButton2WaitTime", static_cast(delay)); } -bool asst::StageDropsTaskPlugin::upload_to_penguin() +bool asst::StageDropsTaskPlugin::upload_to_server(const std::string& subtask, ReportType report_type) { LogTraceFunction; @@ -242,9 +242,8 @@ bool asst::StageDropsTaskPlugin::upload_to_penguin() } json::value cb_info = basic_info(); - cb_info["subtask"] = "ReportToPenguinStats"; + cb_info["subtask"] = subtask; - // Doc: https://developer.penguin-stats_vec.io/public-api/api-v2-instruction/report-api std::string stage_id = m_cur_info_json.get("stage", "stageId", std::string()); if (stage_id.empty()) { cb_info["why"] = "UnknownStage"; @@ -304,18 +303,37 @@ bool asst::StageDropsTaskPlugin::upload_to_penguin() extra_headers.insert({ "authorization", "PenguinID " + m_penguin_id }); } - if (!m_report_penguin_task_ptr) { - m_report_penguin_task_ptr = std::make_shared(report_penguin_callback, this); + std::shared_ptr report_task_ptr; + if (report_type == ReportType::PenguinStats) { + report_task_ptr = m_report_penguin_task_ptr; + if (!m_report_penguin_task_ptr) { + report_task_ptr = std::make_shared(report_penguin_callback, this); + } + } + else if (report_type == ReportType::YituliuBigDataStageDrops) { + report_task_ptr = m_report_yituliu_task_ptr; + if (!m_report_yituliu_task_ptr) { + report_task_ptr = std::make_shared(report_yituliu_callback, this); + } } - m_report_penguin_task_ptr->set_report_type(ReportType::PenguinStats) + report_task_ptr->set_report_type(report_type) .set_body(body.to_string()) .set_extra_headers(extra_headers) .set_retry_times(5) .run(); + return true; } +bool asst::StageDropsTaskPlugin::upload_to_penguin() +{ + LogTraceFunction; + + const bool result = upload_to_server("ReportToPenguinStats", ReportType::PenguinStats); + return result; +} + void asst::StageDropsTaskPlugin::report_penguin_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr) { LogTraceFunction; @@ -337,94 +355,7 @@ void asst::StageDropsTaskPlugin::upload_to_yituliu() { LogTraceFunction; - // 企鹅上报成功再上报一图流,这里就不判断了 - /* - if (m_server != "CN" && m_server != "US" && m_server != "JP" && m_server != "KR") { - return; - } - */ - - json::value cb_info = basic_info(); - cb_info["subtask"] = "ReportToYituliu"; - - std::string stage_id = m_cur_info_json.get("stage", "stageId", std::string()); - /* - if (stage_id.empty()) { - cb_info["why"] = "UnknownStage"; - cb_info["details"] = - json::object { { "stage_code", m_stage_code }, { "stage_difficulty", enum_to_string(m_stage_difficulty) } }; - callback(AsstMsg::SubTaskError, cb_info); - return; - } - if (m_stars != 3) { - cb_info["why"] = "NotThreeStars"; - callback(AsstMsg::SubTaskError, cb_info); - return; - } - if (m_times == -2) { - cb_info["why"] = "UnknownTimes"; - callback(AsstMsg::SubTaskError, cb_info); - return; - } - */ - - json::value body; - body["server"] = m_server; - body["stageId"] = stage_id; - if (m_times >= 0) { // -1 means not found, don't have times field - body["times"] = m_times; - } - auto& all_drops = body["drops"]; - for (const auto& drop : m_cur_info_json["drops"].as_array()) { - static const std::array filter = { - "NORMAL_DROP", - "EXTRA_DROP", - "FURNITURE", - "SPECIAL_DROP", - }; - std::string drop_type = drop.at("dropType").as_string(); - - /* - if (drop_type == "UNKNOWN_DROP") { - cb_info["why"] = "UnknownDropType"; - callback(AsstMsg::SubTaskError, cb_info); - return; - } - */ - - if (ranges::find(filter, drop_type) == filter.cend()) { - continue; - } - - /* - if (drop.at("itemId").as_string().empty()) { - cb_info["why"] = "UnknownDrops"; - callback(AsstMsg::SubTaskError, cb_info); - return; - } - */ - - json::value format_drop = drop; - format_drop.as_object().erase("itemName"); - all_drops.array_emplace(std::move(format_drop)); - } - body["source"] = UploadDataSource; - body["version"] = Version; - - std::unordered_map extra_headers; - if (!m_penguin_id.empty()) { - extra_headers.insert({ "authorization", "PenguinID " + m_penguin_id }); - } - - if (!m_report_yituliu_task_ptr) { - m_report_yituliu_task_ptr = std::make_shared(report_yituliu_callback, this); - } - - m_report_yituliu_task_ptr->set_report_type(ReportType::YituliuBigDataStageDrops) - .set_body(body.to_string()) - .set_extra_headers(extra_headers) - .set_retry_times(5) - .run(); + upload_to_server("ReportToYituliu", ReportType::YituliuBigDataStageDrops); } void asst::StageDropsTaskPlugin::report_yituliu_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr) diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h index 936b656260..8a01892ced 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h @@ -8,6 +8,7 @@ #include "Config/Miscellaneous/StageDropsConfig.h" #include "Status.h" +#include "Task/ReportDataTask.h" namespace asst { @@ -37,6 +38,7 @@ namespace asst bool check_stage_valid(); bool check_specify_quantity() const; void stop_task(); + bool upload_to_server(const std::string& subtask, ReportType report_type); bool upload_to_penguin(); // 返回值表示该次掉落是否通过企鹅检查 void upload_to_yituliu(); static void report_penguin_callback(AsstMsg msg, const json::value& detail, AbstractTask* task_ptr); From d330fe6dbe4904306ea10290e2f7ea3ce063656f Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 00:11:23 +0800 Subject: [PATCH 06/12] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Fight/SideStoryReopenTask.cpp | 6 +++--- src/MaaCore/Task/Fight/SideStoryReopenTask.h | 4 ++-- src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp | 6 +++--- src/MaaCore/Task/Fight/StageDropsTaskPlugin.h | 4 ++-- src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp | 6 +++--- src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h | 4 ++-- src/MaaCore/Task/Interface/FightTask.cpp | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp b/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp index 36838a0c62..cd54d36529 100644 --- a/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp +++ b/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp @@ -33,9 +33,9 @@ bool asst::SideStoryReopenTask::set_server(std::string server) m_server = std::move(server); return true; } -bool asst::SideStoryReopenTask::set_enable_penguid(bool enable) +bool asst::SideStoryReopenTask::set_enable_penguin(bool enable) { - m_enable_penguid = enable; + m_enable_penguin = enable; return true; } bool asst::SideStoryReopenTask::set_penguin_id(std::string id) @@ -190,7 +190,7 @@ bool asst::SideStoryReopenTask::fight(bool use_medicine, bool use_stone) auto plugin = fight_task.register_plugin(); plugin->set_drop_stats(std::move(m_drop_stats)); - plugin->set_enable_penguid(m_enable_penguid); + plugin->set_enable_penguin(m_enable_penguin); plugin->set_server(m_server); plugin->set_penguin_id(m_penguin_id); auto result = fight_task.run(); diff --git a/src/MaaCore/Task/Fight/SideStoryReopenTask.h b/src/MaaCore/Task/Fight/SideStoryReopenTask.h index 65e37aee5e..9c97d0311a 100644 --- a/src/MaaCore/Task/Fight/SideStoryReopenTask.h +++ b/src/MaaCore/Task/Fight/SideStoryReopenTask.h @@ -15,7 +15,7 @@ namespace asst void set_expiring_medicine(int expiring_medicine); void set_stone(int stone); - bool set_enable_penguid(bool enable); + bool set_enable_penguin(bool enable); bool set_penguin_id(std::string id); bool set_server(std::string server); @@ -42,7 +42,7 @@ namespace asst bool m_sanity_not_enough = false; std::unordered_map m_drop_stats; // 企鹅物流上报用 - bool m_enable_penguid = false; + bool m_enable_penguin = false; std::string m_penguin_id; std::string m_server = "CN"; }; diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index 880d8ad588..b6239ce9f7 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -46,9 +46,9 @@ void asst::StageDropsTaskPlugin::set_task_ptr(AbstractTask* ptr) m_cast_ptr = dynamic_cast(ptr); } -bool asst::StageDropsTaskPlugin::set_enable_penguid(bool enable) +bool asst::StageDropsTaskPlugin::set_enable_penguin(bool enable) { - m_enable_penguid = enable; + m_enable_penguin = enable; return true; } @@ -91,7 +91,7 @@ bool asst::StageDropsTaskPlugin::_run() stop_task(); } - if (m_enable_penguid && !m_is_annihilation) { + if (m_enable_penguin && !m_is_annihilation) { if (!upload_to_penguin()) { save_img(utils::path("debug") / utils::path("drops")); } diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h index 8a01892ced..960ddcd3c8 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h @@ -24,7 +24,7 @@ namespace asst virtual bool verify(AsstMsg msg, const json::value& details) const override; virtual void set_task_ptr(AbstractTask* ptr) override; - bool set_enable_penguid(bool enable); + bool set_enable_penguin(bool enable); bool set_penguin_id(std::string id); bool set_server(std::string server); bool set_specify_quantity(std::unordered_map quantity); @@ -62,7 +62,7 @@ namespace asst ProcessTask* m_cast_ptr = nullptr; std::shared_ptr m_report_penguin_task_ptr = nullptr; std::shared_ptr m_report_yituliu_task_ptr = nullptr; - bool m_enable_penguid = false; + bool m_enable_penguin = false; std::string m_penguin_id; std::string m_server = "CN"; std::unordered_map m_specify_quantity; diff --git a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp index c1cee5c479..19940e0a9e 100644 --- a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp @@ -124,7 +124,7 @@ void asst::StageQueueMissionCompletedPlugin::drop_info_callback(std::string stag callback(AsstMsg::SubTaskExtraInfo, info); m_cur_info_json = std::move(details); - if (m_enable_penguid) { + if (m_enable_penguin) { upload_to_penguin(stage_code, analyzer.get_stars()); } } @@ -133,9 +133,9 @@ bool asst::StageQueueMissionCompletedPlugin::set_server(std::string server) m_server = std::move(server); return true; } -bool asst::StageQueueMissionCompletedPlugin::set_enable_penguid(bool enable) +bool asst::StageQueueMissionCompletedPlugin::set_enable_penguin(bool enable) { - m_enable_penguid = enable; + m_enable_penguin = enable; return true; } bool asst::StageQueueMissionCompletedPlugin::set_penguin_id(std::string id) diff --git a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h index d0ea470992..c675799fe8 100644 --- a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h +++ b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h @@ -22,7 +22,7 @@ namespace asst void set_drop_stats(std::unordered_map m_drop_stats); std::unordered_map get_drop_stats(); - bool set_enable_penguid(bool enable); + bool set_enable_penguin(bool enable); bool set_penguin_id(std::string id); bool set_server(std::string server); @@ -38,7 +38,7 @@ namespace asst std::unordered_map m_drop_stats; json::value m_cur_info_json; // 企鹅物流上报用 - bool m_enable_penguid = false; + bool m_enable_penguin = false; std::string m_penguin_id; std::string m_server = "CN"; std::shared_ptr m_report_penguin_task_ptr = nullptr; diff --git a/src/MaaCore/Task/Interface/FightTask.cpp b/src/MaaCore/Task/Interface/FightTask.cpp index b834178e4e..d8ed0ba679 100644 --- a/src/MaaCore/Task/Interface/FightTask.cpp +++ b/src/MaaCore/Task/Interface/FightTask.cpp @@ -67,7 +67,7 @@ bool asst::FightTask::set_params(const json::value& params) const int expiring_medicine = params.get("expiring_medicine", 0); const int stone = params.get("stone", 0); const int times = params.get("times", INT_MAX); - bool enable_penguid = params.get("report_to_penguin", false); + bool enable_penguin = params.get("report_to_penguin", false); std::string penguin_id = params.get("penguin_id", ""); std::string server = params.get("server", "CN"); std::string client_type = params.get("client_type", std::string()); @@ -119,13 +119,13 @@ bool asst::FightTask::set_params(const json::value& params) m_medicine_plugin->set_use_expiring(expiring_medicine != 0); m_medicine_plugin->set_dr_grandet(is_dr_grandet); m_dr_grandet_task_plugin_ptr->set_enable(is_dr_grandet); - m_stage_drops_plugin_ptr->set_enable_penguid(enable_penguid); + m_stage_drops_plugin_ptr->set_enable_penguin(enable_penguin); m_stage_drops_plugin_ptr->set_penguin_id(penguin_id); m_sidestory_reopen_task_ptr->set_medicine(medicine); m_sidestory_reopen_task_ptr->set_expiring_medicine(expiring_medicine); m_sidestory_reopen_task_ptr->set_stone(stone); - m_sidestory_reopen_task_ptr->set_enable_penguid(enable_penguid); + m_sidestory_reopen_task_ptr->set_enable_penguin(enable_penguin); m_sidestory_reopen_task_ptr->set_penguin_id(std::move(penguin_id)); m_sidestory_reopen_task_ptr->set_server(server); From 2ed9555c9e31659a7a074a0d387ffd291e3a4a05 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 01:10:12 +0800 Subject: [PATCH 07/12] =?UTF-8?q?feat:=20core=E6=94=AF=E6=8C=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF=E4=B8=80=E5=9B=BE?= =?UTF-8?q?=E6=B5=81=E4=B8=8A=E6=8A=A5=EF=BC=8Cui=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF=E4=B8=80?= =?UTF-8?q?=E5=9B=BE=E6=B5=81=E5=92=8C=E4=BC=81=E9=B9=85=E7=89=A9=E6=B5=81?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Task/Fight/SideStoryReopenTask.cpp | 7 +++++ src/MaaCore/Task/Fight/SideStoryReopenTask.h | 4 +++ .../Task/Fight/StageDropsTaskPlugin.cpp | 13 ++++++-- src/MaaCore/Task/Fight/StageDropsTaskPlugin.h | 3 ++ .../StageQueueMissionCompletedPlugin.cpp | 6 ++++ .../Fight/StageQueueMissionCompletedPlugin.h | 4 +++ src/MaaCore/Task/Interface/FightTask.cpp | 3 ++ src/MaaWpfGui/Constants/ConfigurationKeys.cs | 3 ++ src/MaaWpfGui/Main/AsstProxy.cs | 13 ++++---- .../ViewModels/UI/SettingsViewModel.cs | 30 +++++++++++++++++++ .../UserControl/FightSettingsUserControl.xaml | 13 ++++++-- 11 files changed, 88 insertions(+), 11 deletions(-) diff --git a/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp b/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp index cd54d36529..b0739049f4 100644 --- a/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp +++ b/src/MaaCore/Task/Fight/SideStoryReopenTask.cpp @@ -43,6 +43,12 @@ bool asst::SideStoryReopenTask::set_penguin_id(std::string id) m_penguin_id = std::move(id); return true; } +bool asst::SideStoryReopenTask::set_enable_yituliu(bool enable) +{ + // 暂时没用上,其他地方加了这里也加一个 + m_enable_yituliu = enable; + return true; +} bool asst::SideStoryReopenTask::_run() { LogTraceFunction; @@ -191,6 +197,7 @@ bool asst::SideStoryReopenTask::fight(bool use_medicine, bool use_stone) auto plugin = fight_task.register_plugin(); plugin->set_drop_stats(std::move(m_drop_stats)); plugin->set_enable_penguin(m_enable_penguin); + plugin->set_enable_yituliu(m_enable_yituliu); plugin->set_server(m_server); plugin->set_penguin_id(m_penguin_id); auto result = fight_task.run(); diff --git a/src/MaaCore/Task/Fight/SideStoryReopenTask.h b/src/MaaCore/Task/Fight/SideStoryReopenTask.h index 9c97d0311a..07f3a8408b 100644 --- a/src/MaaCore/Task/Fight/SideStoryReopenTask.h +++ b/src/MaaCore/Task/Fight/SideStoryReopenTask.h @@ -19,6 +19,8 @@ namespace asst bool set_penguin_id(std::string id); bool set_server(std::string server); + bool set_enable_yituliu(bool enable); + private: virtual bool _run() override; // 判断如果处于普通关页面,直接短路导航 @@ -45,6 +47,8 @@ namespace asst bool m_enable_penguin = false; std::string m_penguin_id; std::string m_server = "CN"; + // 一图流上报用 + bool m_enable_yituliu = false; }; } diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index b6239ce9f7..0927f1bd15 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -58,6 +58,12 @@ bool asst::StageDropsTaskPlugin::set_penguin_id(std::string id) return true; } +bool asst::StageDropsTaskPlugin::set_enable_yituliu(bool enable) +{ + m_enable_yituliu = enable; + return true; +} + bool asst::StageDropsTaskPlugin::set_server(std::string server) { m_server = std::move(server); @@ -95,9 +101,10 @@ bool asst::StageDropsTaskPlugin::_run() if (!upload_to_penguin()) { save_img(utils::path("debug") / utils::path("drops")); } - else { - upload_to_yituliu(); - } + } + + if (m_enable_yituliu && !m_is_annihilation) { + upload_to_yituliu(); } return true; diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h index 960ddcd3c8..560bb5f6f9 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.h @@ -29,6 +29,8 @@ namespace asst bool set_server(std::string server); bool set_specify_quantity(std::unordered_map quantity); + bool set_enable_yituliu(bool enable); + private: virtual bool _run() override; @@ -64,6 +66,7 @@ namespace asst std::shared_ptr m_report_yituliu_task_ptr = nullptr; bool m_enable_penguin = false; std::string m_penguin_id; + bool m_enable_yituliu = false; std::string m_server = "CN"; std::unordered_map m_specify_quantity; }; diff --git a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp index 19940e0a9e..d489652f4c 100644 --- a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.cpp @@ -143,6 +143,12 @@ bool asst::StageQueueMissionCompletedPlugin::set_penguin_id(std::string id) m_penguin_id = std::move(id); return true; } +bool asst::StageQueueMissionCompletedPlugin::set_enable_yituliu(bool enable) +{ + // 暂时没用上,其他地方加了这里也加一个 + m_enable_yituliu = enable; + return true; +} void asst::StageQueueMissionCompletedPlugin::upload_to_penguin(std::string stage_code, int stars) { LogTraceFunction; diff --git a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h index c675799fe8..7e56e1706f 100644 --- a/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h +++ b/src/MaaCore/Task/Fight/StageQueueMissionCompletedPlugin.h @@ -26,6 +26,8 @@ namespace asst bool set_penguin_id(std::string id); bool set_server(std::string server); + bool set_enable_yituliu(bool enable); + private: virtual bool _run() override; @@ -42,5 +44,7 @@ namespace asst std::string m_penguin_id; std::string m_server = "CN"; std::shared_ptr m_report_penguin_task_ptr = nullptr; + // 一图流上报用 + bool m_enable_yituliu = false; }; } diff --git a/src/MaaCore/Task/Interface/FightTask.cpp b/src/MaaCore/Task/Interface/FightTask.cpp index d8ed0ba679..7cfe13e80d 100644 --- a/src/MaaCore/Task/Interface/FightTask.cpp +++ b/src/MaaCore/Task/Interface/FightTask.cpp @@ -68,6 +68,7 @@ bool asst::FightTask::set_params(const json::value& params) const int stone = params.get("stone", 0); const int times = params.get("times", INT_MAX); bool enable_penguin = params.get("report_to_penguin", false); + bool enable_yituliu = params.get("report_to_yituliu", false); std::string penguin_id = params.get("penguin_id", ""); std::string server = params.get("server", "CN"); std::string client_type = params.get("client_type", std::string()); @@ -121,12 +122,14 @@ bool asst::FightTask::set_params(const json::value& params) m_dr_grandet_task_plugin_ptr->set_enable(is_dr_grandet); m_stage_drops_plugin_ptr->set_enable_penguin(enable_penguin); m_stage_drops_plugin_ptr->set_penguin_id(penguin_id); + m_stage_drops_plugin_ptr->set_enable_yituliu(enable_yituliu); m_sidestory_reopen_task_ptr->set_medicine(medicine); m_sidestory_reopen_task_ptr->set_expiring_medicine(expiring_medicine); m_sidestory_reopen_task_ptr->set_stone(stone); m_sidestory_reopen_task_ptr->set_enable_penguin(enable_penguin); m_sidestory_reopen_task_ptr->set_penguin_id(std::move(penguin_id)); + m_sidestory_reopen_task_ptr->set_enable_yituliu(enable_yituliu); m_sidestory_reopen_task_ptr->set_server(server); return true; diff --git a/src/MaaWpfGui/Constants/ConfigurationKeys.cs b/src/MaaWpfGui/Constants/ConfigurationKeys.cs index fa99e83236..4f33d32f1e 100644 --- a/src/MaaWpfGui/Constants/ConfigurationKeys.cs +++ b/src/MaaWpfGui/Constants/ConfigurationKeys.cs @@ -155,6 +155,9 @@ namespace MaaWpfGui.Constants public const string PenguinId = "Penguin.Id"; public const string IsDrGrandet = "Penguin.IsDrGrandet"; + public const string EnablePenguin = "Penguin.EnablePenguin"; + + public const string EnableYituliu = "Yituliu.EnableYituliu"; public const string BluestacksConfigPath = "Bluestacks.Config.Path"; public const string BluestacksConfigKeyword = "Bluestacks.Config.Keyword"; diff --git a/src/MaaWpfGui/Main/AsstProxy.cs b/src/MaaWpfGui/Main/AsstProxy.cs index f4118fd70d..516c3c3fff 100644 --- a/src/MaaWpfGui/Main/AsstProxy.cs +++ b/src/MaaWpfGui/Main/AsstProxy.cs @@ -1541,7 +1541,7 @@ namespace MaaWpfGui.Main private readonly Dictionary _latestTaskId = new Dictionary(); private static JObject SerializeFightTaskParams(string stage, int maxMedicine, int maxStone, int maxTimes, - string dropsItemId, int dropsItemQuantity, bool reportToPenguin = true) + string dropsItemId, int dropsItemQuantity) { var taskParams = new JObject { @@ -1549,7 +1549,8 @@ namespace MaaWpfGui.Main ["medicine"] = maxMedicine, ["stone"] = maxStone, ["times"] = maxTimes, - ["report_to_penguin"] = reportToPenguin, + ["report_to_penguin"] = Instances.SettingsViewModel.EnablePenguin, + ["report_to_yituliu"] = Instances.SettingsViewModel.EnableYituliu, }; if (dropsItemQuantity != 0 && !string.IsNullOrWhiteSpace(dropsItemId)) { @@ -1753,8 +1754,8 @@ namespace MaaWpfGui.Main }; } - taskParams["report_to_penguin"] = true; - taskParams["report_to_yituliu"] = true; + taskParams["report_to_penguin"] = Instances.SettingsViewModel.EnablePenguin; + taskParams["report_to_yituliu"] = Instances.SettingsViewModel.EnableYituliu; taskParams["penguin_id"] = Instances.SettingsViewModel.PenguinId; taskParams["server"] = Instances.SettingsViewModel.ServerType; @@ -1952,8 +1953,8 @@ namespace MaaWpfGui.Main ["set_time"] = setTime, ["expedite"] = false, ["expedite_times"] = 0, - ["report_to_penguin"] = true, - ["report_to_yituliu"] = true, + ["report_to_penguin"] = false, + ["report_to_yituliu"] = false, }; int recruitmentTime; if (Instances.RecognizerViewModel.IsLevel3UseShortTime) diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index 898d9d8b0b..1eda866734 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -3391,6 +3391,36 @@ namespace MaaWpfGui.ViewModels.UI } } + private bool _enablePenguin = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnablePenguin, bool.TrueString)); + + /// + /// Gets or sets a value indicating whether to hide unavailable stages. + /// + public bool EnablePenguin + { + get => _enablePenguin; + set + { + SetAndNotify(ref _enablePenguin, value); + ConfigurationHelper.SetValue(ConfigurationKeys.EnablePenguin, value.ToString()); + } + } + + private bool _enableYituliu = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnableYituliu, bool.TrueString)); + + /// + /// Gets or sets a value indicating whether to hide unavailable stages. + /// + public bool EnableYituliu + { + get => _enableYituliu; + set + { + SetAndNotify(ref _enableYituliu, value); + ConfigurationHelper.SetValue(ConfigurationKeys.EnableYituliu, value.ToString()); + } + } + private bool _customStageCode = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.CustomStageCode, bool.FalseString)); /// diff --git a/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml b/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml index a3133857be..35f63c5ed1 100644 --- a/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml +++ b/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml @@ -148,7 +148,7 @@ - + + + From 38c0e82b50f9b71abe3f6690a9940ef132498dcd Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 01:14:28 +0800 Subject: [PATCH 08/12] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=BD=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/UI/SettingsViewModel.cs | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index 1eda866734..bd64bfd750 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -2289,6 +2289,36 @@ namespace MaaWpfGui.ViewModels.UI } } + private bool _enablePenguin = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnablePenguin, bool.TrueString)); + + /// + /// Gets or sets a value indicating whether to enable penguin upload. + /// + public bool EnablePenguin + { + get => _enablePenguin; + set + { + SetAndNotify(ref _enablePenguin, value); + ConfigurationHelper.SetValue(ConfigurationKeys.EnablePenguin, value.ToString()); + } + } + + private bool _enableYituliu = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnableYituliu, bool.TrueString)); + + /// + /// Gets or sets a value indicating whether to enable yituliu upload. + /// + public bool EnableYituliu + { + get => _enableYituliu; + set + { + SetAndNotify(ref _enableYituliu, value); + ConfigurationHelper.SetValue(ConfigurationKeys.EnableYituliu, value.ToString()); + } + } + private bool _isDrGrandet = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.IsDrGrandet, bool.FalseString)); /// @@ -3391,36 +3421,6 @@ namespace MaaWpfGui.ViewModels.UI } } - private bool _enablePenguin = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnablePenguin, bool.TrueString)); - - /// - /// Gets or sets a value indicating whether to hide unavailable stages. - /// - public bool EnablePenguin - { - get => _enablePenguin; - set - { - SetAndNotify(ref _enablePenguin, value); - ConfigurationHelper.SetValue(ConfigurationKeys.EnablePenguin, value.ToString()); - } - } - - private bool _enableYituliu = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnableYituliu, bool.TrueString)); - - /// - /// Gets or sets a value indicating whether to hide unavailable stages. - /// - public bool EnableYituliu - { - get => _enableYituliu; - set - { - SetAndNotify(ref _enableYituliu, value); - ConfigurationHelper.SetValue(ConfigurationKeys.EnableYituliu, value.ToString()); - } - } - private bool _customStageCode = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.CustomStageCode, bool.FalseString)); /// From 17f8cf7a9602ce30a431805115c52174b9a35f50 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:27:54 +0800 Subject: [PATCH 09/12] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E4=B8=8A=E6=8A=A5=E7=9A=84=E7=95=8C=E9=9D=A2=E7=BF=BB?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Res/Localizations/en-us.xaml | 56 ++++++++++--------- src/MaaWpfGui/Res/Localizations/ja-jp.xaml | 52 ++++++++--------- src/MaaWpfGui/Res/Localizations/ko-kr.xaml | 56 ++++++++++--------- src/MaaWpfGui/Res/Localizations/zh-cn.xaml | 56 ++++++++++--------- src/MaaWpfGui/Res/Localizations/zh-tw.xaml | 54 +++++++++--------- .../UserControl/FightSettingsUserControl.xaml | 20 +++---- 6 files changed, 150 insertions(+), 144 deletions(-) diff --git a/src/MaaWpfGui/Res/Localizations/en-us.xaml b/src/MaaWpfGui/Res/Localizations/en-us.xaml index 865349ec7c..ff306d91b6 100644 --- a/src/MaaWpfGui/Res/Localizations/en-us.xaml +++ b/src/MaaWpfGui/Res/Localizations/en-us.xaml @@ -5,7 +5,7 @@ MAA is about to be upgraded, and the upgraded version does not support PCs that do not have the .NET 8.0 runtime installed, so you need to manually download and install it. \n\nAt the same time, we will no longer support Windows 7. \n\nIf you click 'Yes', we will open the .NET 8 runtime download link for you. If you click 'No', we will disable your automatic download feature to prevent unwanted software updates. If you choose to disable automatic downloads, you can still manually re-enable this feature in the software settings. Software Version Upgrade and Support Changes - + Settings General @@ -56,7 +56,7 @@ ↓Often Used Sometimes Used↑ ← Start Tasks - + Dormitory Factory Workshop @@ -251,6 +251,8 @@ Enter 2nd floor after investing Refresh Rogue Trader with Dice Penguin Report ID (Number part only) + Report Penguin + Report Yituliu Dr. Grandet Mode Wait on the sanity confirmation screen until the current sanity recovers to 1 point, then confirm immediately. Credit shopping @@ -302,7 +304,7 @@ Other client types are not supported Try restarting the emulator after 20 failed reconnect attempts, must be checked when using a background timed task and setting the task to close the emulator when finished Attempt to restart ADB Server after connection failure Attempt to kill and restart ADB process after connection failure - + Farming Login @@ -383,7 +385,7 @@ Other client types are not supported PR-D (Grd/Spc Chip) It's Monday: time to clear the Annihilation It's Sunday: don't forget about Annihilation - + Connecting to emulator…… Unselected task @@ -402,8 +404,8 @@ Other client types are not supported Task(s) completed, about to hibernate Unknown ending action Annihilation task failed, will try to use alternate stage, some combat settings will not be effective - - + + Toolbox Recruitment @@ -416,7 +418,7 @@ Other client types are not supported Auto select 5★ Tags Auto select 6★ Tags Begin to Recruit - + Depot This function is still in testing. If you encounter any unexpected results, please zip the 「debug/depot」 folder in the installation path and submit an issue on GitHub @@ -424,22 +426,22 @@ Other client types are not supported Export to Arkplanner Export to Lolicon Copied to Clipboard - + Operator This function is still in testing. If you encounter any unexpected results, please zip the 「debug/oper」 folder in the installation path and submit an issue on GitHub Not owned: {0}\n\n{1}\n\nOwned: {2}\n\n{3} Start to Identify Copy to Clipboard - + Video Start to identify Open Directory For video recognition, please open the 「Copilot」 tab and drag the strategy video into it. The video aspect ratio needs to be 16:9 without interference factors such as black borders, emulator borders, special shapes and screen corrections. - - + + Gacha Gacha Once Gacha Ten Times @@ -465,11 +467,11 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla REAL GACHA! Got it Don't show again - + Identifying…… Identification completed - + Copilot Task file / URL @@ -515,8 +517,8 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Copilot Json Error! Malformed file! Malformed Copilot Json! - - + + Error MAA has encountered an error @@ -528,7 +530,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Create a GitHub issue Join QQ Group Copy error message - + The resource is damaged, please download the full package again ADB File NOT existing @@ -633,11 +635,11 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Trying to restart the ADB Server Trying to kill and restart the ADB process Please check your connection settings or try restarting the emulator and ADB, or restart your computer - + Force display of MAA Exit - + MAA Website Source code: GitHub @@ -649,7 +651,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Telegram FAQ Issue - + Auto refresh 3★ Tags Continue trying to refresh Tags without recruitment permit @@ -664,28 +666,28 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Auto confirm 5★ Auto confirm 6★ If checked when 1★ tags are identified, will skip the recruitment. If not checked when 1★ tags are identified, they will be ignored. - + Dear Doctor, ever heard of the new listings of 「liquor」 in Ms. Closure's store? Let's check it out? Ugh…… Ehem Ah, doctor, why do you sway so much in your movement today? I won't drink so much next time…… Hello World! - + OK! Version Updated Version: - + MAA is running tasks Are you sure want to exit? - + Stage data retrieval successful Game resources are being updated. Game resource updated, please restart MAA - + Remote Control Device Identifier (Read-only) @@ -703,17 +705,17 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Caution: Entering addresses from unknown sources may result in the loss of your Arknights account. To learn more about how to develop these features, visit Remote Control Feature Developer Documentation - + You receive this message because you have set up an SMTP server in MAA and have the email notification service turned on. This email is sent automatically, please do not reply. Official website MAA Copilot (Chinese) Doctor, there's a new notification! - + Announcement View Announcement Do not show this announcement again - + diff --git a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml index 0ec4fbb057..c8dd653ea2 100644 --- a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml +++ b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml @@ -5,7 +5,7 @@ アップグレード版は、.NET 8.0ランタイムがインストールされていないコンピュータをサポートしないため、手動でダウンロードする必要があります。 \n\nその間に、Windows 7オペレーティングシステムはサポートされなくなります。 \n\n「はい」をクリックすると、新しいランタイムのダウンロード・リンクを開きます。 「いいえ」をクリックすると、不要なソフトウェア更新を防ぐために自動ダウンロードを無効にします。 自動ダウンロードを無効にした場合でも、ソフトウェア設定でこの機能を手動で再度有効にすることができます。 ソフトウェアバージョンのアップグレードとサポートの変更 - + 設定 一般設定 @@ -56,7 +56,7 @@ ↓よく使われる あまり使われていない↑ ← タスクを開始 - + 宿舎 製造所 処理ステーション @@ -251,6 +251,8 @@ 投資後に階層2へ ダイスで品揃えを更新する Penguin-StatsのレポートのID(デジタル部分のみ) + Penguin-Statsの報告 + Yituliuの報告 Dr.グランデモード 理性の回復画面で、現在の待機中の回復が完了するまで待ってから、理性剤などを使用します。 FP交換 @@ -302,7 +304,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 再接続に20回失敗した後、エミュレータを再起動してみてください,バックグラウンドのタイムドタスクを使用し、終了時にエミュレータを終了させるタスクを設定する場合は、必ずチェックを入れること 接続失敗後にADBサーバーの再起動を試みる 接続失敗後にADBプロセスの再起動を試みる - + スタート ウェイクアップ @@ -383,7 +385,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント PR-D(前衛/特殊SoC) 月曜です。殲滅作戦がリセットされています〜 日曜です。殲滅作戦は忘れてないですか〜 - + エミュレータ接続中…… タスクが選択されていません @@ -402,8 +404,8 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 完了しました。休止状態にしようとしています 未知の終了動作 殲滅戦に失敗、代替ステージを使用しますが、一部の戦闘設定が有効ではありません - - + + ツールボックス 公開求人認識 @@ -416,7 +418,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 星5タグを自動的に選択する 星6タグを自動的に選択する 認識開始 - + 倉庫アイテム認識 この機能はまだテスト版です。エラーが発生/統計情報に問題があれば、debug/depotフォルダを圧縮し、issueを提出してください~ @@ -424,14 +426,14 @@ Bilibili: ログイン インターフェイスに表示されるアカウント Arkplannerへ出力 Loliconへ出力 クリップボードへコピー - + オペレーター この機能はまだテスト中です。もし統計情報に問題があれば、debug/depotフォルダを圧縮し、issueを提出してください~ 所有していない: {0} : \n\n{1}\n\n所有している: {2} : \n\n{3} 認識開始 クリップボードにコピー - + 映像 認識を始める @@ -465,11 +467,11 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 本物のガチャです 理解した 再度表示しない - + 認識中…… 認識完了 - + 自動戦闘 攻略ファイルパス/ミステリーコード @@ -515,8 +517,8 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 攻略ファイルの解析中にエラーが発生しました! 攻略ファイルではありません ファイルの内容を確認してください! - - + + エラー MAA に問題が発生しました @@ -528,7 +530,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント GitHub issueを作成する QQグループに参加して問題をフィードバックする エラー情報をコピーする - + リソースファイルが破損しています。完全なパッケージを再度ダウンロードしてください ADBファイルが存在しません @@ -633,11 +635,11 @@ Bilibili: ログイン インターフェイスに表示されるアカウント ADBサーバーの再起動を試みています ADBプロセスの再起動を試みています 接続設定を確認するか、エミュレータとADBを再起動するか、コンピューターを再起動してください - + MAAの強制表示 終了 - + MAA公式サイト ソースコード: GitHub @@ -649,7 +651,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント Telegram よくある質問 フィードバック - + 星3タグを自動的に更新する 採用許可なしでタグの更新を続けます @@ -664,28 +666,28 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 星5を自動的に確認する 星6を自動的に確認する チェックの際に星1タグが特定された場合、募集はスキップされ、チェックされていない場合、星1タグは無視されます。 - + 尊敬なるドクター、クロージャ様のお店で「酒」の新しいリストがあると聞いたことがありませんか?一緒に確認しませんか? うぅ……オエッ あれ、ドクター。どうしてそんなフラフラと歩いておられるのですか? つ、次は飲みすぎないようにしないと…… Hello World! - + OK! バージョンが更新されました バージョン: - + MAAがタスクを実行しています 終了しますか? - + ステージデータの取得に成功しました ゲームリソースが更新中です。 ゲームリソースが更新されました。MAAを再起動してください - + リモートコントロール デバイス識別子(読み取り専用) @@ -703,17 +705,17 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 注意:知らない出所のアドレスを入力すると、あなたの明日方舟のアカウントが損失する可能性があります。 関連機能の開発方法については、訪問してください リモートコントロール機能開発者ドキュメント - + ドクター、新しいお知らせがあります! このメッセージが表示されるのは、MAA で SMTP サーバーをセットアップし、メール通知サービスを有効にしているためです。 このメールは自動的に送信されますので、返信しないでください。 公式サイト Copilot(中国語) - + 公告 公告を見ます このお知らせをもう表示しない - + diff --git a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml index 21b56a123f..0bf2c51b42 100644 --- a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml +++ b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml @@ -5,7 +5,7 @@ MAA가 곧 업그레이드될 예정입니다. 업그레이드된 버전은 .NET 8.0 런타임이 설치되지 않은 컴퓨터는 지원되지 않으므로 수동으로 다운로드해야 합니다.\n\nWindows 7 운영체제 또한 더 이상 지원되지 않을 것입니다.\n\n'예'를 클릭하면 새로운 런타임 다운로드 링크가 열립니다. '아니요'를 클릭하면 원치 않는 소프트웨어 업데이트를 방지하기 위해 자동 다운로드가 비활성화됩니다. 자동 다운로드를 비활성화하더라도 소프트웨어 설정에서 수동으로 다시 기능을 활성화할 수 있습니다. 소프트웨어 버전 업그레이드 및 지원 변경 사항 - + 설정 일반 설정 @@ -56,7 +56,7 @@ ↓자주 쓰는 설정 가끔 쓰는 설정↑ ← 연결 및 동작 시작 - + 숙소 제조소 처리 스테이션 @@ -250,7 +250,9 @@ 오리지늄각뿔 투자 투자 후 2 층 진입 상점 새로고침(指路鳞) - 펭귄 물류 보고 ID (숫자만) + Penguin-Stats 보고 ID (숫자만) + Penguin-Stats 신고 + Yituliu 신고 그랑데 영감 모드 회복제나 순오리지늄 사용 시 이성이 자연 회복될 때까지 기다렸다가 회복되는 즉시 사용합니다. 크레딧 구매 @@ -302,7 +304,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 재연결을 20회 시도해도 실패하면 에뮬레이터를 다시 시작합니다. 백그라운드 예약을 사용하고 작업이 완료되면 에뮬레이터가 종료되도록 설정하려면 반드시 선택해야 합니다 연결 실패 후 ADB 서버 재시작 시도 연결 실패 후 ADB 프로세스 재시작 시도 - + 시작 로그인 @@ -383,7 +385,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) PR-D (가드/스페셜리스트 칩) 월요일입니다. 섬멸 작전을 잊지 마세요~ 일요일입니다. 섬멸 작전을 잊지 마세요~ - + 에뮬레이터에 연결 중…… 선택된 작업이 없습니다 @@ -402,8 +404,8 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 작업을 완료했습니다. 곧 절전 모드에 진입합니다 알 수 없는 종료 동작 섬멸 작전에 실패하여 대체 스테이지를 진행합니다. 일부 전투 설정이 무시될 수 있습니다 - - + + 툴박스 공개모집 태그 인식 @@ -416,7 +418,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ★5 태그를 자동 선택 ★6 태그를 자동 선택 인식 시작 - + 창고 정리 이 기능은 현재 테스트 중입니다. 내보내기 전 인식 결과가 맞는지 확인 후에 사용해 주세요. 만약 오류가 있다면 MAA 경로 내 debug 폴더 안의 depot 폴더 전체를 압축해서 Github의 issue로 올려주세요 @@ -424,14 +426,14 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) Arkplanner로 내보내기 Lolicon으로 내보내기 클립보드에 복사됨 - + 오퍼레이터 식별 이 기능은 현재 테스트 중입니다. 만약 오류가 있다면 MAA 경로 내 debug 폴더 안의 oper 폴더 전체를 압축해서 Github의 issue로 올려주세요~ 미소유: {0}\n목록:\n\n{1}\n소유: {2}\n목록:\n\n{3} 식별 시작 클립보드에 복사 - + 영상 인식 식별 시작 @@ -439,7 +441,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) “자동 지휘” 페이지에서 영상 파일을 드래그하여 시작하세요. 동영상의 해상도는 16:9여야 하며, 검은색 테두리, 에뮬레이터 테두리, 특수한 모양의 화면 보정 등의 방해 요소가 없어야 합니다. - + 헤드헌팅 1회 진행 10회 진행 @@ -465,11 +467,11 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 실제 뽑기입니다 확인 다시 보지 않기 - + 식별 중…… 식별 완료 - + 자동 지휘 작업 파일 경로/코드 @@ -515,8 +517,8 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 전략 파일 분석 중 오류가 발생했습니다! 전략 파일이 아닙니다 파일 내용을 확인해주세요! - - + + 오류 MAA에서 오류가 발생했습니다 @@ -528,7 +530,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) GitHub에 issue 생성 QQ 그룹 가입 오류 메시지 복사 - + 리소스가 손상되었습니다. 전체 패키지를 다시 다운로드하세요 ADB 파일이 존재하지 않습니다 @@ -633,11 +635,11 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ADB 서버 재시작을 시도 중입니다 ADB 프로세스 재시작을 시도 중입니다 연결 설정을 확인하거나 에뮬레이터와 ADB를 다시 시작하거나 컴퓨터를 재시작해주세요 - + MAA 강제 표시 종료 - + MAA 공식 웹사이트 소스 코드: GitHub @@ -649,7 +651,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) Telegram 자주 묻는 질문 이슈 - + ★3 태그를 자동 새로고침하기 채용 허가 없이 계속 태그 새로고침 시도 @@ -664,28 +666,28 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ★5 자동 모집 ★6 자동 모집 체크 시, ★1 태그를 인식할 때 이번 모집을 건너뜁니다. 체크하지 않으면 ★1 태그를 무시합니다. - + 의사님, Ms. Closure의 가게에서 「술」의 새로운 상품 목록을 들어보셨나요? 함께 확인해 볼까요? 으…… 우웁 어머, 박사님. 왜 그렇게 비틀비틀 걷고 계시나요? 다, 다음엔 적당히 마셔야지…… Hello World! - + 좋아요! 업데이트 완료 버전: - + MAA가 작업을 진행 중입니다 정말로 종료하시겠습니까? - + 스테이지 데이터 획득 성공 게임 자원이 업데이트 중입니다. 게임 리소스가 업데이트되었으니 MAA를 다시 시작해주세요. - + 원격 제어 장치 식별자(읽기 전용) @@ -703,17 +705,17 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 주의: 알려지지 않은 출처의 주소를 입력하면 당신의 아크나이츠 계정에 손실이 발생할 수 있습니다. 관련 기능을 개발하는 방법을 알고 싶다면, 방문하세요 원격 제어 기능 개발자 문서 - + 박사님, 새로운 발표가 있습니다! MAA에서 SMTP 서버를 설정하고 메일 알림 서비스가 켜져 있기 때문에 이 메시지가 표시됩니다. 이 이메일은 자동으로 전송되므로 회신하지 마십시오. 공식 홈페이지 워크 스테이션 - + 공고패 공고패 이 공지를 더 이상 표시하지 않음 - + diff --git a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml index aa2a77b227..708920a820 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml @@ -5,7 +5,7 @@ MAA 即将升级,升级后的版本不支持未安装 .NET 8.0 运行时 的电脑,需要您手动前往下载。\n\n同时,我们将不再支持 Windows 7 操作系统。\n\n如果您点击 '是',我们将为您打开新的运行时下载链接。如果您点击 '否',我们将禁用您的自动下载功能,以防止不必要的软件更新。如果您选择禁用自动下载,您仍然可以在软件设置中手动重新启用此功能。 软件版本升级及支持变更 - + 设置 常规设置 @@ -56,7 +56,7 @@ ↓常用的 不常用的↑ ← 开始任务 - + 宿舍 制造站 加工站 @@ -251,6 +251,8 @@ 投资后进入第二层 刷新商店(指路鳞) 企鹅物流汇报ID(仅数字部分) + 上报企鹅物流 + 上报一图流 博朗台模式 在恢复理智确认界面等待,直到当前的 1 点理智恢复完成再立即确认。 信用交易所自动购物 @@ -302,7 +304,7 @@ 重连失败 20 次后尝试重启模拟器,使用后台定时任务且设置任务完成关闭模拟器时请勾选 连接失败后尝试重启 ADB Server 连接失败后尝试关闭并重启 ADB 进程 - + 一键长草 开始唤醒 @@ -383,7 +385,7 @@ PR-D(近/特芯片) 周一了,可以打剿灭了~ 周日了,记得打剿灭哦~ - + 正在连接模拟器…… 未选择任务 @@ -402,8 +404,8 @@ 已刷完,即将休眠 未知的结束动作 剿灭任务失败,将尝试使用剩余备选关卡,部分战斗设置将不生效 - - + + 小工具 公招识别 @@ -416,7 +418,7 @@ 自动选择 5 星 Tags 自动选择 6 星 Tags 开始识别 - + 仓库识别 该功能尚处于测试阶段,请检查结果是否准确再行使用。若有误,欢迎打包 debug/depot 文件夹后向我们提交 issue ~ @@ -424,22 +426,22 @@ 导出至企鹅物流刷图规划 导出至明日方舟工具箱 已复制到剪切板 - + 干员识别 该功能尚处于测试阶段,若统计有误,欢迎打包 debug/oper 文件后向我们提交issue ~ 未拥有: {0} 名: \n\n{1}\n\n已拥有: {2} 名: \n\n{3} 开始识别 复制到剪切板 - + 视频识别 开始识别 打开文件夹 请打开「自动战斗」页,将攻略视频文件拖入后开始即可。 需要视频分辨率为 16:9,且无黑边、模拟器边框、异形屏矫正等干扰因素。 - - + + 牛牛抽卡 寻访一次 寻访十次 @@ -465,11 +467,11 @@ 真正的抽卡 知道了 下次不再提示 - + 正在识别…… 识别完成 - + 自动战斗 作业路径/神秘代码 @@ -515,8 +517,8 @@ 解析作业文件错误! 非作业文件 请检查文件内容! - - + + 错误 MAA 遇到了问题 @@ -528,7 +530,7 @@ 创建 GitHub issue 加入QQ群反馈问题 复制错误信息 - + 资源损坏,请重新下载完整安装包 ADB 路径不存在 @@ -633,11 +635,11 @@ 正在尝试重启 ADB Server 正在尝试关闭并重启 ADB 进程 请检查连接设置或尝试重启模拟器与 ADB 或重启电脑 - + 强制显示MAA 退出 - + MAA 官网 源码: GitHub @@ -649,7 +651,7 @@ Telegram 常见问题 问题反馈 - + 自动刷新 3 星 Tags 无招聘许可时继续尝试刷新 Tags @@ -664,28 +666,28 @@ 自动确认 5 星 自动确认 6 星 勾选时识别到 1 星词条时跳过该次招募,未勾选时将忽略 1 星词条。 - + 博士,欢迎加入这盛大的鱼人庆典!听说可露希尔小姐的商店里新上架了美酒,要去来一杯吗? 呃……咳嗯 呀,博士。你今天走起路来,怎么看着摇摇晃晃的? 下次不能喝、喝这么多了…… Hello World! - + 好的! 版本已更新 已更新: - + MAA 正在运行任务 确定要退出吗? - + 关卡数据获取成功 游戏资源正在更新 游戏资源已更新,请重启 MAA - + 远程控制 设备标识符(只读) @@ -703,17 +705,17 @@ 注意:随意填入未知来源的地址可能会导致您的明日方舟账户受到损失。 了解如何开发相关功能,可以访问 远程控制功能开发者文档 - + 博士,有新的通知哦! 您会收到此邮件,是因为您在 MAA 中设置了 SMTP 服务器并开启了邮件通知服务。 此邮件为系统自动发送,请勿回复。 官网 作业站 - + 公告 查看公告 不再提示此公告 - + diff --git a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml index e917efbfb9..65d4664a70 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml @@ -5,7 +5,7 @@ MAA 即將升級,升級後的版本不支援未安裝 .NET 8.0 執行時 的電腦,需要您手動前往下載。\n\n同時,我們將不再支援 Windows 7 作業系統。\n\n如果您點擊 '是',我們將為您打開新的執行時下載連結。如果您點擊 '否',我們將停用您的自動下載功能,以防止不必要的軟體更新。如果您選擇停用自動下載,您仍然可以在軟體設定中手動重新開啟此功能。 軟體版本升級及支援變更 - + 設定 常規設定 @@ -56,7 +56,7 @@ ↓常用的 不常用的↑ ← 開始任務 - + 宿舍 製造站 加工站 @@ -251,6 +251,8 @@ 投資後進入第二層 刷新商店(指路鱗) 企鵝物流匯報 ID(僅數字部分) + 上報企鵝物流 + 上報一圖流 博朗台模式 在恢復理智確認界面等待,直到當前的 1 點理智恢復完成再立即確認。 信用購物 @@ -302,7 +304,7 @@ 重連失敗 20 次後嘗試重開模擬器,使用後台定時任務且設定任務完成關閉模擬器時必須勾選 連接失敗後嘗試重開 ADB 伺服器 連接失敗後嘗試重開 ADB 程式 - + 一鍵長草 開始喚醒 @@ -383,7 +385,7 @@ PR-D(近/特晶片) 週一了,可以打剿滅了 ~ 週日了,記得打剿滅喔 ~ - + 正在連接模擬器…… 未選擇任務 @@ -402,8 +404,8 @@ 已刷完,即將休眠 未知的結束動作 剿滅任務失敗,將嘗試使用剩餘備選關卡,部分戰鬥設定將不生效 - - + + 小工具 公招辨識 @@ -416,7 +418,7 @@ 自動選擇 5 星 Tags 自動選擇 6 星 Tags 開始辨識 - + 倉庫辨識 該功能尚處於測試階段,請檢查結果是否準確再行使用。若有誤,歡迎打包 debug/depot 文件夾後向我們提交 issue ~ @@ -424,21 +426,21 @@ 匯出到企鵝物流刷圖規劃 匯出到明日方舟工具箱 已複製到剪貼簿 - + 幹員辨識 該功能尚處於測試階段,若統計有誤,歡迎打包 debug/oper 文件後向我們提交 issue ~ 未擁有: {0} 名: \n\n{1}\n\n已擁有: {2} 名: \n\n{3} 開始辨識 複製到剪貼簿 - + 影片辨識 開始辨識 打開資料夾 請打開「自動戰鬥」頁,將攻略影片文件拖入後開始即可。 需要影片分辨率為 16:9,且無黑邊、模擬器邊框、異形屏矯正等干擾因素。 - + 牛牛抽卡 尋訪一次 @@ -465,11 +467,11 @@ 真正的抽卡 知道了 下次不再提示 - + 正在辨識…… 辨識完成 - + 自動戰鬥 作業路徑 / 神秘代碼 @@ -515,8 +517,8 @@ 解析作業檔案錯誤! 非作業檔案 請檢查檔案內容! - - + + 錯誤 MAA 遇到了問題 @@ -528,7 +530,7 @@ 建立 GitHub issue 加入 QQ 群反應問題 複製錯誤資訊 - + 檔案損毀,請重新下載完整安裝檔 ADB 路徑不存在 @@ -633,11 +635,11 @@ 正在嘗試重開 ADB 伺服器 正在嘗試重開 ADB 程式 請檢查連接設定、嘗試重開模擬器與 ADB 或重開電腦 - + 強制顯示 MAA 退出 - + MAA 官網 原始碼: GitHub @@ -649,7 +651,7 @@ Telegram 常見問題 問題回饋 - + 自動刷新 3 星 Tags 無招募許可時繼續嘗試刷新 Tags @@ -664,28 +666,28 @@ 自動確認 5 星 自動確認 6 星 勾選時辨識到 1 星詞條時跳過該次招募,未勾選時將忽略 1 星詞條。 - + 博士,歡迎加入這盛大的魚人慶典!聽說可露希爾小姐的商店裡新上架了美酒,要去來一杯嗎? 呃……咳嗯 呀,博士。你今天走起路來,怎麼看著搖搖晃晃的? 下次不能喝、喝這麼多了…… Hello World! - + 好的! 版本已更新 已更新: - + MAA 正在執行任務 確定要退出嗎? - + 關卡數據獲取成功 遊戲資源正在更新 遊戲資源已更新,請重啟 MAA - + 遠程控制 設備標識符(唯讀) @@ -703,17 +705,17 @@ 注意:隨意輸入未知來源的地址可能會導致您的明日方舟帳戶受到損失。 了解如何開發相關功能,可以訪問 遠程控制功能開發者文檔 - + 博士,有新的通知哦! 您會收到此郵件,是因為您在 MAA 中設置了 SMTP 伺服器並開啟了郵件通知服務。 此郵件為系統自動發送,請勿回復。 官網 作業站 - + 公告 查看公告 不再提示此公告 - + diff --git a/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml b/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml index 35f63c5ed1..bc0f8ab6eb 100644 --- a/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml +++ b/src/MaaWpfGui/Views/UserControl/FightSettingsUserControl.xaml @@ -187,9 +187,7 @@ TextWrapping="Wrap" /> - + - + + TextWrapping="Wrap" + Visibility="{c:Binding EnablePenguin}" /> + Text="{Binding PenguinId}" + Visibility="{c:Binding EnablePenguin}" /> From 51a9abfc4fb8088d2f27d26f88abf796a88e0760 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:28:18 +0800 Subject: [PATCH 10/12] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E6=97=B6=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp index 0927f1bd15..42c28d1e7c 100644 --- a/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp +++ b/src/MaaCore/Task/Fight/StageDropsTaskPlugin.cpp @@ -97,15 +97,28 @@ bool asst::StageDropsTaskPlugin::_run() stop_task(); } - if (m_enable_penguin && !m_is_annihilation) { + if (m_is_annihilation) { + Log.info(__FUNCTION__, "Annihilation is not supported by PenguinStats"); + Log.info(__FUNCTION__, "Annihilation is not supported by Yituliu"); + return true; + } + + if (m_enable_penguin) { if (!upload_to_penguin()) { + Log.error(__FUNCTION__, "upload_to_penguin failed"); save_img(utils::path("debug") / utils::path("drops")); } } + else { + Log.info(__FUNCTION__, "PenguinStats is disabled"); + } - if (m_enable_yituliu && !m_is_annihilation) { + if (m_enable_yituliu) { upload_to_yituliu(); } + else { + Log.info(__FUNCTION__, "Yituliu is disabled"); + } return true; } From 061d98d62660219f0e4a7398bece0f1f6363efbf Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 14 Nov 2023 18:23:45 +0800 Subject: [PATCH 11/12] Update ReportDataTask.cpp --- src/MaaCore/Task/ReportDataTask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MaaCore/Task/ReportDataTask.cpp b/src/MaaCore/Task/ReportDataTask.cpp index 8632ee5ac4..70c841b20a 100644 --- a/src/MaaCore/Task/ReportDataTask.cpp +++ b/src/MaaCore/Task/ReportDataTask.cpp @@ -155,13 +155,13 @@ void asst::ReportDataTask::report_to_yituliu(ReportType reportType) LogTraceFunction; constexpr std::string_view yituliu_subtask_name = "ReportToYituliu"; - const std::string* url_ptr = nullptr; + std::string url; switch (reportType) { case ReportType::YituliuBigDataAutoRecruit: - url_ptr = &Config.get_options().yituliu_report.recruit_url; + url = Config.get_options().yituliu_report.recruit_url; break; case ReportType::YituliuBigDataStageDrops: - url_ptr = &Config.get_options().yituliu_report.drop_url; + url = Config.get_options().yituliu_report.drop_url; break; default: return; @@ -177,7 +177,7 @@ void asst::ReportDataTask::report_to_yituliu(ReportType reportType) headers.emplace(field); } - report(yituliu_subtask_name, *url_ptr, headers, timeout); + report(yituliu_subtask_name, url, headers, timeout); } cpr::Response asst::ReportDataTask::report(std::string_view subtask, const std::string& url, const cpr::Header& headers, From e752e03bda481ee6f5a0ed53c38cc43168d6e03b Mon Sep 17 00:00:00 2001 From: ChingCdesu Date: Tue, 14 Nov 2023 18:42:55 +0800 Subject: [PATCH 12/12] style: comment align of localizations --- src/MaaWpfGui/Res/Localizations/en-us.xaml | 50 +++++++++++----------- src/MaaWpfGui/Res/Localizations/ja-jp.xaml | 48 ++++++++++----------- src/MaaWpfGui/Res/Localizations/ko-kr.xaml | 48 ++++++++++----------- src/MaaWpfGui/Res/Localizations/zh-cn.xaml | 50 +++++++++++----------- src/MaaWpfGui/Res/Localizations/zh-tw.xaml | 50 +++++++++++----------- 5 files changed, 123 insertions(+), 123 deletions(-) diff --git a/src/MaaWpfGui/Res/Localizations/en-us.xaml b/src/MaaWpfGui/Res/Localizations/en-us.xaml index 9777f19bd8..47a68122d2 100644 --- a/src/MaaWpfGui/Res/Localizations/en-us.xaml +++ b/src/MaaWpfGui/Res/Localizations/en-us.xaml @@ -5,7 +5,7 @@ MAA is about to be upgraded, and the upgraded version does not support PCs that do not have the .NET 8.0 runtime installed, so you need to manually download and install it. \n\nAt the same time, we will no longer support Windows 7. \n\nIf you click 'Yes', we will open the .NET 8 runtime download link for you. If you click 'No', we will disable your automatic download feature to prevent unwanted software updates. If you choose to disable automatic downloads, you can still manually re-enable this feature in the software settings. Software Version Upgrade and Support Changes - + Settings General @@ -56,7 +56,7 @@ ↓Often Used Sometimes Used↑ ← Start Tasks - + Dormitory Factory Workshop @@ -307,7 +307,7 @@ Other client types are not supported Try restarting the emulator after 20 failed reconnect attempts, must be checked when using a background timed task and setting the task to close the emulator when finished Attempt to restart ADB Server after connection failure Attempt to kill and restart ADB process after connection failure - + Farming Login @@ -388,7 +388,7 @@ Other client types are not supported PR-D (Grd/Spc Chip) It's Monday: time to clear the Annihilation It's Sunday: don't forget about Annihilation - + Connecting to emulator…… Unselected task @@ -407,8 +407,8 @@ Other client types are not supported Task(s) completed, about to hibernate Unknown ending action Annihilation task failed, will try to use alternate stage, some combat settings will not be effective - - + + Toolbox Recruitment @@ -421,7 +421,7 @@ Other client types are not supported Auto select 5★ Tags Auto select 6★ Tags Begin to Recruit - + Depot This function is still in testing. If you encounter any unexpected results, please zip the 「debug/depot」 folder in the installation path and submit an issue on GitHub @@ -429,21 +429,21 @@ Other client types are not supported Export to Arkplanner Export to Lolicon Copied to Clipboard - + Operator This function is still in testing. If you encounter any unexpected results, please zip the 「debug/oper」 folder in the installation path and submit an issue on GitHub Not owned: {0}\n\n{1}\n\nOwned: {2}\n\n{3} Start to Identify Copy to Clipboard - + Video Start to identify Open Directory For video recognition, please open the 「Copilot」 tab and drag the strategy video into it. The video aspect ratio needs to be 16:9 without interference factors such as black borders, emulator borders, special shapes and screen corrections. - + Gacha Gacha Once @@ -470,11 +470,11 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla REAL GACHA! Got it Don't show again - + Identifying…… Identification completed - + Copilot Task file / URL @@ -522,8 +522,8 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Copilot Json Error! Malformed file! Malformed Copilot Json! - - + + Error MAA has encountered an error @@ -535,7 +535,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Create a GitHub issue Join QQ Group Copy error message - + The resource is damaged, please download the full package again ADB File NOT existing @@ -640,11 +640,11 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Trying to restart the ADB Server Trying to kill and restart the ADB process Please check your connection settings or try restarting the emulator and ADB, or restart your computer - + Force display of MAA Exit - + MAA Website Source code: GitHub @@ -656,7 +656,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Telegram FAQ Issue - + Auto refresh 3★ Tags Continue trying to refresh Tags without recruitment permit @@ -671,23 +671,23 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Auto confirm 5★ Auto confirm 6★ If checked when 1★ tags are identified, will skip the recruitment. If not checked when 1★ tags are identified, they will be ignored. - + Dear Doctor, ever heard of the new listings of 「liquor」 in Ms. Closure's store? Let's check it out? Ugh…… Ehem Ah, doctor, why do you sway so much in your movement today? I won't drink so much next time…… Hello World! - + OK! Version Updated Version: - + MAA is running tasks Are you sure want to exit? - + Stage data retrieval successful Game resources are being updated. @@ -713,17 +713,17 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Caution: Entering addresses from unknown sources may result in the loss of your Arknights account. To learn more about how to develop these features, visit Remote Control Feature Developer Documentation - + You receive this message because you have set up an SMTP server in MAA and have the email notification service turned on. This email is sent automatically, please do not reply. Official website MAA Copilot (Chinese) Doctor, there's a new notification! - + Announcement View Announcement Do not show this announcement again - + diff --git a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml index 39fdd466a0..160b233b3e 100644 --- a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml +++ b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml @@ -5,7 +5,7 @@ アップグレード版は、.NET 8.0ランタイムがインストールされていないコンピュータをサポートしないため、手動でダウンロードする必要があります。 \n\nその間に、Windows 7オペレーティングシステムはサポートされなくなります。 \n\n「はい」をクリックすると、新しいランタイムのダウンロード・リンクを開きます。 「いいえ」をクリックすると、不要なソフトウェア更新を防ぐために自動ダウンロードを無効にします。 自動ダウンロードを無効にした場合でも、ソフトウェア設定でこの機能を手動で再度有効にすることができます。 ソフトウェアバージョンのアップグレードとサポートの変更 - + 設定 一般設定 @@ -56,7 +56,7 @@ ↓よく使われる あまり使われていない↑ ← タスクを開始 - + 宿舎 製造所 処理ステーション @@ -307,7 +307,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 再接続に20回失敗した後、エミュレータを再起動してみてください,バックグラウンドのタイムドタスクを使用し、終了時にエミュレータを終了させるタスクを設定する場合は、必ずチェックを入れること 接続失敗後にADBサーバーの再起動を試みる 接続失敗後にADBプロセスの再起動を試みる - + スタート ウェイクアップ @@ -388,7 +388,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント PR-D(前衛/特殊SoC) 月曜です。殲滅作戦がリセットされています〜 日曜です。殲滅作戦は忘れてないですか〜 - + エミュレータ接続中…… タスクが選択されていません @@ -407,8 +407,8 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 完了しました。休止状態にしようとしています 未知の終了動作 殲滅戦に失敗、代替ステージを使用しますが、一部の戦闘設定が有効ではありません - - + + ツールボックス 公開求人認識 @@ -421,7 +421,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 星5タグを自動的に選択する 星6タグを自動的に選択する 認識開始 - + 倉庫アイテム認識 この機能はまだテスト版です。エラーが発生/統計情報に問題があれば、debug/depotフォルダを圧縮し、issueを提出してください~ @@ -429,14 +429,14 @@ Bilibili: ログイン インターフェイスに表示されるアカウント Arkplannerへ出力 Loliconへ出力 クリップボードへコピー - + オペレーター この機能はまだテスト中です。もし統計情報に問題があれば、debug/depotフォルダを圧縮し、issueを提出してください~ 所有していない: {0} : \n\n{1}\n\n所有している: {2} : \n\n{3} 認識開始 クリップボードにコピー - + 映像 認識を始める @@ -470,11 +470,11 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 本物のガチャです 理解した 再度表示しない - + 認識中…… 認識完了 - + 自動戦闘 攻略ファイルパス/ミステリーコード @@ -522,8 +522,8 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 攻略ファイルの解析中にエラーが発生しました! 攻略ファイルではありません ファイルの内容を確認してください! - - + + エラー MAA に問題が発生しました @@ -535,7 +535,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント GitHub issueを作成する QQグループに参加して問題をフィードバックする エラー情報をコピーする - + リソースファイルが破損しています。完全なパッケージを再度ダウンロードしてください ADBファイルが存在しません @@ -640,11 +640,11 @@ Bilibili: ログイン インターフェイスに表示されるアカウント ADBサーバーの再起動を試みています ADBプロセスの再起動を試みています 接続設定を確認するか、エミュレータとADBを再起動するか、コンピューターを再起動してください - + MAAの強制表示 終了 - + MAA公式サイト ソースコード: GitHub @@ -656,7 +656,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント Telegram よくある質問 フィードバック - + 星3タグを自動的に更新する 採用許可なしでタグの更新を続けます @@ -671,23 +671,23 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 星5を自動的に確認する 星6を自動的に確認する チェックの際に星1タグが特定された場合、募集はスキップされ、チェックされていない場合、星1タグは無視されます。 - + 尊敬なるドクター、クロージャ様のお店で「酒」の新しいリストがあると聞いたことがありませんか?一緒に確認しませんか? うぅ……オエッ あれ、ドクター。どうしてそんなフラフラと歩いておられるのですか? つ、次は飲みすぎないようにしないと…… Hello World! - + OK! バージョンが更新されました バージョン: - + MAAがタスクを実行しています 終了しますか? - + ステージデータの取得に成功しました ゲームリソースが更新中です。 @@ -713,17 +713,17 @@ Bilibili: ログイン インターフェイスに表示されるアカウント 注意:知らない出所のアドレスを入力すると、あなたの明日方舟のアカウントが損失する可能性があります。 関連機能の開発方法については、訪問してください リモートコントロール機能開発者ドキュメント - + ドクター、新しいお知らせがあります! このメッセージが表示されるのは、MAA で SMTP サーバーをセットアップし、メール通知サービスを有効にしているためです。 このメールは自動的に送信されますので、返信しないでください。 公式サイト Copilot(中国語) - + 公告 公告を見ます このお知らせをもう表示しない - + diff --git a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml index bca86b64d2..adf44a3cd1 100644 --- a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml +++ b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml @@ -5,7 +5,7 @@ MAA가 곧 업그레이드될 예정입니다. 업그레이드된 버전은 .NET 8.0 런타임이 설치되지 않은 컴퓨터는 지원되지 않으므로 수동으로 다운로드해야 합니다.\n\nWindows 7 운영체제 또한 더 이상 지원되지 않을 것입니다.\n\n'예'를 클릭하면 새로운 런타임 다운로드 링크가 열립니다. '아니요'를 클릭하면 원치 않는 소프트웨어 업데이트를 방지하기 위해 자동 다운로드가 비활성화됩니다. 자동 다운로드를 비활성화하더라도 소프트웨어 설정에서 수동으로 다시 기능을 활성화할 수 있습니다. 소프트웨어 버전 업그레이드 및 지원 변경 사항 - + 설정 일반 설정 @@ -56,7 +56,7 @@ ↓자주 쓰는 설정 가끔 쓰는 설정↑ ← 연결 및 동작 시작 - + 숙소 제조소 처리 스테이션 @@ -307,7 +307,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 재연결을 20회 시도해도 실패하면 에뮬레이터를 다시 시작합니다. 백그라운드 예약을 사용하고 작업이 완료되면 에뮬레이터가 종료되도록 설정하려면 반드시 선택해야 합니다 연결 실패 후 ADB 서버 재시작 시도 연결 실패 후 ADB 프로세스 재시작 시도 - + 시작 로그인 @@ -388,7 +388,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) PR-D (가드/스페셜리스트 칩) 월요일입니다. 섬멸 작전을 잊지 마세요~ 일요일입니다. 섬멸 작전을 잊지 마세요~ - + 에뮬레이터에 연결 중…… 선택된 작업이 없습니다 @@ -407,8 +407,8 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 작업을 완료했습니다. 곧 절전 모드에 진입합니다 알 수 없는 종료 동작 섬멸 작전에 실패하여 대체 스테이지를 진행합니다. 일부 전투 설정이 무시될 수 있습니다 - - + + 툴박스 공개모집 태그 인식 @@ -421,7 +421,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ★5 태그를 자동 선택 ★6 태그를 자동 선택 인식 시작 - + 창고 정리 이 기능은 현재 테스트 중입니다. 내보내기 전 인식 결과가 맞는지 확인 후에 사용해 주세요. 만약 오류가 있다면 MAA 경로 내 debug 폴더 안의 depot 폴더 전체를 압축해서 Github의 issue로 올려주세요 @@ -429,14 +429,14 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) Arkplanner로 내보내기 Lolicon으로 내보내기 클립보드에 복사됨 - + 오퍼레이터 식별 이 기능은 현재 테스트 중입니다. 만약 오류가 있다면 MAA 경로 내 debug 폴더 안의 oper 폴더 전체를 압축해서 Github의 issue로 올려주세요~ 미소유: {0}\n목록:\n\n{1}\n소유: {2}\n목록:\n\n{3} 식별 시작 클립보드에 복사 - + 영상 인식 식별 시작 @@ -470,11 +470,11 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 실제 뽑기입니다 확인 다시 보지 않기 - + 식별 중…… 식별 완료 - + 자동 지휘 작업 파일 경로/코드 @@ -522,8 +522,8 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 전략 파일 분석 중 오류가 발생했습니다! 전략 파일이 아닙니다 파일 내용을 확인해주세요! - - + + 오류 MAA에서 오류가 발생했습니다 @@ -535,7 +535,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) GitHub에 issue 생성 QQ 그룹 가입 오류 메시지 복사 - + 리소스가 손상되었습니다. 전체 패키지를 다시 다운로드하세요 ADB 파일이 존재하지 않습니다 @@ -640,11 +640,11 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ADB 서버 재시작을 시도 중입니다 ADB 프로세스 재시작을 시도 중입니다 연결 설정을 확인하거나 에뮬레이터와 ADB를 다시 시작하거나 컴퓨터를 재시작해주세요 - + MAA 강제 표시 종료 - + MAA 공식 웹사이트 소스 코드: GitHub @@ -656,7 +656,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) Telegram 자주 묻는 질문 이슈 - + ★3 태그를 자동 새로고침하기 채용 허가 없이 계속 태그 새로고침 시도 @@ -671,23 +671,23 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) ★5 자동 모집 ★6 자동 모집 체크 시, ★1 태그를 인식할 때 이번 모집을 건너뜁니다. 체크하지 않으면 ★1 태그를 무시합니다. - + 의사님, Ms. Closure의 가게에서 「술」의 새로운 상품 목록을 들어보셨나요? 함께 확인해 볼까요? 으…… 우웁 어머, 박사님. 왜 그렇게 비틀비틀 걷고 계시나요? 다, 다음엔 적당히 마셔야지…… Hello World! - + 좋아요! 업데이트 완료 버전: - + MAA가 작업을 진행 중입니다 정말로 종료하시겠습니까? - + 스테이지 데이터 획득 성공 게임 자원이 업데이트 중입니다. @@ -713,17 +713,17 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산) 주의: 알려지지 않은 출처의 주소를 입력하면 당신의 아크나이츠 계정에 손실이 발생할 수 있습니다. 관련 기능을 개발하는 방법을 알고 싶다면, 방문하세요 원격 제어 기능 개발자 문서 - + 박사님, 새로운 발표가 있습니다! MAA에서 SMTP 서버를 설정하고 메일 알림 서비스가 켜져 있기 때문에 이 메시지가 표시됩니다. 이 이메일은 자동으로 전송되므로 회신하지 마십시오. 공식 홈페이지 워크 스테이션 - + 공고패 공고패 이 공지를 더 이상 표시하지 않음 - + diff --git a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml index 294bd1892a..ef712bdca4 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml @@ -5,7 +5,7 @@ MAA 即将升级,升级后的版本不支持未安装 .NET 8.0 运行时 的电脑,需要您手动前往下载。\n\n同时,我们将不再支持 Windows 7 操作系统。\n\n如果您点击 '是',我们将为您打开新的运行时下载链接。如果您点击 '否',我们将禁用您的自动下载功能,以防止不必要的软件更新。如果您选择禁用自动下载,您仍然可以在软件设置中手动重新启用此功能。 软件版本升级及支持变更 - + 设置 常规设置 @@ -56,7 +56,7 @@ ↓常用的 不常用的↑ ← 开始任务 - + 宿舍 制造站 加工站 @@ -307,7 +307,7 @@ 重连失败 20 次后尝试重启模拟器,使用后台定时任务且设置任务完成关闭模拟器时请勾选 连接失败后尝试重启 ADB Server 连接失败后尝试关闭并重启 ADB 进程 - + 一键长草 开始唤醒 @@ -388,7 +388,7 @@ PR-D(近/特芯片) 周一了,可以打剿灭了~ 周日了,记得打剿灭哦~ - + 正在连接模拟器…… 未选择任务 @@ -407,8 +407,8 @@ 已刷完,即将休眠 未知的结束动作 剿灭任务失败,将尝试使用剩余备选关卡,部分战斗设置将不生效 - - + + 小工具 公招识别 @@ -421,7 +421,7 @@ 自动选择 5 星 Tags 自动选择 6 星 Tags 开始识别 - + 仓库识别 该功能尚处于测试阶段,请检查结果是否准确再行使用。若有误,欢迎打包 debug/depot 文件夹后向我们提交 issue ~ @@ -429,21 +429,21 @@ 导出至企鹅物流刷图规划 导出至明日方舟工具箱 已复制到剪切板 - + 干员识别 该功能尚处于测试阶段,若统计有误,欢迎打包 debug/oper 文件后向我们提交issue ~ 未拥有: {0} 名: \n\n{1}\n\n已拥有: {2} 名: \n\n{3} 开始识别 复制到剪切板 - + 视频识别 开始识别 打开文件夹 请打开「自动战斗」页,将攻略视频文件拖入后开始即可。 需要视频分辨率为 16:9,且无黑边、模拟器边框、异形屏矫正等干扰因素。 - + 牛牛抽卡 寻访一次 @@ -470,11 +470,11 @@ 真正的抽卡 知道了 下次不再提示 - + 正在识别…… 识别完成 - + 自动战斗 作业路径/神秘代码 @@ -522,8 +522,8 @@ 解析作业文件错误! 非作业文件 请检查文件内容! - - + + 错误 MAA 遇到了问题 @@ -535,7 +535,7 @@ 创建 GitHub issue 加入QQ群反馈问题 复制错误信息 - + 资源损坏,请重新下载完整安装包 ADB 路径不存在 @@ -640,11 +640,11 @@ 正在尝试重启 ADB Server 正在尝试关闭并重启 ADB 进程 请检查连接设置或尝试重启模拟器与 ADB 或重启电脑 - + 强制显示MAA 退出 - + MAA 官网 源码: GitHub @@ -656,7 +656,7 @@ Telegram 常见问题 问题反馈 - + 自动刷新 3 星 Tags 无招聘许可时继续尝试刷新 Tags @@ -671,23 +671,23 @@ 自动确认 5 星 自动确认 6 星 勾选时识别到 1 星词条时跳过该次招募,未勾选时将忽略 1 星词条。 - + 博士,欢迎加入这盛大的鱼人庆典!听说可露希尔小姐的商店里新上架了美酒,要去来一杯吗? 呃……咳嗯 呀,博士。你今天走起路来,怎么看着摇摇晃晃的? 下次不能喝、喝这么多了…… Hello World! - + 好的! 版本已更新 已更新: - + MAA 正在运行任务 确定要退出吗? - + 关卡数据获取成功 游戏资源正在更新 @@ -713,17 +713,17 @@ 注意:随意填入未知来源的地址可能会导致您的明日方舟账户受到损失。 了解如何开发相关功能,可以访问 远程控制功能开发者文档 - + 博士,有新的通知哦! 您会收到此邮件,是因为您在 MAA 中设置了 SMTP 服务器并开启了邮件通知服务。 此邮件为系统自动发送,请勿回复。 官网 作业站 - + 公告 查看公告 不再提示此公告 - + diff --git a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml index 9b0e47b00f..58d27739bc 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml @@ -5,7 +5,7 @@ MAA 即將升級,升級後的版本不支援未安裝 .NET 8.0 執行時 的電腦,需要您手動前往下載。\n\n同時,我們將不再支援 Windows 7 作業系統。\n\n如果您點擊 '是',我們將為您打開新的執行時下載連結。如果您點擊 '否',我們將停用您的自動下載功能,以防止不必要的軟體更新。如果您選擇停用自動下載,您仍然可以在軟體設定中手動重新開啟此功能。 軟體版本升級及支援變更 - + 設定 常規設定 @@ -56,7 +56,7 @@ ↓常用的 不常用的↑ ← 開始任務 - + 宿舍 製造站 加工站 @@ -307,7 +307,7 @@ 重連失敗 20 次後嘗試重開模擬器,使用後台定時任務且設定任務完成關閉模擬器時必須勾選 連接失敗後嘗試重開 ADB 伺服器 連接失敗後嘗試重開 ADB 程式 - + 一鍵長草 開始喚醒 @@ -388,7 +388,7 @@ PR-D(近/特晶片) 週一了,可以打剿滅了 ~ 週日了,記得打剿滅喔 ~ - + 正在連接模擬器…… 未選擇任務 @@ -407,8 +407,8 @@ 已刷完,即將休眠 未知的結束動作 剿滅任務失敗,將嘗試使用剩餘備選關卡,部分戰鬥設定將不生效 - - + + 小工具 公招辨識 @@ -421,7 +421,7 @@ 自動選擇 5 星 Tags 自動選擇 6 星 Tags 開始辨識 - + 倉庫辨識 該功能尚處於測試階段,請檢查結果是否準確再行使用。若有誤,歡迎打包 debug/depot 文件夾後向我們提交 issue ~ @@ -429,21 +429,21 @@ 匯出到企鵝物流刷圖規劃 匯出到明日方舟工具箱 已複製到剪貼簿 - + 幹員辨識 該功能尚處於測試階段,若統計有誤,歡迎打包 debug/oper 文件後向我們提交 issue ~ 未擁有: {0} 名: \n\n{1}\n\n已擁有: {2} 名: \n\n{3} 開始辨識 複製到剪貼簿 - + 影片辨識 開始辨識 打開資料夾 請打開「自動戰鬥」頁,將攻略影片文件拖入後開始即可。 需要影片分辨率為 16:9,且無黑邊、模擬器邊框、異形屏矯正等干擾因素。 - + 牛牛抽卡 尋訪一次 @@ -470,11 +470,11 @@ 真正的抽卡 知道了 下次不再提示 - + 正在辨識…… 辨識完成 - + 自動戰鬥 作業路徑 / 神秘代碼 @@ -522,8 +522,8 @@ 解析作業檔案錯誤! 非作業檔案 請檢查檔案內容! - - + + 錯誤 MAA 遇到了問題 @@ -535,7 +535,7 @@ 建立 GitHub issue 加入 QQ 群反應問題 複製錯誤資訊 - + 檔案損毀,請重新下載完整安裝檔 ADB 路徑不存在 @@ -640,11 +640,11 @@ 正在嘗試重開 ADB 伺服器 正在嘗試重開 ADB 程式 請檢查連接設定、嘗試重開模擬器與 ADB 或重開電腦 - + 強制顯示 MAA 退出 - + MAA 官網 原始碼: GitHub @@ -656,7 +656,7 @@ Telegram 常見問題 問題回饋 - + 自動刷新 3 星 Tags 無招募許可時繼續嘗試刷新 Tags @@ -671,23 +671,23 @@ 自動確認 5 星 自動確認 6 星 勾選時辨識到 1 星詞條時跳過該次招募,未勾選時將忽略 1 星詞條。 - + 博士,歡迎加入這盛大的魚人慶典!聽說可露希爾小姐的商店裡新上架了美酒,要去來一杯嗎? 呃……咳嗯 呀,博士。你今天走起路來,怎麼看著搖搖晃晃的? 下次不能喝、喝這麼多了…… Hello World! - + 好的! 版本已更新 已更新: - + MAA 正在執行任務 確定要退出嗎? - + 關卡數據獲取成功 遊戲資源正在更新。 @@ -713,17 +713,17 @@ 注意:隨意輸入未知來源的地址可能會導致您的明日方舟帳戶受到損失。 了解如何開發相關功能,可以訪問 遠程控制功能開發者文檔 - + 博士,有新的通知哦! 您會收到此郵件,是因為您在 MAA 中設置了 SMTP 伺服器並開啟了郵件通知服務。 此郵件為系統自動發送,請勿回復。 官網 作業站 - + 公告 查看公告 不再提示此公告 - +