Changing properties now only works in compiler mode

This commit is contained in:
erri120 2019-10-07 15:53:51 +02:00
parent 6fd4283171
commit 5c5f073dc1
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 19 additions and 2 deletions

View File

@ -32,16 +32,22 @@
</StackPanel>
<!-- Settings -->
<Grid Grid.Row="1" Grid.Column="0" Margin="5">
<Grid Grid.Row="1" Grid.Column="0" Margin="5" Name="PropertyCompilerGrid">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Source="{Binding SplashScreenImage}" Stretch="Fill"></Image>
<Button Grid.Row="1" Height="30" Command="{Binding OpenModListPropertiesCommand}">
<Button Grid.Row="1" Height="30" Command="{Binding OpenModListPropertiesCommand}" IsEnabled="{Binding UIReady}">
<TextBlock Text="Modlist Properties" FontSize="15" FontWeight="Bold"></TextBlock>
</Button>
</Grid>
<Grid Grid.Row="1" Grid.Column="0" Margin="5" Name="PropertyInstallerGrid">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Source="{Binding SplashScreenImage}" Stretch="Fill"></Image>
</Grid>
<!-- End Settings -->
<!-- Slideshow -->

View File

@ -44,6 +44,17 @@ namespace Wabbajack
_state._nexusSiteURL = "https://github.com/wabbajack-tools/wabbajack";
if(mode == RunMode.Compile)
{
PropertyCompilerGrid.Visibility = Visibility.Visible;
PropertyInstallerGrid.Visibility = Visibility.Hidden;
}
else
{
PropertyCompilerGrid.Visibility = Visibility.Hidden;
PropertyInstallerGrid.Visibility = Visibility.Visible;
}
new Thread(() =>
{
if (mode == RunMode.Compile)