Resaved with XAML Styler

This commit is contained in:
Justin Swanson 2019-11-01 19:17:23 -05:00
parent 3b9cec7b5c
commit f77359ee7d
7 changed files with 498 additions and 352 deletions

View File

@ -1,11 +1,13 @@
<UserControl x:Class="Wabbajack.CompilerView" <UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Class="Wabbajack.CompilerView"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Wabbajack" xmlns:local="clr-namespace:Wabbajack"
mc:Ignorable="d" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450" d:DesignWidth="800"> d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Viewbox Stretch="Uniform"> <Viewbox Stretch="Uniform">
<Grid Margin="4,0,4,0"> <Grid Margin="4,0,4,0">
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -36,14 +38,17 @@
<TextBlock FontSize="16" Text="{Binding MOProfile}" /> <TextBlock FontSize="16" Text="{Binding MOProfile}" />
</StackPanel> </StackPanel>
<Grid Grid.Row="1" Grid.Column="0" <Grid
IsEnabled="{Binding UIReady}" Grid.Row="1"
Margin="0,8,0,8"> Grid.Column="0"
Margin="0,8,0,8"
IsEnabled="{Binding UIReady}">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Image Grid.Row="0" <Image
Grid.Row="0"
Source="{Binding Image}" Source="{Binding Image}"
Stretch="Fill" /> Stretch="Fill" />
<Grid Grid.Row="1"> <Grid Grid.Row="1">
@ -51,44 +56,66 @@
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label <Label Grid.Column="0" Content="Splash Screen Path:" />
Grid.Column="0" <local:FilePicker
Content="Splash Screen Path:" /> Grid.Column="1"
<local:FilePicker Grid.Column="1" Width="534"
PathType="File" HorizontalAlignment="Left"
DoExistsCheck="False" DoExistsCheck="False"
TargetPath="{Binding ImagePath}" Filter="Banner image|*.png"
Filter="Banner image|*.png" IsEnabled="{Binding UIReady}"
IsEnabled="{Binding UIReady}" HorizontalAlignment="Left" Width="534" /> PathType="File"
TargetPath="{Binding ImagePath}" />
</Grid> </Grid>
</Grid> </Grid>
<ScrollViewer Grid.Row="1" Grid.Column="2" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" <ScrollViewer
IsEnabled="{Binding UIReady}" Grid.Row="1"
Background="Transparent"> Grid.Column="2"
<StackPanel Orientation="Vertical" Background="Transparent" > Background="Transparent"
HorizontalScrollBarVisibility="Disabled"
IsEnabled="{Binding UIReady}"
VerticalScrollBarVisibility="Auto">
<StackPanel Background="Transparent" Orientation="Vertical">
<StackPanel.Resources> <StackPanel.Resources>
<Thickness x:Key="TitleMargin" Left="5" Bottom="1" /> <Thickness
<Style TargetType="TextBox" x:Key="ValueStyle" BasedOn="{StaticResource MainTextBoxStyle}" > x:Key="TitleMargin"
Bottom="1"
Left="5" />
<Style
x:Key="ValueStyle"
BasedOn="{StaticResource MainTextBoxStyle}"
TargetType="TextBox">
<Setter Property="MaxLength" Value="50" /> <Setter Property="MaxLength" Value="50" />
<Setter Property="AcceptsTab" Value="False" /> <Setter Property="AcceptsTab" Value="False" />
<Setter Property="FontSize" Value="15" /> <Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="0,0,0,6" /> <Setter Property="Margin" Value="0,0,0,6" />
</Style> </Style>
</StackPanel.Resources> </StackPanel.Resources>
<TextBlock Text="ModList Name" Margin="{StaticResource TitleMargin}" /> <TextBlock Margin="{StaticResource TitleMargin}" Text="ModList Name" />
<TextBox Text="{Binding ModListName}" Style="{StaticResource ValueStyle}" /> <TextBox Style="{StaticResource ValueStyle}" Text="{Binding ModListName}" />
<TextBlock Text="Author" Margin="{StaticResource TitleMargin}" /> <TextBlock Margin="{StaticResource TitleMargin}" Text="Author" />
<TextBox Text="{Binding AuthorName}" Style="{StaticResource ValueStyle}" /> <TextBox Style="{StaticResource ValueStyle}" Text="{Binding AuthorName}" />
<TextBlock Text="Description" Margin="{StaticResource TitleMargin}" /> <TextBlock Margin="{StaticResource TitleMargin}" Text="Description" />
<TextBox Text="{Binding Summary}" Style="{StaticResource ValueStyle}" Height="150" MaxLength="700" AcceptsReturn="True" TextWrapping="Wrap" AcceptsTab="False" /> <TextBox
<TextBlock Text="Website" Margin="{StaticResource TitleMargin}" /> Height="150"
<TextBox Text="{Binding NexusSiteURL}" Style="{StaticResource ValueStyle}" /> AcceptsReturn="True"
<TextBlock Text="Readme Path" Margin="{StaticResource TitleMargin}" ToolTip="Path to a readme file." /> AcceptsTab="False"
<local:FilePicker TargetPath="{Binding ReadMeText}" MaxLength="700"
PathType="File" Style="{StaticResource ValueStyle}"
DoExistsCheck="False" Text="{Binding Summary}"
ToolTip="Path to a readme file." /> TextWrapping="Wrap" />
<TextBlock Margin="{StaticResource TitleMargin}" Text="Website" />
<TextBox Style="{StaticResource ValueStyle}" Text="{Binding NexusSiteURL}" />
<TextBlock
Margin="{StaticResource TitleMargin}"
Text="Readme Path"
ToolTip="Path to a readme file." />
<local:FilePicker
DoExistsCheck="False"
PathType="File"
TargetPath="{Binding ReadMeText}"
ToolTip="Path to a readme file." />
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
@ -138,11 +165,11 @@
<local:FilePicker <local:FilePicker
Grid.Row="0" Grid.Row="0"
Grid.Column="1" Grid.Column="1"
PathType="Folder"
DoExistsCheck="False" DoExistsCheck="False"
TargetPath="{Binding Location}" IsEnabled="{Binding UIReady}"
PathType="Folder"
SetTargetPathCommand="{Binding ChangePathCommand}" SetTargetPathCommand="{Binding ChangePathCommand}"
IsEnabled="{Binding UIReady}" /> TargetPath="{Binding Location}" />
<Label <Label
Grid.Row="2" Grid.Row="2"
Grid.Column="0" Grid.Column="0"
@ -150,11 +177,11 @@
<local:FilePicker <local:FilePicker
Grid.Row="2" Grid.Row="2"
Grid.Column="1" Grid.Column="1"
PathType="Folder"
DoExistsCheck="False" DoExistsCheck="False"
TargetPath="{Binding DownloadLocation}" IsEnabled="{Binding UIReady}"
PathType="Folder"
SetTargetPathCommand="{Binding ChangeDownloadPathCommand}" SetTargetPathCommand="{Binding ChangeDownloadPathCommand}"
IsEnabled="{Binding UIReady}" /> TargetPath="{Binding DownloadLocation}" />
</Grid> </Grid>
<!-- End Location --> <!-- End Location -->

View File

@ -17,8 +17,8 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBox <TextBox
Grid.Column="0" Grid.Column="0"
VerticalContentAlignment="Center"
Margin="0,0,-4,0" Margin="0,0,-4,0"
VerticalContentAlignment="Center"
Background="{StaticResource DarkBackgroundBrush}" Background="{StaticResource DarkBackgroundBrush}"
Text="{Binding TargetPath, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Text="{Binding TargetPath, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding ShowTextBoxInput, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" /> Visibility="{Binding ShowTextBoxInput, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" />
@ -37,8 +37,8 @@
ToolTip="Set target path"> ToolTip="Set target path">
<icon:PackIconMaterial <icon:PackIconMaterial
Width="16" Width="16"
Margin="4"
Height="12" Height="12"
Margin="4"
Kind="DotsHorizontal" /> Kind="DotsHorizontal" />
</Button> </Button>
</Grid> </Grid>

View File

@ -3,47 +3,52 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Wabbajack"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks" xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:local="clr-namespace:Wabbajack"
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="500" d:DesignHeight="500"
d:DesignWidth="800" d:DesignWidth="800"
mc:Ignorable="d"> mc:Ignorable="d">
<UserControl.Resources> <UserControl.Resources>
<Color x:Key="TextBackgroundFill">#92000000</Color> <Color x:Key="TextBackgroundFill">#92000000</Color>
<SolidColorBrush x:Key="TextBackgroundFillBrush" Color="{StaticResource TextBackgroundFill}" /> <SolidColorBrush x:Key="TextBackgroundFillBrush" Color="{StaticResource TextBackgroundFill}" />
<Color x:Key="TextBackgroundHoverFill" >#DF000000</Color> <Color x:Key="TextBackgroundHoverFill">#DF000000</Color>
<Style x:Key="BackgroundBlurStyle" TargetType="Border"> <Style x:Key="BackgroundBlurStyle" TargetType="Border">
<Setter Property="Background" Value="{StaticResource TextBackgroundFillBrush}" /> <Setter Property="Background" Value="{StaticResource TextBackgroundFillBrush}" />
<Setter Property="Visibility" Value="Hidden" /> <Setter Property="Visibility" Value="Hidden" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=Slideshow}" Value="True" > <DataTrigger Binding="{Binding IsMouseOver, ElementName=Slideshow}" Value="True">
<DataTrigger.EnterActions> <DataTrigger.EnterActions>
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
<ColorAnimation To="{StaticResource TextBackgroundHoverFill}" <ColorAnimation
Duration="0:0:0.06" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" /> To="{StaticResource TextBackgroundHoverFill}"
Duration="0:0:0.06" />
</Storyboard> </Storyboard>
</BeginStoryboard> </BeginStoryboard>
</DataTrigger.EnterActions> </DataTrigger.EnterActions>
<DataTrigger.ExitActions> <DataTrigger.ExitActions>
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
<ColorAnimation To="{StaticResource TextBackgroundFill}" <ColorAnimation
Duration="0:0:0.06" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" /> To="{StaticResource TextBackgroundFill}"
Duration="0:0:0.06" />
</Storyboard> </Storyboard>
</BeginStoryboard> </BeginStoryboard>
</DataTrigger.ExitActions> </DataTrigger.ExitActions>
</DataTrigger> </DataTrigger>
<DataTrigger Binding="{Binding ShowTextShadow}" Value="True" > <DataTrigger Binding="{Binding ShowTextShadow}" Value="True">
<Setter Property="Visibility" Value="Visible" /> <Setter Property="Visibility" Value="Visible" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
<Style x:Key="SlideshowButton" BasedOn="{StaticResource CircleButtonStyle}" TargetType="ButtonBase" > <Style
x:Key="SlideshowButton"
BasedOn="{StaticResource CircleButtonStyle}"
TargetType="ButtonBase">
<Setter Property="Width" Value="40" /> <Setter Property="Width" Value="40" />
<Setter Property="Height" Value="40" /> <Setter Property="Height" Value="40" />
<Setter Property="Margin" Value="4" /> <Setter Property="Margin" Value="4" />
@ -56,19 +61,25 @@
<RowDefinition Height="4*" /> <RowDefinition Height="4*" />
<RowDefinition Height="*" MinHeight="150" /> <RowDefinition Height="*" MinHeight="150" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<!-- Slideshow --> <!-- Slideshow -->
<Grid Grid.Row="2" Margin="0,0,0,5" x:Name="Slideshow" > <Grid
x:Name="Slideshow"
Grid.Row="2"
Margin="0,0,0,5">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" /> <ColumnDefinition Width="5*" />
<ColumnDefinition Width="3*" /> <ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Rectangle <Rectangle
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="2" Grid.ColumnSpan="2"
Fill="{StaticResource WindowBackgroundBrush}" /> Fill="{StaticResource WindowBackgroundBrush}" />
<Viewbox <Viewbox
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="2" Stretch="UniformToFill" HorizontalAlignment="Center" VerticalAlignment="Center" > Grid.ColumnSpan="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Stretch="UniformToFill">
<Image Source="{Binding Image}" /> <Image Source="{Binding Image}" />
</Viewbox> </Viewbox>
<Image <Image
@ -79,13 +90,19 @@
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalAlignment="Top"
Source="{Binding ModlistImage}" /> Source="{Binding ModlistImage}" />
<Grid Grid.Column="0" > <Grid Grid.Column="0">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Border Grid.Row="1" Grid.RowSpan="2" Grid.Column="0" Margin="-100,0,0,-100" CornerRadius="100" Style="{StaticResource BackgroundBlurStyle}" > <Border
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="0"
Margin="-100,0,0,-100"
CornerRadius="100"
Style="{StaticResource BackgroundBlurStyle}">
<Border.Effect> <Border.Effect>
<BlurEffect Radius="65" /> <BlurEffect Radius="65" />
</Border.Effect> </Border.Effect>
@ -93,13 +110,13 @@
<TextBlock <TextBlock
Grid.Row="1" Grid.Row="1"
Grid.Column="0" Grid.Column="0"
VerticalAlignment="Bottom"
Text="{Binding TitleText}"
FontSize="65"
Margin="20,25,20,0" Margin="20,25,20,0"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans" FontFamily="Lucida Sans"
FontSize="65"
FontWeight="Bold" FontWeight="Bold"
TextWrapping="WrapWithOverflow" > Text="{Binding TitleText}"
TextWrapping="WrapWithOverflow">
<TextBlock.Effect> <TextBlock.Effect>
<DropShadowEffect /> <DropShadowEffect />
</TextBlock.Effect> </TextBlock.Effect>
@ -107,27 +124,28 @@
<TextBlock <TextBlock
Grid.Row="2" Grid.Row="2"
Grid.Column="0" Grid.Column="0"
FontSize="30"
Margin="55,0,20,20" Margin="55,0,20,20"
FontFamily="Lucida Sans" FontFamily="Lucida Sans"
FontSize="30"
FontWeight="Bold" FontWeight="Bold"
Text="{Binding AuthorText}" Text="{Binding AuthorText}"
TextWrapping="Wrap" > TextWrapping="Wrap">
<TextBlock.Effect> <TextBlock.Effect>
<DropShadowEffect /> <DropShadowEffect />
</TextBlock.Effect> </TextBlock.Effect>
</TextBlock> </TextBlock>
</Grid> </Grid>
<Grid Grid.Column="1" > <Grid Grid.Column="1">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid Grid.Column="0" <Grid
HorizontalAlignment="Right" Grid.Column="0"
Margin="0,20,25,0" > Margin="0,20,25,0"
HorizontalAlignment="Right">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
@ -135,7 +153,10 @@
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid.Effect> <Grid.Effect>
<DropShadowEffect Color="Black" Opacity="1" BlurRadius="25" /> <DropShadowEffect
BlurRadius="25"
Opacity="1"
Color="Black" />
</Grid.Effect> </Grid.Effect>
<Grid.Style> <Grid.Style>
<Style TargetType="Grid"> <Style TargetType="Grid">
@ -150,8 +171,8 @@
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
<DoubleAnimation <DoubleAnimation
To="1" Storyboard.TargetProperty="Opacity"
Storyboard.TargetProperty="Opacity" To="1"
Duration="0:0:0.12" /> Duration="0:0:0.12" />
</Storyboard> </Storyboard>
</BeginStoryboard> </BeginStoryboard>
@ -159,8 +180,8 @@
<MultiDataTrigger.ExitActions> <MultiDataTrigger.ExitActions>
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" > <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
<LinearDoubleKeyFrame KeyTime="0:0:0.3" Value="1" /> <LinearDoubleKeyFrame KeyTime="0:0:0.3" Value="1" />
<LinearDoubleKeyFrame KeyTime="0:0:0.42" Value="0" /> <LinearDoubleKeyFrame KeyTime="0:0:0.42" Value="0" />
</DoubleAnimationUsingKeyFrames> </DoubleAnimationUsingKeyFrames>
</Storyboard> </Storyboard>
@ -170,37 +191,42 @@
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</Grid.Style> </Grid.Style>
<Button Grid.Column="3" <Button
Style="{StaticResource CircleButtonStyle}" Grid.Column="3"
Background="{StaticResource BackgroundBrush}" Width="60"
Height="60" Height="60"
Width="60" Margin="6"
Command="{Binding Slideshow.SlideShowNextItemCommand}" Background="{StaticResource BackgroundBrush}"
ToolTip="Skip to the next mod" Command="{Binding Slideshow.SlideShowNextItemCommand}"
Margin="6"> Style="{StaticResource CircleButtonStyle}"
<icon:PackIconFontAwesome Kind="ChevronRightSolid" Height="28" Width="28" /> ToolTip="Skip to the next mod">
<icon:PackIconFontAwesome
Width="28"
Height="28"
Kind="ChevronRightSolid" />
</Button> </Button>
<ToggleButton Grid.Column="2" <ToggleButton
IsChecked="{Binding Slideshow.Enable}" x:Name="PlayPauseButton"
Background="{StaticResource BackgroundBrush}" Grid.Column="2"
x:Name="PlayPauseButton" Margin="6"
Margin="6"> Background="{StaticResource BackgroundBrush}"
IsChecked="{Binding Slideshow.Enable}">
<ToggleButton.Style> <ToggleButton.Style>
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton" > <Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
<Setter Property="ToolTip" Value="Play slideshow" /> <Setter Property="ToolTip" Value="Play slideshow" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding Slideshow.Enable}" Value="True" > <DataTrigger Binding="{Binding Slideshow.Enable}" Value="True">
<Setter Property="ToolTip" Value="Pause slideshow" /> <Setter Property="ToolTip" Value="Pause slideshow" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</ToggleButton.Style> </ToggleButton.Style>
<icon:PackIconMaterial > <icon:PackIconMaterial>
<icon:PackIconMaterial.Style> <icon:PackIconMaterial.Style>
<Style TargetType="icon:PackIconMaterial"> <Style TargetType="icon:PackIconMaterial">
<Setter Property="Kind" Value="Pause" /> <Setter Property="Kind" Value="Pause" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding Slideshow.Enable}" Value="True" > <DataTrigger Binding="{Binding Slideshow.Enable}" Value="True">
<Setter Property="Kind" Value="Play" /> <Setter Property="Kind" Value="Play" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
@ -208,136 +234,157 @@
</icon:PackIconMaterial.Style> </icon:PackIconMaterial.Style>
</icon:PackIconMaterial> </icon:PackIconMaterial>
</ToggleButton> </ToggleButton>
<Button Grid.Column="1" <Button
Style="{StaticResource SlideshowButton}" Grid.Column="1"
ToolTip="Open Nexus Website" Margin="6"
Background="{StaticResource BackgroundBrush}" Background="{StaticResource BackgroundBrush}"
Margin="6" Command="{Binding Slideshow.VisitNexusSiteCommand}"
Command="{Binding Slideshow.VisitNexusSiteCommand}" > Style="{StaticResource SlideshowButton}"
<icon:PackIconMaterial Kind="Web" Height="28" Width="28" /> ToolTip="Open Nexus Website">
<icon:PackIconMaterial
Width="28"
Height="28"
Kind="Web" />
</Button> </Button>
<ToggleButton Grid.Column="0" <ToggleButton
IsChecked="{Binding Slideshow.ShowNSFW}" Grid.Column="0"
ToolTip="Show NSFW mods" Background="{StaticResource BackgroundBrush}"
Background="{StaticResource BackgroundBrush}"> IsChecked="{Binding Slideshow.ShowNSFW}"
ToolTip="Show NSFW mods">
<ToggleButton.Style> <ToggleButton.Style>
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton" > <Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
<Setter Property="ToolTip" Value="Show NSFW mods" /> <Setter Property="ToolTip" Value="Show NSFW mods" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding Slideshow.ShowNSFW}" Value="True" > <DataTrigger Binding="{Binding Slideshow.ShowNSFW}" Value="True">
<Setter Property="ToolTip" Value="Hide NSFW mods" /> <Setter Property="ToolTip" Value="Hide NSFW mods" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</ToggleButton.Style> </ToggleButton.Style>
<Grid> <Grid>
<TextBlock Text="NSFW" Margin="4" <TextBlock
HorizontalAlignment="Center" Margin="4"
FontWeight="Bold" HorizontalAlignment="Center"
FontSize="9" VerticalAlignment="Center"
FontFamily="Lucida Sans" FontFamily="Lucida Sans"
VerticalAlignment="Center" /> FontSize="9"
FontWeight="Bold"
Text="NSFW" />
<icon:PackIconOcticons <icon:PackIconOcticons
HorizontalAlignment="Center" Width="40"
VerticalAlignment="Center" Height="40"
Foreground="#88FFFFFF" HorizontalAlignment="Center"
Height="40" VerticalAlignment="Center"
Width="40" Foreground="#88FFFFFF"
Kind="CircleSlash" Kind="CircleSlash"
Visibility="{Binding Slideshow.ShowNSFW, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" /> Visibility="{Binding Slideshow.ShowNSFW, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" />
</Grid> </Grid>
</ToggleButton> </ToggleButton>
</Grid> </Grid>
<Border Grid.Row="3" Margin="0,0,-50,-50" CornerRadius="50" Style="{StaticResource BackgroundBlurStyle}"> <Border
Grid.Row="3"
Margin="0,0,-50,-50"
CornerRadius="50"
Style="{StaticResource BackgroundBlurStyle}">
<Border.Effect> <Border.Effect>
<BlurEffect Radius="65" /> <BlurEffect Radius="65" />
</Border.Effect> </Border.Effect>
</Border> </Border>
<TextBlock <TextBlock
Grid.Row="3" Grid.Row="3"
VerticalAlignment="Bottom"
FontSize="16"
HorizontalAlignment="Right"
TextAlignment="Right"
Margin="20,25,25,25" Margin="20,25,25,25"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans" FontFamily="Lucida Sans"
FontSize="16"
Text="{Binding Description}" Text="{Binding Description}"
TextWrapping="Wrap" > TextAlignment="Right"
TextWrapping="Wrap">
<TextBlock.Effect> <TextBlock.Effect>
<DropShadowEffect /> <DropShadowEffect />
</TextBlock.Effect> </TextBlock.Effect>
</TextBlock> </TextBlock>
</Grid> </Grid>
</Grid> </Grid>
<!-- Top progress bar --> <!-- Top progress bar -->
<!-- Comes after slideshow control, so that any effects/overlap goes on top --> <!-- Comes after slideshow control, so that any effects/overlap goes on top -->
<Rectangle VerticalAlignment="Top" Height="25" Grid.Row="2" IsHitTestVisible="False" > <Rectangle
Grid.Row="2"
Height="25"
VerticalAlignment="Top"
IsHitTestVisible="False">
<Rectangle.Fill> <Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#AA000000" Offset="0"/> <GradientStop Offset="0" Color="#AA000000" />
<GradientStop Color="#00000000" Offset="1"/> <GradientStop Offset="1" Color="#00000000" />
</LinearGradientBrush> </LinearGradientBrush>
</Rectangle.Fill> </Rectangle.Fill>
</Rectangle> </Rectangle>
<Rectangle Grid.Row="1" Fill="{StaticResource BackgroundBrush}" /> <Rectangle Grid.Row="1" Fill="{StaticResource BackgroundBrush}" />
<mahapps:MetroProgressBar x:Name="BottomProgressBarDarkGlow" <mahapps:MetroProgressBar
Grid.Row="1" x:Name="BottomProgressBarDarkGlow"
Grid.RowSpan="2" Grid.Row="1"
VerticalAlignment="Top" Grid.RowSpan="2"
Maximum="1" Height="16"
Value="{Binding ProgressPercent, Mode=OneWay}" Margin="-4"
Foreground="{StaticResource PrimaryVariantBrush}" VerticalAlignment="Top"
Background="Transparent" Background="Transparent"
BorderBrush="Transparent" BorderBrush="Transparent"
Height="16" Foreground="{StaticResource PrimaryVariantBrush}"
Margin="-4" > Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Effect> <mahapps:MetroProgressBar.Effect>
<BlurEffect Radius="25" /> <BlurEffect Radius="25" />
</mahapps:MetroProgressBar.Effect> </mahapps:MetroProgressBar.Effect>
</mahapps:MetroProgressBar> </mahapps:MetroProgressBar>
<mahapps:MetroProgressBar x:Name="BottomProgressBarBrightGlow" <mahapps:MetroProgressBar
Grid.Row="1" x:Name="BottomProgressBarBrightGlow"
Grid.RowSpan="2" Grid.Row="1"
VerticalAlignment="Top" Grid.RowSpan="2"
Maximum="1" Height="6"
Value="{Binding ProgressPercent, Mode=OneWay}" Margin="-4"
Foreground="{StaticResource PrimaryBrush}" VerticalAlignment="Top"
Background="Transparent" Background="Transparent"
BorderBrush="Transparent" BorderBrush="Transparent"
Height="6" Foreground="{StaticResource PrimaryBrush}"
Margin="-4" > Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Effect> <mahapps:MetroProgressBar.Effect>
<BlurEffect Radius="20" /> <BlurEffect Radius="20" />
</mahapps:MetroProgressBar.Effect> </mahapps:MetroProgressBar.Effect>
</mahapps:MetroProgressBar> </mahapps:MetroProgressBar>
<Grid Grid.Row="0" x:Name="TopBarGrid"> <Grid x:Name="TopBarGrid" Grid.Row="0">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<mahapps:MetroProgressBar Grid.Column="0" <mahapps:MetroProgressBar
Grid.ColumnSpan="4" Grid.Column="0"
Background="{StaticResource WindowBackgroundBrush}" Grid.ColumnSpan="4"
BorderThickness="0" Background="{StaticResource WindowBackgroundBrush}"
Foreground="Transparent" BorderThickness="0"
Maximum="1" Foreground="Transparent"
Value="{Binding ProgressPercent, Mode=OneWay}" /> Maximum="1"
<mahapps:MetroProgressBar Grid.Column="0" Grid.ColumnSpan="4" Value="{Binding ProgressPercent, Mode=OneWay}" />
Background="Transparent" <mahapps:MetroProgressBar
BorderThickness="0" Grid.Column="0"
Foreground="{StaticResource PrimaryVariantBrush}" Grid.ColumnSpan="4"
Opacity="{Binding ProgressPercent, Mode=OneWay}" Background="Transparent"
Maximum="1" BorderThickness="0"
Value="{Binding ProgressPercent, Mode=OneWay}" /> Foreground="{StaticResource PrimaryVariantBrush}"
<TextBlock Grid.Column="0" Maximum="1"
VerticalAlignment="Bottom" Opacity="{Binding ProgressPercent, Mode=OneWay}"
Margin="10,0,0,8" Value="{Binding ProgressPercent, Mode=OneWay}" />
Width="90" <TextBlock
FontWeight="Black" Grid.Column="0"
TextAlignment="Right" Width="90"
FontFamily="Lucida Sans" > Margin="10,0,0,8"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans"
FontWeight="Black"
TextAlignment="Right">
<TextBlock.Style> <TextBlock.Style>
<Style TargetType="TextBlock"> <Style TargetType="TextBlock">
<Setter Property="Text" Value="Configuring" /> <Setter Property="Text" Value="Configuring" />
@ -367,15 +414,17 @@
</Style> </Style>
</TextBlock.Style> </TextBlock.Style>
</TextBlock> </TextBlock>
<TextBlock Grid.Column="1" Text="{Binding ModListName}" <TextBlock
VerticalAlignment="Center" Grid.Column="1"
Margin="15,0,0,0" Margin="15,0,0,0"
FontSize="25" VerticalAlignment="Center"
FontWeight="Black" FontFamily="Lucida Sans"
FontFamily="Lucida Sans" /> FontSize="25"
<!-- Readd when Pause/Stop implementations added --> FontWeight="Black"
Text="{Binding ModListName}" />
<!-- Readd when Pause/Stop implementations added -->
<!--<Button Grid.Column="2" <!--<Button Grid.Column="2"
ToolTip="Pause Installation" ToolTip="Pause Installation"
Margin="0,0,0,5" Margin="0,0,0,5"
Width="50" Width="50"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}"> Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}">
@ -383,9 +432,9 @@
Kind="Pause" /> Kind="Pause" />
</Button> </Button>
<Button Grid.Column="3" <Button Grid.Column="3"
ToolTip="Stop Installation" ToolTip="Stop Installation"
Margin="0,0,0,5" Margin="0,0,0,5"
Width="50" Width="50"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}" > Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}" >
<icon:PackIconFontAwesome <icon:PackIconFontAwesome
Width="25" Width="25"
@ -393,79 +442,90 @@
Kind="TimesCircleSolid" /> Kind="TimesCircleSolid" />
</Button>--> </Button>-->
</Grid> </Grid>
<mahapps:MetroProgressBar x:Name="BottomProgressBar" <mahapps:MetroProgressBar
Grid.Row="1" x:Name="BottomProgressBar"
Grid.RowSpan="2" Grid.Row="1"
VerticalAlignment="Top" Grid.RowSpan="2"
Maximum="1" Height="5"
Value="{Binding ProgressPercent, Mode=OneWay}" VerticalAlignment="Top"
Foreground="{StaticResource PrimaryBrush}" Background="Transparent"
Background="Transparent" BorderBrush="Transparent"
BorderBrush="Transparent" Foreground="{StaticResource PrimaryBrush}"
Height="5" /> Maximum="1"
<mahapps:MetroProgressBar x:Name="BottomProgressBarHighlight" Value="{Binding ProgressPercent, Mode=OneWay}" />
Grid.Row="1" <mahapps:MetroProgressBar
Grid.RowSpan="2" x:Name="BottomProgressBarHighlight"
VerticalAlignment="Top" Grid.Row="1"
Maximum="1" Grid.RowSpan="2"
Value="{Binding ProgressPercent, Mode=OneWay}" Height="5"
Background="Transparent" VerticalAlignment="Top"
BorderBrush="Transparent" Background="Transparent"
Height="5" > BorderBrush="Transparent"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}">
<mahapps:MetroProgressBar.Foreground> <mahapps:MetroProgressBar.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#CCFFFFFF" Offset="0"/> <GradientStop Offset="0" Color="#CCFFFFFF" />
<GradientStop Color="#00FFFFFF" Offset="0.3"/> <GradientStop Offset="0.3" Color="#00FFFFFF" />
<GradientStop Color="#00FFFFFF" Offset="0.7"/> <GradientStop Offset="0.7" Color="#00FFFFFF" />
<GradientStop Color="#CCFFFFFF" Offset="1"/> <GradientStop Offset="1" Color="#CCFFFFFF" />
</LinearGradientBrush> </LinearGradientBrush>
</mahapps:MetroProgressBar.Foreground> </mahapps:MetroProgressBar.Foreground>
</mahapps:MetroProgressBar> </mahapps:MetroProgressBar>
<!-- Bottom Area --> <!-- Bottom Area -->
<Grid Grid.Row="3" <Grid Grid.Row="3" Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" >
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
<ColumnDefinition Width="4" /> <ColumnDefinition Width="4" />
<ColumnDefinition Width="2*" /> <ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid Grid.Column="0" <Grid Grid.Column="0" Margin="10">
Margin="10">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Button Grid.Row="0" <Button
Margin="30, 5" Grid.Row="0"
Content="Readme" Margin="30,5"
ToolTip="Open the readme for the modlist" Command="{Binding OpenReadmeCommand}"
FontSize="20" Content="Readme"
Command="{Binding OpenReadmeCommand}" /> FontSize="20"
<Button Grid.Row="1" ToolTip="Open the readme for the modlist" />
Margin="30, 5" <Button
Content="Website" Grid.Row="1"
ToolTip="Open the webpage for the modlist" Margin="30,5"
FontSize="20" Command="{Binding VisitWebsiteCommand}"
Command="{Binding VisitWebsiteCommand}" /> Content="Website"
<Button Grid.Row="2" FontSize="20"
Margin="30, 5" ToolTip="Open the webpage for the modlist" />
Content="Manifest" <Button
ToolTip="Open an explicit listing of all actions this modlist will take" Grid.Row="2"
FontSize="20" Margin="30,5"
Command="{Binding ShowReportCommand}" /> Command="{Binding ShowReportCommand}"
Content="Manifest"
FontSize="20"
ToolTip="Open an explicit listing of all actions this modlist will take" />
</Grid> </Grid>
<Grid Grid.Column="2" <Grid
x:Name="InstallationConfigurationView" x:Name="InstallationConfigurationView"
Background="{StaticResource WindowBackgroundBrush}" > Grid.Column="2"
<Border x:Name="ConfigurationBackgroundHaze" Background="{StaticResource PrimaryVariantBrush}" Opacity="0.10" Height="120" CornerRadius="50" > Background="{StaticResource WindowBackgroundBrush}">
<Border
x:Name="ConfigurationBackgroundHaze"
Height="120"
Background="{StaticResource PrimaryVariantBrush}"
CornerRadius="50"
Opacity="0.10">
<Border.Effect> <Border.Effect>
<BlurEffect Radius="45" /> <BlurEffect Radius="45" />
</Border.Effect> </Border.Effect>
</Border> </Border>
<ScrollViewer VerticalScrollBarVisibility="Auto" Background="Transparent" <ScrollViewer
Margin="5" Margin="5"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}"> Background="Transparent"
VerticalScrollBarVisibility="Auto"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
<Grid Margin="8"> <Grid Margin="8">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
@ -480,78 +540,91 @@
<RowDefinition Height="40" /> <RowDefinition Height="40" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Border Grid.Row="1" Grid.RowSpan="2" <Border
Grid.Column="0" Grid.ColumnSpan="5" x:Name="BeginButtonPurpleGlow"
x:Name="BeginButtonPurpleGlow" Grid.Row="1"
Width="76" Grid.RowSpan="2"
Height="76" Grid.Column="0"
CornerRadius="43" Grid.ColumnSpan="5"
Margin="0,0,14,0" Width="76"
HorizontalAlignment="Right" Height="76"
Background="{StaticResource PrimaryVariantBrush}" > Margin="0,0,14,0"
HorizontalAlignment="Right"
Background="{StaticResource PrimaryVariantBrush}"
CornerRadius="43">
<Border.Effect> <Border.Effect>
<BlurEffect Radius="10" /> <BlurEffect Radius="10" />
</Border.Effect> </Border.Effect>
<Border.Style> <Border.Style>
<Style TargetType="Border" > <Style TargetType="Border">
<Setter Property="Opacity" Value="0.5" /> <Setter Property="Opacity" Value="0.5" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=BeginButton}" Value="True" > <DataTrigger Binding="{Binding IsMouseOver, ElementName=BeginButton}" Value="True">
<Setter Property="Opacity" Value="0.8" /> <Setter Property="Opacity" Value="0.8" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</Border.Style> </Border.Style>
</Border> </Border>
<TextBlock Grid.Column="0" Grid.Row="1" <TextBlock
VerticalAlignment="Center" Grid.Row="1"
FontSize="14" Grid.Column="0"
HorizontalAlignment="Right" HorizontalAlignment="Right"
TextAlignment="Center" VerticalAlignment="Center"
Text="Installation Location" /> FontSize="14"
<local:FilePicker Grid.Column="2" Grid.Row="1" Text="Installation Location"
Height="30" TextAlignment="Center" />
FontSize="14" <local:FilePicker
VerticalAlignment="Center" Grid.Row="1"
PathType="Folder" Grid.Column="2"
DoExistsCheck="False" Height="30"
PromptTitle="Select Installation directory" VerticalAlignment="Center"
TargetPath="{Binding Location}" /> DoExistsCheck="False"
<TextBlock Grid.Column="0" Grid.Row="2" FontSize="14"
VerticalAlignment="Center" PathType="Folder"
FontSize="14" PromptTitle="Select Installation directory"
HorizontalAlignment="Right" TargetPath="{Binding Location}" />
TextAlignment="Center" <TextBlock
Text="Download Location" /> Grid.Row="2"
<local:FilePicker Grid.Column="2" Grid.Row="2" Grid.Column="0"
Height="30" HorizontalAlignment="Right"
FontSize="14" VerticalAlignment="Center"
PathType="Folder" FontSize="14"
VerticalAlignment="Center" Text="Download Location"
DoExistsCheck="False" TextAlignment="Center" />
PromptTitle="Select a location for MO2 downloads" <local:FilePicker
TargetPath="{Binding DownloadLocation}" /> Grid.Row="2"
<Button Grid.Row="1" Grid.RowSpan="2" Grid.Column="2"
Grid.Column="4" Height="30"
x:Name="BeginButton" VerticalAlignment="Center"
Width="55" DoExistsCheck="False"
Height="55" FontSize="14"
Margin="0,0,25,0" PathType="Folder"
BorderBrush="{StaticResource SecondaryBrush}" PromptTitle="Select a location for MO2 downloads"
HorizontalAlignment="Right" TargetPath="{Binding DownloadLocation}" />
Background="#222222" <Button
Style="{StaticResource CircleButtonStyle}" x:Name="BeginButton"
Command="{Binding BeginCommand}"> Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="4"
Width="55"
Height="55"
Margin="0,0,25,0"
HorizontalAlignment="Right"
Background="#222222"
BorderBrush="{StaticResource SecondaryBrush}"
Command="{Binding BeginCommand}"
Style="{StaticResource CircleButtonStyle}">
<icon:PackIconMaterial <icon:PackIconMaterial
Margin="5,0,0,0"
Height="25"
Width="25" Width="25"
Kind="Play" > Height="25"
Margin="5,0,0,0"
Kind="Play">
<icon:PackIconMaterial.Style> <icon:PackIconMaterial.Style>
<Style TargetType="icon:PackIconMaterial" > <Style TargetType="icon:PackIconMaterial">
<Setter Property="Foreground" Value="{StaticResource SecondaryBrush}" /> <Setter Property="Foreground" Value="{StaticResource SecondaryBrush}" />
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=BeginButton}" Value="True" > <DataTrigger Binding="{Binding IsMouseOver, ElementName=BeginButton}" Value="True">
<Setter Property="Foreground" Value="#00ffe7" /> <Setter Property="Foreground" Value="#00ffe7" />
</DataTrigger> </DataTrigger>
</Style.Triggers> </Style.Triggers>
@ -559,20 +632,24 @@
</icon:PackIconMaterial.Style> </icon:PackIconMaterial.Style>
</icon:PackIconMaterial> </icon:PackIconMaterial>
<Button.Effect> <Button.Effect>
<DropShadowEffect Color="{StaticResource Secondary}" ShadowDepth="0" BlurRadius="15" /> <DropShadowEffect
BlurRadius="15"
ShadowDepth="0"
Color="{StaticResource Secondary}" />
</Button.Effect> </Button.Effect>
</Button> </Button>
</Grid> </Grid>
</ScrollViewer> </ScrollViewer>
</Grid> </Grid>
<Rectangle Grid.Column="0" Grid.ColumnSpan="3" <Rectangle
Height="1" Grid.Column="0"
Margin="25,0" Grid.ColumnSpan="3"
VerticalAlignment="Top" Height="1"
Fill="{StaticResource DarkBackgroundBrush}"/> Margin="25,0"
VerticalAlignment="Top"
Fill="{StaticResource DarkBackgroundBrush}" />
</Grid> </Grid>
<Grid Grid.Row="3" <Grid Grid.Row="3" Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}">
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}" >
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
<ColumnDefinition Width="4" /> <ColumnDefinition Width="4" />
@ -582,9 +659,10 @@
Grid.Column="0" Grid.Column="0"
local:AutoScrollBehavior.ScrollOnNewItem="True" local:AutoScrollBehavior.ScrollOnNewItem="True"
ItemsSource="{Binding MWVM.Log}" /> ItemsSource="{Binding MWVM.Log}" />
<ListBox x:Name="CpuListBox" <ListBox
Grid.Column="2" x:Name="CpuListBox"
ItemsSource="{Binding MWVM.StatusList}"> Grid.Column="2"
ItemsSource="{Binding MWVM.StatusList}">
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<Grid HorizontalAlignment="Stretch"> <Grid HorizontalAlignment="Stretch">

View File

@ -16,12 +16,12 @@
Style="{StaticResource {x:Type Window}}" Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow" WindowStyle="ToolWindow"
mc:Ignorable="d"> mc:Ignorable="d">
<ContentPresenter Content="{Binding ActivePane}" > <ContentPresenter Content="{Binding ActivePane}">
<ContentPresenter.Resources> <ContentPresenter.Resources>
<DataTemplate DataType="{x:Type local:CompilerVM}" > <DataTemplate DataType="{x:Type local:CompilerVM}">
<local:CompilerView /> <local:CompilerView />
</DataTemplate> </DataTemplate>
<DataTemplate DataType="{x:Type local:InstallerVM}" > <DataTemplate DataType="{x:Type local:InstallerVM}">
<local:InstallationView /> <local:InstallationView />
</DataTemplate> </DataTemplate>
</ContentPresenter.Resources> </ContentPresenter.Resources>

View File

@ -1,35 +1,70 @@
<Window x:Class="Wabbajack.ModeSelectionWindow" <Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Class="Wabbajack.ModeSelectionWindow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Style="{StaticResource {x:Type Window}}" xmlns:local="clr-namespace:Wabbajack"
Icon="../Resources/Icons/wabbajack.ico" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
WindowStyle="ToolWindow" Title="Wabbajack"
xmlns:local="clr-namespace:Wabbajack" Width="800"
mc:Ignorable="d" Height="500"
Title="Wabbajack" Height="500" Width="800" ResizeMode="NoResize" Closing="Close_Window"
Closing="Close_Window"> Icon="../Resources/Icons/wabbajack.ico"
ResizeMode="NoResize"
Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow"
mc:Ignorable="d">
<Grid Margin="20"> <Grid Margin="20">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*" />
<ColumnDefinition Width="30"/> <ColumnDefinition Width="30" />
<ColumnDefinition Width="30"/> <ColumnDefinition Width="30" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="30"/> <RowDefinition Height="30" />
<RowDefinition Height="*"/> <RowDefinition Height="*" />
<RowDefinition Height="70"/> <RowDefinition Height="70" />
<RowDefinition Height="70"/> <RowDefinition Height="70" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Image MouseLeftButtonDown="GitHub_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" Name="GitHub"/> <Image
<Image MouseLeftButtonDown="Patreon_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="1" Name="Patreon"/> Name="GitHub"
<Image MouseLeftButtonDown="Discord_MouseLeftButtonDown" Margin="5,0,0,0" Grid.Row="0" Grid.Column="2" Name="Discord"/> Grid.Row="0"
<Image Grid.Row="1" Grid.ColumnSpan="3" Name="Banner" Stretch="Uniform" Margin="2,0,2,0"/> Grid.Column="0"
<Button Name="InstallModlist" Grid.ColumnSpan="3" Grid.Row="2" Margin="2" Click="InstallModlist_Click"> Margin="5,0,0,0"
HorizontalAlignment="Right"
MouseLeftButtonDown="GitHub_MouseLeftButtonDown" />
<Image
Name="Patreon"
Grid.Row="0"
Grid.Column="1"
Margin="5,0,0,0"
MouseLeftButtonDown="Patreon_MouseLeftButtonDown" />
<Image
Name="Discord"
Grid.Row="0"
Grid.Column="2"
Margin="5,0,0,0"
MouseLeftButtonDown="Discord_MouseLeftButtonDown" />
<Image
Name="Banner"
Grid.Row="1"
Grid.ColumnSpan="3"
Margin="2,0,2,0"
Stretch="Uniform" />
<Button
Name="InstallModlist"
Grid.Row="2"
Grid.ColumnSpan="3"
Margin="2"
Click="InstallModlist_Click">
<TextBlock FontSize="40">Install a ModList</TextBlock> <TextBlock FontSize="40">Install a ModList</TextBlock>
</Button> </Button>
<Button Name="CreateModlist" Grid.ColumnSpan="3" Grid.Row="3" Margin="2" Click="CreateModlist_Click"> <Button
Name="CreateModlist"
Grid.Row="3"
Grid.ColumnSpan="3"
Margin="2"
Click="CreateModlist_Click">
<TextBlock FontSize="40">Create a ModList</TextBlock> <TextBlock FontSize="40">Create a ModList</TextBlock>
</Button> </Button>
</Grid> </Grid>

View File

@ -1,15 +1,21 @@
<Window x:Class="Wabbajack.TextViewer" <Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Class="Wabbajack.TextViewer"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Wabbajack" xmlns:local="clr-namespace:Wabbajack"
Style="{StaticResource {x:Type Window}}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Title="TextViewer"
Icon="../Resources/Icons/wabbajack.ico" Width="800"
WindowStyle="ToolWindow" Height="450"
Title="TextViewer" Height="450" Width="800"> Icon="../Resources/Icons/wabbajack.ico"
Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow"
mc:Ignorable="d">
<Grid> <Grid>
<TextBlock FontSize="20" Name="TextBlock" TextWrapping="Wrap"/> <TextBlock
Name="TextBlock"
FontSize="20"
TextWrapping="Wrap" />
</Grid> </Grid>
</Window> </Window>

View File

@ -190,8 +190,8 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>
<Page Include="Views\TextViewer.xaml"> <Page Include="Views\TextViewer.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page> </Page>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>