2019-11-29 22:08:11 +00:00
|
|
|
<UserControl
|
2019-11-02 00:17:23 +00:00
|
|
|
x:Class="Wabbajack.CompilerView"
|
|
|
|
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"
|
2019-11-24 23:42:28 +00:00
|
|
|
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
2019-11-02 00:17:23 +00:00
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
2019-11-06 03:50:24 +00:00
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
2019-11-02 00:17:23 +00:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2019-11-14 05:28:27 +00:00
|
|
|
xmlns:wabbacommon="clr-namespace:Wabbajack.Common;assembly=Wabbajack.Common"
|
2019-11-09 20:28:31 +00:00
|
|
|
d:DataContext="{d:DesignInstance local:CompilerVM}"
|
2019-11-02 00:17:23 +00:00
|
|
|
d:DesignHeight="450"
|
|
|
|
d:DesignWidth="800"
|
|
|
|
mc:Ignorable="d">
|
2019-11-09 20:28:31 +00:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="45" />
|
|
|
|
<RowDefinition Height="4*" />
|
|
|
|
<RowDefinition Height="*" MinHeight="150" />
|
|
|
|
</Grid.RowDefinitions>
|
2019-11-10 01:54:43 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="5" />
|
|
|
|
<ColumnDefinition Width="2*" />
|
|
|
|
<ColumnDefinition Width="1" />
|
|
|
|
<ColumnDefinition Width="5*" />
|
|
|
|
<ColumnDefinition Width="5" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 02:23:07 +00:00
|
|
|
<local:BorderFadeDownView
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Grid.Column="0" />
|
|
|
|
<local:BorderFadeDownView
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Grid.Column="4" />
|
2019-11-29 05:52:23 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="BorderHeatFill"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.RowSpan="3"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
|
|
|
Fill="#7d3700B3"
|
|
|
|
Opacity="{Binding PercentCompleted}" />
|
2019-11-10 01:54:43 +00:00
|
|
|
<local:DetailImageView
|
2019-11-14 05:57:14 +00:00
|
|
|
Title="{Binding CurrentModlistSettings.ModListName}"
|
2019-11-09 20:28:31 +00:00
|
|
|
Grid.Row="1"
|
2019-11-10 01:54:43 +00:00
|
|
|
Grid.Column="3"
|
2019-11-14 05:57:14 +00:00
|
|
|
Author="{Binding CurrentModlistSettings.AuthorText}"
|
2019-11-10 01:54:43 +00:00
|
|
|
BorderThickness="0"
|
2019-11-14 05:57:14 +00:00
|
|
|
Description="{Binding CurrentModlistSettings.Description}"
|
2019-11-10 01:54:43 +00:00
|
|
|
Image="{Binding Image}" />
|
|
|
|
<Rectangle
|
|
|
|
x:Name="ControlVerticalThinSeparator"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="2"
|
|
|
|
Width="1"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Fill="{StaticResource DarkBackgroundBrush}"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-11-29 05:52:23 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="ModlistDetailsBackground"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
Fill="{StaticResource WindowBackgroundBrush}" />
|
2019-11-10 01:54:43 +00:00
|
|
|
<!-- Comes after image area so shadow can overlay -->
|
2019-11-09 20:28:31 +00:00
|
|
|
<local:TopProgressView
|
2019-11-14 05:57:14 +00:00
|
|
|
Title="{Binding CurrentModlistSettings.ModListName, Mode=OneWay}"
|
2019-11-09 20:28:31 +00:00
|
|
|
Grid.Row="0"
|
|
|
|
Grid.RowSpan="2"
|
2019-11-10 01:54:43 +00:00
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
2019-11-09 20:28:31 +00:00
|
|
|
OverhangShadow="True"
|
2019-11-24 03:11:25 +00:00
|
|
|
ProgressPercent="{Binding PercentCompleted}"
|
2019-11-09 20:28:31 +00:00
|
|
|
StatePrefixTitle="Compiling" />
|
2019-11-24 23:42:28 +00:00
|
|
|
<Button
|
|
|
|
x:Name="BackButton"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
|
|
|
Width="30"
|
|
|
|
Height="30"
|
|
|
|
Margin="12,5,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Background="{StaticResource ButtonBackground}"
|
|
|
|
Command="{Binding BackCommand}"
|
|
|
|
Style="{StaticResource CircleButtonStyle}"
|
|
|
|
ToolTip="Back to main menu">
|
|
|
|
<icon:PackIconMaterial Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Kind="ArrowLeft" />
|
|
|
|
</Button>
|
2019-11-10 01:54:43 +00:00
|
|
|
<ScrollViewer
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
2019-11-10 06:39:40 +00:00
|
|
|
Margin="5"
|
2019-11-10 01:54:43 +00:00
|
|
|
Background="Transparent"
|
|
|
|
HorizontalScrollBarVisibility="Disabled"
|
2019-11-21 05:15:47 +00:00
|
|
|
IsEnabled="{Binding Compiling, Converter={StaticResource InverseBooleanConverter}}"
|
2019-11-10 01:54:43 +00:00
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<StackPanel
|
|
|
|
Margin="0,5,0,0"
|
|
|
|
Background="Transparent"
|
2019-11-14 05:57:14 +00:00
|
|
|
DataContext="{Binding CurrentModlistSettings}"
|
2019-11-10 01:54:43 +00:00
|
|
|
Orientation="Vertical">
|
|
|
|
<StackPanel.Resources>
|
|
|
|
<Thickness
|
|
|
|
x:Key="TitleMargin"
|
|
|
|
Bottom="1"
|
|
|
|
Left="5" />
|
|
|
|
<Style
|
|
|
|
x:Key="ValueStyle"
|
|
|
|
BasedOn="{StaticResource MainTextBoxStyle}"
|
|
|
|
TargetType="TextBox">
|
|
|
|
<Setter Property="MaxLength" Value="50" />
|
|
|
|
<Setter Property="AcceptsTab" Value="False" />
|
|
|
|
<Setter Property="FontSize" Value="15" />
|
|
|
|
<Setter Property="Margin" Value="0,0,0,6" />
|
|
|
|
</Style>
|
2019-11-17 07:28:33 +00:00
|
|
|
<Style
|
|
|
|
x:Key="PickerStyle"
|
|
|
|
BasedOn="{StaticResource MainFilePickerStyle}"
|
|
|
|
TargetType="local:FilePicker">
|
2019-11-10 03:40:50 +00:00
|
|
|
<Setter Property="Margin" Value="0,0,0,6" />
|
|
|
|
</Style>
|
2019-11-10 01:54:43 +00:00
|
|
|
</StackPanel.Resources>
|
|
|
|
<TextBlock Margin="{StaticResource TitleMargin}" Text="ModList Name" />
|
|
|
|
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding ModListName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBlock Margin="{StaticResource TitleMargin}" Text="Author" />
|
|
|
|
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding AuthorText, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBlock Margin="{StaticResource TitleMargin}" Text="Description" />
|
|
|
|
<TextBox
|
|
|
|
Height="150"
|
|
|
|
mahapps:TextBoxHelper.Watermark="(700 characters max)"
|
|
|
|
AcceptsReturn="True"
|
|
|
|
AcceptsTab="False"
|
|
|
|
MaxLength="700"
|
|
|
|
Style="{StaticResource ValueStyle}"
|
|
|
|
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
TextWrapping="Wrap" />
|
2019-11-10 03:40:50 +00:00
|
|
|
<TextBlock Margin="{StaticResource TitleMargin}" Text="Image" />
|
|
|
|
<local:FilePicker
|
|
|
|
DataContext="{Binding ImagePath}"
|
|
|
|
Style="{StaticResource PickerStyle}"
|
|
|
|
ToolTip="Path to an image to display for the modlist." />
|
2019-11-10 01:54:43 +00:00
|
|
|
<TextBlock Margin="{StaticResource TitleMargin}" Text="Website" />
|
|
|
|
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding Website}" />
|
|
|
|
<TextBlock
|
|
|
|
Margin="{StaticResource TitleMargin}"
|
|
|
|
Text="Readme Path"
|
|
|
|
ToolTip="Path to a readme file." />
|
2019-11-10 03:40:50 +00:00
|
|
|
<local:FilePicker
|
|
|
|
DataContext="{Binding ReadMeText}"
|
|
|
|
Style="{StaticResource PickerStyle}"
|
|
|
|
ToolTip="Path to a readme file." />
|
2019-11-10 01:54:43 +00:00
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer>
|
2019-11-09 20:28:31 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="ControlTopThinSeparator"
|
|
|
|
Grid.Row="2"
|
2019-11-10 01:54:43 +00:00
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
2019-11-09 20:28:31 +00:00
|
|
|
Height="1"
|
|
|
|
Margin="25,0"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Fill="{StaticResource DarkBackgroundBrush}"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-11-29 05:52:23 +00:00
|
|
|
<Rectangle
|
|
|
|
x:Name="BottomBarBackground"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
|
|
|
Margin="5"
|
2019-11-28 08:00:43 +00:00
|
|
|
Fill="#121212" />
|
2019-11-10 01:54:43 +00:00
|
|
|
<Grid
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
|
|
|
MaxWidth="1000">
|
2019-10-25 04:26:29 +00:00
|
|
|
<Grid
|
2019-11-09 20:28:31 +00:00
|
|
|
Margin="35,0,35,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ClipToBounds="False"
|
2019-11-21 05:15:47 +00:00
|
|
|
Visibility="{Binding Compiling, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
|
2019-11-09 20:28:31 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-11-10 06:39:40 +00:00
|
|
|
<RowDefinition Height="*" />
|
2019-11-14 05:57:14 +00:00
|
|
|
<RowDefinition Height="Auto" />
|
2019-11-10 06:39:40 +00:00
|
|
|
<RowDefinition Height="*" />
|
2019-11-09 20:28:31 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-10-25 04:26:29 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-10 06:39:40 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-10-25 04:26:29 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
2019-11-09 20:28:31 +00:00
|
|
|
<ColumnDefinition Width="20" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-10-25 04:26:29 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-10 06:39:40 +00:00
|
|
|
<Grid
|
2019-10-25 04:26:29 +00:00
|
|
|
Grid.Row="0"
|
2019-11-10 06:39:40 +00:00
|
|
|
Grid.RowSpan="5"
|
2019-10-25 04:26:29 +00:00
|
|
|
Grid.Column="0"
|
2019-11-10 06:39:40 +00:00
|
|
|
Margin="15"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<local:ImageRadioButtonView
|
|
|
|
Grid.Row="0"
|
|
|
|
Height="35"
|
|
|
|
Margin="4"
|
2019-11-14 05:28:27 +00:00
|
|
|
IsChecked="{Binding SelectedCompilerType, Converter={StaticResource EqualsToBoolConverter}, ConverterParameter={x:Static wabbacommon:ModManager.MO2}}">
|
2019-11-10 06:39:40 +00:00
|
|
|
<local:ImageRadioButtonView.Image>
|
2019-11-14 05:57:14 +00:00
|
|
|
<BitmapImage UriSource="../../Resources/MO2Button.png" />
|
2019-11-10 06:39:40 +00:00
|
|
|
</local:ImageRadioButtonView.Image>
|
|
|
|
</local:ImageRadioButtonView>
|
|
|
|
<local:ImageRadioButtonView
|
|
|
|
Grid.Row="1"
|
|
|
|
Height="35"
|
|
|
|
Margin="4"
|
2019-11-14 05:28:27 +00:00
|
|
|
IsChecked="{Binding SelectedCompilerType, Converter={StaticResource EqualsToBoolConverter}, ConverterParameter={x:Static wabbacommon:ModManager.Vortex}}">
|
2019-11-10 06:39:40 +00:00
|
|
|
<local:ImageRadioButtonView.Image>
|
2019-11-14 05:57:14 +00:00
|
|
|
<BitmapImage UriSource="../../Resources/VortexButton.png" />
|
2019-11-10 06:39:40 +00:00
|
|
|
</local:ImageRadioButtonView.Image>
|
|
|
|
</local:ImageRadioButtonView>
|
|
|
|
</Grid>
|
2019-11-14 05:57:14 +00:00
|
|
|
<ContentPresenter
|
2019-11-10 06:39:40 +00:00
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
2019-11-14 05:57:14 +00:00
|
|
|
Content="{Binding Compiler}">
|
|
|
|
<ContentPresenter.Resources>
|
|
|
|
<DataTemplate DataType="{x:Type local:MO2CompilerVM}">
|
|
|
|
<local:MO2CompilerConfigView />
|
|
|
|
</DataTemplate>
|
2019-11-16 23:10:17 +00:00
|
|
|
<DataTemplate DataType="{x:Type local:VortexCompilerVM}">
|
|
|
|
<local:VortexCompilerConfigView />
|
|
|
|
</DataTemplate>
|
2019-11-14 05:57:14 +00:00
|
|
|
</ContentPresenter.Resources>
|
|
|
|
</ContentPresenter>
|
2019-11-09 20:28:31 +00:00
|
|
|
<local:BeginButton
|
2019-10-25 04:26:29 +00:00
|
|
|
Grid.Row="0"
|
2019-11-14 05:57:14 +00:00
|
|
|
Grid.RowSpan="3"
|
2019-11-10 06:39:40 +00:00
|
|
|
Grid.Column="5"
|
2019-11-14 05:57:14 +00:00
|
|
|
Command="{Binding Compiler.BeginCommand}" />
|
2019-10-25 04:26:29 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2019-11-09 20:28:31 +00:00
|
|
|
<Grid
|
|
|
|
Grid.Row="2"
|
2019-11-10 01:54:43 +00:00
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="5"
|
|
|
|
Margin="5"
|
2019-11-21 05:15:47 +00:00
|
|
|
Visibility="{Binding Compiling, Converter={StaticResource bool2VisibilityConverter}, FallbackValue=Hidden}">
|
2019-11-24 03:17:22 +00:00
|
|
|
<local:LogCpuView />
|
2019-11-09 20:28:31 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2019-10-25 04:26:29 +00:00
|
|
|
</UserControl>
|