更好买储存驻留开关

This commit is contained in:
ZouJin 2023-08-17 02:49:10 +10:00
parent a1134aa575
commit e5928bd4cc
3 changed files with 9 additions and 1 deletions

View File

@ -171,6 +171,9 @@
<Compile Include="WinDesign\winReport.xaml.cs">
<DependentUpon>winReport.xaml</DependentUpon>
</Compile>
<Compile Include="WinDesign\winTrusteeShip.xaml.cs">
<DependentUpon>winTrusteeShip.xaml</DependentUpon>
</Compile>
<Page Include="PetHelper.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@ -224,6 +227,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="WinDesign\winTrusteeShip.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup Condition="'$(Platform)' == 'x86'">
<Reference Include="Facepunch.Steamworks.Win32, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

View File

@ -58,7 +58,7 @@
Background="Transparent" ToggleShadowColor="{x:Null}" IsChecked="{Binding StateOpen}"
CheckedToggleBrush="{DynamicResource DARKPrimaryText}"
ToggleBrush="{DynamicResource PrimaryDark}" pu:WindowX.IsDragMoveArea="False" BoxWidth="30"
Loaded="Switch_Loaded" Checked="Switch_Checked" Unchecked="Switch_Checked" />
Loaded="Switch_Loaded" />
</Grid>
</DataTemplate>
</pu:WindowXCaption.HeaderTemplate>

View File

@ -339,6 +339,7 @@ namespace VPet_Simulator.Windows
{
_puswitch = sender as Switch;
_puswitch.IsChecked = mw.Set["betterbuy"].GetBool("noautoclose");
_puswitch.Click += Switch_Checked;
}
private void Switch_Checked(object sender, RoutedEventArgs e)