mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
perf: wpf剿灭关卡选择
This commit is contained in:
@@ -715,15 +715,15 @@ public class FightSettingsUserControlModel : TaskViewModel
|
||||
{ LocalizationHelper.GetString("LungmenDowntown"), "LungmenDowntown@AnnihilationReturn@Annihilation" },
|
||||
};
|
||||
|
||||
private string _annihilationMode = ConfigurationHelper.GetValue(ConfigurationKeys.Annihilation, "Annihilation");
|
||||
private string _annihilationStage = ConfigurationHelper.GetValue(ConfigurationKeys.AnnihilationStage, "Annihilation");
|
||||
|
||||
public string AnnihilationMode
|
||||
public string AnnihilationStage
|
||||
{
|
||||
get => _annihilationMode;
|
||||
get => _annihilationStage;
|
||||
set
|
||||
{
|
||||
SetAndNotify(ref _annihilationMode, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.Annihilation, value);
|
||||
SetAndNotify(ref _annihilationStage, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.AnnihilationStage, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -887,6 +887,11 @@ public class FightSettingsUserControlModel : TaskViewModel
|
||||
ClientType = SettingsViewModel.GameSettings.ClientType,
|
||||
};
|
||||
|
||||
if (Stage == "Annihilation")
|
||||
{
|
||||
task.Stage = AnnihilationStage;
|
||||
}
|
||||
|
||||
if (IsSpecifiedDrops && !string.IsNullOrEmpty(DropsItemId))
|
||||
{
|
||||
task.Drops.Add(DropsItemId, DropsQuantity);
|
||||
|
||||
Reference in New Issue
Block a user