fix: 修复自定义基建不选择”技能“排序的问题

This commit is contained in:
MistEO
2022-09-18 23:44:54 +08:00
parent a7c44b0f95
commit ae005500a7
9 changed files with 66 additions and 24 deletions

View File

@@ -5829,6 +5829,17 @@
"ClueGiveTo1stConfirm"
]
},
"InfrastOperListTabSkillUnClicked": {
"action": "ClickSelf",
"roi": [
818,
0,
128,
115
],
"templThreshold": 0.7,
"rearDelay": 1500
},
"BattleStageName": {
"algorithm": "OcrDetect",
"cache": false,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -152,10 +152,22 @@ void asst::InfrastAbstractTask::await_swipe()
sleep(extra_delay);
}
bool asst::InfrastAbstractTask::swipe_and_select_custom_opers()
bool asst::InfrastAbstractTask::swipe_and_select_custom_opers(bool order_by_skill)
{
LogTraceFunction;
{
json::value cb_info = basic_info_with_what("CustomInfrastRoomOperators");
auto& details = cb_info["details"];
details["names"] = json::array(m_current_room_custom_config.names);
details["candidates"] = json::array(m_current_room_custom_config.candidates);
callback(AsstMsg::SubTaskExtraInfo, cb_info);
}
if (order_by_skill) {
ProcessTask(*this, { "InfrastOperListTabSkillUnClicked", "Stop" }).run();
}
while (true) {
if (need_exit()) {
return false;

View File

@@ -37,7 +37,7 @@ namespace asst
void async_swipe_of_operlist(bool reverse = false);
void await_swipe();
bool is_use_custom_config();
bool swipe_and_select_custom_opers();
bool swipe_and_select_custom_opers(bool order_by_skill = true);
bool select_custom_opers();
virtual bool click_bottom_left_tab(); // 点击进入设施后左下角的tab我也不知道这玩意该叫啥

View File

@@ -47,7 +47,7 @@ bool asst::InfrastDormTask::_run()
click_clear_button();
if (is_use_custom_config()) {
swipe_and_select_custom_opers();
swipe_and_select_custom_opers(false);
}
else {
opers_choose();
@@ -218,4 +218,4 @@ bool asst::InfrastDormTask::opers_choose()
//
// ProcessTask task(*this, { "InfrastDormConfirmButton" });
// return task.run();
// }
// }

View File

@@ -909,6 +909,10 @@ namespace MeoAsstGui
case "UnsupportedLevel":
copilotModel.AddLog(Localization.GetString("UnsupportedLevel"), LogColor.Error);
break;
case "CustomInfrastRoomOperators":
mainModel.AddLog(subTaskDetails["names"].ToString());
break;
}
}

View File

@@ -259,7 +259,7 @@
<!-- Recruitment Recognition -->
<!-- Depot Recognition -->
<system:String x:Key="DepotRecognition">Depot tool alpha</system:String>
<system:String x:Key="DepotRecognition">Depot tool beta</system:String>
<system:String x:Key="DepotRecognitionTip">This function is still a test version, please check if the recognition result is correct before using it. If there is an error, please submit the issue by compressing the debug/depot folder in the working path.</system:String>
<system:String x:Key="BeganToDepotRecognition">Start to identify</system:String>
<system:String x:Key="ExportToArkplanner">Export to Arkplanner</system:String>

View File

@@ -36,7 +36,8 @@
<system:String x:Key="OriginStone">製造所-源石の欠片</system:String>
<system:String x:Key="Chip">製造所-中級SoC</system:String>
<system:String x:Key="DormTrustEnabled">宿舎の空き位置で信頼を上げる</system:String>
<system:String x:Key="DormFilterNotStationedEnabled">作業中のオペレーターを宿舎に移動しない</system:String><!--現状動作不明のため対応次第訳修正-->
<system:String x:Key="DormFilterNotStationedEnabled">作業中のオペレーターを宿舎に移動しない</system:String>
<!--現状動作不明のため対応次第訳修正-->
<system:String x:Key="OriginiumShardAutoReplenishment">源石の欠片は自動で補充する</system:String>
<system:String x:Key="General">一般モード</system:String>
@@ -134,15 +135,18 @@
<system:String x:Key="DrGrandetTip">純正源石使用確認画面で理性が1回復するのを待って、純正源石を使用します</system:String>
<system:String x:Key="SocialPtShop">FP交換</system:String>
<system:String x:Key="HighPriority">優先購入(中国名/セミコロンで区切)</system:String><!--日本語名は未対応?-->
<system:String x:Key="Blacklist">ブラックリスト(中国名/セミコロンで区切)</system:String><!--日本語名は未対応?-->
<system:String x:Key="HighPriority">優先購入(中国名/セミコロンで区切)</system:String>
<!--日本語名は未対応?-->
<system:String x:Key="Blacklist">ブラックリスト(中国名/セミコロンで区切)</system:String>
<!--日本語名は未対応?-->
<system:String x:Key="Drink">飲み物はいかがですか🍷?ドクター</system:String>
<system:String x:Key="DroneUsage">ドローンの使用</system:String>
<system:String x:Key="MinimizeToTray">最小化した際にトレイに表示</system:String>
<system:String x:Key="SystemNotification">重要な通知をポップアップする</system:String>
<system:String x:Key="UseAlternateStage">代替ステージを選択可能にする</system:String><!--現状動作内容不明のため翻訳修正候補-->
<system:String x:Key="UseAlternateStage">代替ステージを選択可能にする</system:String>
<!--現状動作内容不明のため翻訳修正候補-->
<system:String x:Key="HideUnavailableStage">当日開放されないステージを隠す</system:String>
<system:String x:Key="MainViewButtonFeature">スタート画面に表示する便利ボタン</system:String>
<system:String x:Key="CustomStageCode">ステージ名を入力する</system:String>
@@ -183,12 +187,15 @@
<system:String x:Key="ExitMAAAndCloseEmulatorAndHibernate">MAAとエミューレータを終了し、PCをスリープさせる*</system:String>
<system:String x:Key="Shutdown">シャットダウン*</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String><!--分かりやすく動作開始でも良い気はする-->
<system:String x:Key="LinkStart">Link Start!</system:String>
<!--分かりやすく動作開始でも良い気はする-->
<system:String x:Key="Stop">止める</system:String>
<!-- 戦闘設定 -->
<system:String x:Key="UseSanityPotion">理性剤使用数</system:String><!--UIの表示バランス大丈夫-->
<system:String x:Key="UseOriginitePrime">割る源石の数*</system:String><!--UIの表示バランス大丈夫-->
<system:String x:Key="UseSanityPotion">理性剤使用数</system:String>
<!--UIの表示バランス大丈夫-->
<system:String x:Key="UseOriginitePrime">割る源石の数*</system:String>
<!--UIの表示バランス大丈夫-->
<system:String x:Key="PerformBattles">周回数指定*</system:String>
<system:String x:Key="AssignedMaterial">素材を限定</system:String>
<system:String x:Key="Quantity">ドロップ数</system:String>
@@ -199,12 +206,17 @@
<!--<system:String x:Key="CurrentStage">現在ステージ</system:String>
<system:String x:Key="LastBattle">前回ステージ</system:String>-->
<system:String x:Key="DefaultStage">現在/前回</system:String>
<system:String x:Key="ClosedStage">イベント終了</system:String><!--動作不明-->
<system:String x:Key="ClosedStage">イベント終了</system:String>
<!--動作不明-->
<system:String x:Key="1-7">1-7</system:String>
<system:String x:Key="CE-6">龍門幣-6/5(CE-6)</system:String><!--馴染みのあるステージ名での表記-->
<system:String x:Key="AP-5">購買資格証-5(AP-5)</system:String><!--馴染みのあるステージ名での表記-->
<system:String x:Key="CA-5">アーツ学-5(CA-5)</system:String><!--馴染みのあるステージ名での表記-->
<system:String x:Key="LS-6">作戦記録-6/5(LS-6)</system:String><!--馴染みのあるステージ名での表記-->
<system:String x:Key="CE-6">龍門幣-6/5(CE-6)</system:String>
<!--馴染みのあるステージ名での表記-->
<system:String x:Key="AP-5">購買資格証-5(AP-5)</system:String>
<!--馴染みのあるステージ名での表記-->
<system:String x:Key="CA-5">アーツ学-5(CA-5)</system:String>
<!--馴染みのあるステージ名での表記-->
<system:String x:Key="LS-6">作戦記録-6/5(LS-6)</system:String>
<!--馴染みのあるステージ名での表記-->
<system:String x:Key="PR-A-1">医療/重装SoC・初</system:String>
<system:String x:Key="PR-A-2">医療/重装SoC・中</system:String>
@@ -259,7 +271,7 @@
<!-- 公開求人認識 -->
<!-- 倉庫アイテム認識 -->
<system:String x:Key="DepotRecognition">倉庫アイテム認識 Alpha</system:String>
<system:String x:Key="DepotRecognition">倉庫アイテム認識 beta</system:String>
<system:String x:Key="DepotRecognitionTip">この機能はまだテスト版です。倉庫を開いた後、素材のタブを選択してから認識を行い、結果が正しいかどうか確認してください。エラーが発生した場合は、debug/depotフォルダを作業パスに圧縮して、issueを提出してください。</system:String>
<system:String x:Key="BeganToDepotRecognition">認識開始</system:String>
<system:String x:Key="ExportToArkplanner">Arkplannerへ出力</system:String>
@@ -278,12 +290,14 @@
<system:String x:Key="SelectTheFile">ファイル選択</system:String>
<system:String x:Key="SelectTheFileTip">攻略ファイルはマウスで直接ドラッグして取り込むことがきます(o゚v゚)</system:String>
<system:String x:Key="AutoSquad">自動編成</system:String>
<system:String x:Key="AutoSquadTip">自動編成では、一時的に「戦術要員」オペレーターを認識できません</system:String><!--現状動作内容不明のため翻訳修正候補-->
<system:String x:Key="AutoSquadTip">自動編成では、一時的に「戦術要員」オペレーターを認識できません</system:String>
<!--現状動作内容不明のため翻訳修正候補-->
<system:String x:Key="Start">開始</system:String>
<system:String x:Key="CopilotJSONSharing">攻略ファイル・シェアステーション</system:String>
<system:String x:Key="VideoLink">ビデオハイパーリンク</system:String><!--Where use it?-->
<system:String x:Key="VideoLink">ビデオハイパーリンク</system:String>
<!--Where use it?-->
<!-- ログ -->
<system:String x:Key="CopilotTip">ヒント:</system:String>
@@ -322,7 +336,8 @@
<system:String x:Key="AllTasksComplete">すべてのタスクが完了しました!</system:String>
<system:String x:Key="FailedToOpenClient">クライアントを開くのに失敗しました。構成ファイルを確認してください</system:String>
<system:String x:Key="ErrorOccurred">エラー発生</system:String>
<system:String x:Key="HasReturned">戻った</system:String><!--内容不明のため翻訳修正候補-->
<system:String x:Key="HasReturned">戻った</system:String>
<!--内容不明のため翻訳修正候補-->
<system:String x:Key="DropRecognitionError">ドロップ認識エラー</system:String>
<system:String x:Key="GiveUpUploadingPenguins">Penguin-Statsへのアップロードをあきらめました</system:String>
<system:String x:Key="TheEX">ステージ報酬がないため停止します</system:String>
@@ -410,4 +425,4 @@
<system:String x:Key="Hangover">つ、次は飲みすぎないようにしないと……</system:String>
<system:String x:Key="HelloWorld">Hello World!</system:String>
<!-- EasterEggs -->
</ResourceDictionary>
</ResourceDictionary>

View File

@@ -38,7 +38,7 @@
<system:String x:Key="DormTrustEnabled">宿舍空余位置蹭信赖</system:String>
<system:String x:Key="DormFilterNotStationedEnabled">不将已进驻的干员放入宿舍</system:String>
<system:String x:Key="OriginiumShardAutoReplenishment">源石碎片自动补货</system:String>
<system:String x:Key="CustomInfrastEnabled">启用自定义基建配置</system:String>
<system:String x:Key="CustomInfrastEnabled">启用自定义基建配置Alpha</system:String>
<system:String x:Key="CustomInfrastFile">自定义基建配置文件</system:String>
<system:String x:Key="CustomInfrastFileParseFailed">自定义基建配置文件解析错误!</system:String>
<system:String x:Key="CustomInfrastTitle">自定义基建配置:</system:String>
@@ -264,7 +264,7 @@
<!-- 公招识别 -->
<!-- 仓库识别 -->
<system:String x:Key="DepotRecognition">仓库识别 Alpha</system:String>
<system:String x:Key="DepotRecognition">仓库识别 beta</system:String>
<system:String x:Key="DepotRecognitionTip">该功能尚处于测试阶段,请检查结果是否准确再行使用。若有误,欢迎打包 debug/depot 文件夹后向我们提交 issue ~</system:String>
<system:String x:Key="BeganToDepotRecognition">开始识别</system:String>
<system:String x:Key="ExportToArkplanner">导出至企鹅物流刷图规划</system:String>