mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
refactor: 是否显示精二干员开局由binding判断
This commit is contained in:
@@ -1601,9 +1601,6 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
{
|
||||
SetAndNotify(ref _roguelikeMode, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.RoguelikeMode, value);
|
||||
|
||||
// 烧开水模式可选项
|
||||
this.RoguelikeStartWithEliteTwoEnable = MapRoguelikeStartWithEliteTwoEnable(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1689,26 +1686,6 @@ 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)
|
||||
{
|
||||
return mode == "4" ? "Visible" : "Collapsed";
|
||||
}
|
||||
|
||||
private string _roguelikeUseSupportUnit = ConfigurationHelper.GetValue(ConfigurationKeys.RoguelikeUseSupportUnit, false.ToString());
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<CheckBox
|
||||
Margin="0,10"
|
||||
IsChecked="{Binding RoguelikeStartWithEliteTwo}"
|
||||
Visibility="{Binding RoguelikeStartWithEliteTwoEnable}">
|
||||
Visibility="{c:Binding '(RoguelikeMode == "4")'}">
|
||||
<TextBlock
|
||||
Block.TextAlignment="Left"
|
||||
Text="{DynamicResource RoguelikeStartWithEliteTwo}"
|
||||
|
||||
Reference in New Issue
Block a user