mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
feat: 在非烧水模式,取消刷直升按钮 (#6484)
This commit is contained in:
@@ -1587,7 +1587,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
private string _roguelikeMode = ConfigurationHelper.GetValue(ConfigurationKeys.RoguelikeMode, "0");
|
||||
|
||||
/// <summary>
|
||||
/// 策略,往后打 / 刷一层就退
|
||||
/// 策略,往后打 / 刷一层就退 / 烧开水
|
||||
/// </summary>
|
||||
public string RoguelikeMode
|
||||
{
|
||||
@@ -1596,6 +1596,9 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
{
|
||||
SetAndNotify(ref _roguelikeMode, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.RoguelikeMode, value);
|
||||
|
||||
// 烧开水模式可选项
|
||||
this.RoguelikeStartWithEliteTwoEnable = mapRoguelikeStartWithEliteTwoEnable(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1676,6 +1679,31 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
}
|
||||
}
|
||||
|
||||
private string _roguelikeStartWithEliteTwoEnable = mapRoguelikeStartWithEliteTwoEnable(ConfigurationHelper.GetValue(ConfigurationKeys.RoguelikeMode, "0"));
|
||||
|
||||
public string RoguelikeStartWithEliteTwoEnable
|
||||
{
|
||||
get
|
||||
{
|
||||
return _roguelikeStartWithEliteTwoEnable;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
SetAndNotify(ref _roguelikeStartWithEliteTwoEnable, value);
|
||||
}
|
||||
}
|
||||
|
||||
private static string mapRoguelikeStartWithEliteTwoEnable(string mode)
|
||||
{
|
||||
if (mode == "4")
|
||||
{
|
||||
return "Visible";
|
||||
}
|
||||
|
||||
return "Collapsed";
|
||||
}
|
||||
|
||||
private string _roguelikeUseSupportUnit = ConfigurationHelper.GetValue(ConfigurationKeys.RoguelikeUseSupportUnit, false.ToString());
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
Loaded="{s:Action MakeComboBoxSearchable}"
|
||||
Text="{Binding RoguelikeCoreChar}"
|
||||
ToolTip="{DynamicResource StartingCoreCharTip}" />
|
||||
<CheckBox Margin="0,10" IsChecked="{Binding RoguelikeStartWithEliteTwo}">
|
||||
<CheckBox Margin="0,10" IsChecked="{Binding RoguelikeStartWithEliteTwo}" Visibility="{Binding RoguelikeStartWithEliteTwoEnable}">
|
||||
<TextBlock
|
||||
Block.TextAlignment="Left"
|
||||
Text="{DynamicResource RoguelikeStartWithEliteTwo}"
|
||||
|
||||
Reference in New Issue
Block a user