From 4dc4e57082c30f971b2098b966d3cb3af9c1ff07 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sun, 27 Jul 2025 10:50:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=89=BF=E7=81=AD=E5=85=B3=E5=8D=A1=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Constants/ConfigurationKeys.cs | 3 +- src/MaaWpfGui/Res/Localizations/en-us.xaml | 2 + src/MaaWpfGui/Res/Localizations/ja-jp.xaml | 2 + src/MaaWpfGui/Res/Localizations/ko-kr.xaml | 2 + src/MaaWpfGui/Res/Localizations/zh-cn.xaml | 2 + src/MaaWpfGui/Res/Localizations/zh-tw.xaml | 4 +- .../FightSettingsUserControlModel.cs | 12 +++++ .../TaskQueue/FightSettingsUserControl.xaml | 46 +++++++------------ 8 files changed, 41 insertions(+), 32 deletions(-) diff --git a/src/MaaWpfGui/Constants/ConfigurationKeys.cs b/src/MaaWpfGui/Constants/ConfigurationKeys.cs index 4b34937b4a..93b46db6af 100644 --- a/src/MaaWpfGui/Constants/ConfigurationKeys.cs +++ b/src/MaaWpfGui/Constants/ConfigurationKeys.cs @@ -246,7 +246,8 @@ namespace MaaWpfGui.Constants public const string Stage2 = "MainFunction.Stage2"; public const string Stage3 = "MainFunction.Stage3"; public const string Stage4 = "MainFunction.Stage4"; - public const string AnnihilationStage = "MainFunction.AnnihilationStage"; + public const string UseCustomAnnihilation = "MainFunction.Annihilation.UseCustom"; + public const string AnnihilationStage = "MainFunction.Annihilation.Stage"; public const string UseMedicine = "MainFunction.UseMedicine"; public const string UseMedicineQuantity = "MainFunction.UseMedicine.Quantity"; public const string UseStone = "MainFunction.UseStone"; diff --git a/src/MaaWpfGui/Res/Localizations/en-us.xaml b/src/MaaWpfGui/Res/Localizations/en-us.xaml index aa82f66ee5..7b31d732de 100644 --- a/src/MaaWpfGui/Res/Localizations/en-us.xaml +++ b/src/MaaWpfGui/Res/Localizations/en-us.xaml @@ -647,6 +647,8 @@ Do not adjust the proxy multiplier setting in the game Pio/Sup Ⅱ Grd/Spc Ⅰ Grd/Spc Ⅱ + Annihilation Stage + Custom {key=AnnihilationStage} Annihilation Mode Annihilation Chernobog diff --git a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml index b7e57a797e..bdacb8fb8a 100644 --- a/src/MaaWpfGui/Res/Localizations/ja-jp.xaml +++ b/src/MaaWpfGui/Res/Localizations/ja-jp.xaml @@ -648,6 +648,8 @@ C:\\leidian\\LDPlayer9 先鋒/補助SoC・中 前衛/特殊SoC・初 前衛/特殊SoC・中 + 殲滅ステージ + カスタム{key=AnnihilationStage} 殲滅作戦 今期の殲滅作戦 チェルノボーグ diff --git a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml index ad68a1ba53..9f58503dd9 100644 --- a/src/MaaWpfGui/Res/Localizations/ko-kr.xaml +++ b/src/MaaWpfGui/Res/Localizations/ko-kr.xaml @@ -648,6 +648,8 @@ C:\\leidian\\LDPlayer9 PR-D-1 (가드/스페셜리스트) PR-D-2 (가드/스페셜리스트) 섬멸 작전 + 섬멸 작전 + 사용자 지정 {key=AnnihilationStage} 섬멸 모드 체르노보그 용문 외곽 diff --git a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml index e178fd286e..03e69d9175 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-cn.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-cn.xaml @@ -647,6 +647,8 @@ C:\\leidian\\LDPlayer9。\n 先/辅芯片组 近/特芯片 近/特芯片组 + 剿灭关卡 + 自定义{key=AnnihilationStage} 剿灭模式 当期剿灭 切尔诺伯格 diff --git a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml index 5cfc055252..8db12d6946 100644 --- a/src/MaaWpfGui/Res/Localizations/zh-tw.xaml +++ b/src/MaaWpfGui/Res/Localizations/zh-tw.xaml @@ -645,9 +645,11 @@ C:\\leidian\\LDPlayer9。\n 先/輔晶片組 近/特晶片 近/特晶片組 + 殲滅關卡 + 自訂{key=AnnihilationStage} 剿滅模式 當期剿滅 - 切爾諾伯格 + 切爾諾伯格 龍門外環 龍門市區 今日關卡小提示: diff --git a/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs index 7ae5fb1000..e4a9a3b7d2 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs @@ -715,6 +715,18 @@ public class FightSettingsUserControlModel : TaskViewModel { LocalizationHelper.GetString("LungmenDowntown"), "LungmenDowntown@AnnihilationReturn@Annihilation" }, }; + private bool _useCustomAnnihilation = ConfigurationHelper.GetValue(ConfigurationKeys.UseCustomAnnihilation, false); + + public bool UseCustomAnnihilation + { + get => _useCustomAnnihilation; + set + { + SetAndNotify(ref _useCustomAnnihilation, value); + ConfigurationHelper.SetValue(ConfigurationKeys.UseCustomAnnihilation, value.ToString()); + } + } + private string _annihilationStage = ConfigurationHelper.GetValue(ConfigurationKeys.AnnihilationStage, "Annihilation"); public string AnnihilationStage diff --git a/src/MaaWpfGui/Views/UserControl/TaskQueue/FightSettingsUserControl.xaml b/src/MaaWpfGui/Views/UserControl/TaskQueue/FightSettingsUserControl.xaml index c03c6b993f..aa9ef64630 100644 --- a/src/MaaWpfGui/Views/UserControl/TaskQueue/FightSettingsUserControl.xaml +++ b/src/MaaWpfGui/Views/UserControl/TaskQueue/FightSettingsUserControl.xaml @@ -414,36 +414,22 @@ - - - - - - - - - - - - - - + + + + +