feat: 初步支持 生息演算:重启锚点 新手刷代币与科技点策略

This commit is contained in:
uye
2026-05-15 19:42:01 +08:00
parent 416ecca979
commit 155f049cf6
15 changed files with 555 additions and 50 deletions

View File

@@ -17,6 +17,7 @@ using System.Linq;
using MaaWpfGui.Configuration.Single.MaaTask;
using MaaWpfGui.Helper;
using MaaWpfGui.Models.AsstTasks;
using MaaWpfGui.Utilities;
using MaaWpfGui.Utilities.ValueType;
using MaaWpfGui.ViewModels.UI;
using static MaaWpfGui.Main.AsstProxy;
@@ -41,6 +42,7 @@ public class ReclamationSettingsUserControlModel : TaskSettingsViewModel, Reclam
[
new() { Display = $"{LocalizationHelper.GetString("ReclamationThemeFire")} ({LocalizationHelper.GetString("ClosedStage")})", Value = Theme.Fire },
new() { Display = LocalizationHelper.GetString("ReclamationThemeTales"), Value = Theme.Tales },
new() { Display = LocalizationHelper.GetString("ReclamationThemeRelaunchAnchor"), Value = Theme.RelaunchAnchor },
];
/// <summary>
@@ -49,7 +51,16 @@ public class ReclamationSettingsUserControlModel : TaskSettingsViewModel, Reclam
public Theme ReclamationTheme
{
get => GetTaskConfig<ReclamationTask>().Theme;
set => SetTaskConfig<ReclamationTask>(t => t.Theme == value, t => t.Theme = value);
set => SetTaskConfig<ReclamationTask>(
t => t.Theme == value,
t =>
{
t.Theme = value;
if (value == Theme.RelaunchAnchor) {
t.Mode = Mode.NoArchive;
t.ClearStore = false;
}
});
}
/// <summary>
@@ -129,6 +140,23 @@ public class ReclamationSettingsUserControlModel : TaskSettingsViewModel, Reclam
set => SetTaskConfig<ReclamationTask>(t => t.ClearStore == value, t => t.ClearStore = value);
}
/// <summary>
/// Gets the theme-specific tip text.
/// </summary>
[PropertyDependsOn(nameof(ReclamationTheme))]
public string ReclamationTip
{
get
{
var theme = ReclamationTheme;
if (theme == Theme.RelaunchAnchor)
{
return LocalizationHelper.GetString("ReclamationEarlyTipRelaunchAnchor");
}
return LocalizationHelper.GetString("ReclamationEarlyTip");
}
}
public override void RefreshUI(BaseTask baseTask)
{
if (baseTask is ReclamationTask)