mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
e388c018dc
The exit animations on errors were not firing if the datacontext was what changed. Adding a middleman property fixed the issue. Probably a bit hacky
149 lines
5.3 KiB
XML
149 lines
5.3 KiB
XML
<UserControl
|
|
x:Class="Wabbajack.VortexCompilerConfigView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DataContext="{d:DesignInstance local:VortexCompilerVM}"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="30" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40" />
|
|
<RowDefinition Height="40" />
|
|
<RowDefinition Height="40" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="Game"
|
|
TextAlignment="Center"
|
|
ToolTip="The game you wish to target" />
|
|
<ComboBox
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Height="30"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
FontSize="14"
|
|
ItemsSource="{Binding GameOptions}"
|
|
SelectedValue="{Binding SelectedGame}"
|
|
ToolTip="The game you wish to target">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Margin="6,2" Text="{Binding DisplayName}" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="Game Folder"
|
|
TextAlignment="Center"
|
|
ToolTip="The install folder for the game" />
|
|
<local:FilePicker
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Height="30"
|
|
VerticalAlignment="Center"
|
|
PickerVM="{Binding GameLocation}"
|
|
FontSize="14"
|
|
ToolTip="The install folder for the game" />
|
|
<Grid
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Height="28"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button
|
|
Grid.Column="0"
|
|
Margin="0,0,5,0"
|
|
Background="Transparent"
|
|
Command="{Binding FindGameInSteamCommand}"
|
|
Style="{StaticResource CircleButtonStyle}"
|
|
ToolTip="Attempt to locate the game in Steam">
|
|
<Image Margin="1" Source="../../Resources/Icons/steam.png" />
|
|
</Button>
|
|
<Button
|
|
Grid.Column="1"
|
|
Background="Transparent"
|
|
Command="{Binding FindGameInGogCommand}"
|
|
Style="{StaticResource CircleButtonStyle}"
|
|
ToolTip="Attempt to locate game in GoG">
|
|
<Image Margin="1" Source="../../Resources/Icons/gog.png" />
|
|
</Button>
|
|
</Grid>
|
|
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="Download Location"
|
|
TextAlignment="Center"
|
|
ToolTip="The folder to download your mods" />
|
|
<local:FilePicker
|
|
Grid.Row="0"
|
|
Grid.Column="6"
|
|
Height="30"
|
|
VerticalAlignment="Center"
|
|
PickerVM="{Binding DownloadsLocation}"
|
|
FontSize="14"
|
|
ToolTip="The folder to download your mods" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="Staging Location"
|
|
TextAlignment="Center" />
|
|
<local:FilePicker
|
|
Grid.Row="1"
|
|
Grid.Column="6"
|
|
Height="30"
|
|
VerticalAlignment="Center"
|
|
PickerVM="{Binding StagingLocation}"
|
|
FontSize="14" />
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="Output Location"
|
|
TextAlignment="Center"
|
|
ToolTip="The folder to place the resulting modlist.wabbajack file" />
|
|
<local:FilePicker
|
|
Grid.Row="2"
|
|
Grid.Column="6"
|
|
Height="30"
|
|
VerticalAlignment="Center"
|
|
PickerVM="{Binding Parent.OutputLocation}"
|
|
FontSize="14"
|
|
ToolTip="The folder to place the resulting modlist.wabbajack file" />
|
|
</Grid>
|
|
</UserControl>
|