mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
tools/installer: hide expansion options unless enabled
This commit is contained in:
parent
365cff79c1
commit
6142621274
1 changed files with 17 additions and 5 deletions
|
@ -11,7 +11,17 @@
|
|||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary Source="/TRX_InstallerLib;component/Resources/styles.xaml" />
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/TRX_InstallerLib;component/Resources/styles.xaml" />
|
||||
<ResourceDictionary>
|
||||
<utils:BoolToVisibilityConverter
|
||||
x:Key="BoolToVisibleConverter"
|
||||
FalseValue="Collapsed"
|
||||
TrueValue="Visible" />
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
|
@ -100,10 +110,12 @@
|
|||
<LineBreak />
|
||||
<Run Style="{StaticResource small}" Text="{Binding ViewText[step_settings_expansion_content]}"/>
|
||||
</TextBlock>
|
||||
<RadioButton IsEnabled="{Binding InstallSettings.DownloadExpansionPack}" Style="{StaticResource small}" Margin="0,0,0,6" Content="{Binding ViewText[step_settings_expansion_music]}"
|
||||
IsChecked="{Binding Path=InstallSettings.ExpansionPackType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static models:ExpansionPackType.Music}}"/>
|
||||
<RadioButton IsEnabled="{Binding InstallSettings.DownloadExpansionPack}" Style="{StaticResource small}" Margin="0,0,0,6" Content="{Binding ViewText[step_settings_expansion_vanilla]}"
|
||||
IsChecked="{Binding Path=InstallSettings.ExpansionPackType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static models:ExpansionPackType.Vanilla}}"/>
|
||||
<StackPanel Orientation="Vertical" Visibility="{Binding InstallSettings.AllowExpansionTypeSelection, Converter={StaticResource BoolToVisibleConverter}}">
|
||||
<RadioButton IsEnabled="{Binding InstallSettings.DownloadExpansionPack}" Style="{StaticResource small}" Margin="0,0,0,6" Content="{Binding ViewText[step_settings_expansion_music]}"
|
||||
IsChecked="{Binding Path=InstallSettings.ExpansionPackType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static models:ExpansionPackType.Music}}"/>
|
||||
<RadioButton IsEnabled="{Binding InstallSettings.DownloadExpansionPack}" Style="{StaticResource small}" Margin="0,0,0,6" Content="{Binding ViewText[step_settings_expansion_vanilla]}"
|
||||
IsChecked="{Binding Path=InstallSettings.ExpansionPackType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static models:ExpansionPackType.Vanilla}}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</CheckBox>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue