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
x:Class="Wabbajack.CompilerView"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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,43 +56,65 @@
<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}" HorizontalAlignment="Left" Width="534" /> IsEnabled="{Binding UIReady}"
PathType="File"
TargetPath="{Binding ImagePath}" />
</Grid> </Grid>
</Grid> </Grid>
<ScrollViewer Grid.Row="1" Grid.Column="2" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" <ScrollViewer
Grid.Row="1"
Grid.Column="2"
Background="Transparent"
HorizontalScrollBarVisibility="Disabled"
IsEnabled="{Binding UIReady}" IsEnabled="{Binding UIReady}"
Background="Transparent"> VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical" Background="Transparent" > <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}"
Text="{Binding Summary}"
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" DoExistsCheck="False"
PathType="File"
TargetPath="{Binding ReadMeText}"
ToolTip="Path to a readme file." /> 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" />
@ -57,7 +62,10 @@
<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*" />
@ -68,7 +76,10 @@
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,7 +180,7 @@
<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>
@ -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}"
Height="60"
Width="60" Width="60"
Command="{Binding Slideshow.SlideShowNextItemCommand}" Height="60"
ToolTip="Skip to the next mod" Margin="6"
Margin="6">
<icon:PackIconFontAwesome Kind="ChevronRightSolid" Height="28" Width="28" />
</Button>
<ToggleButton Grid.Column="2"
IsChecked="{Binding Slideshow.Enable}"
Background="{StaticResource BackgroundBrush}" Background="{StaticResource BackgroundBrush}"
Command="{Binding Slideshow.SlideShowNextItemCommand}"
Style="{StaticResource CircleButtonStyle}"
ToolTip="Skip to the next mod">
<icon:PackIconFontAwesome
Width="28"
Height="28"
Kind="ChevronRightSolid" />
</Button>
<ToggleButton
x:Name="PlayPauseButton" x:Name="PlayPauseButton"
Margin="6"> Grid.Column="2"
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,61 +234,72 @@
</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"
Background="{StaticResource BackgroundBrush}"
Margin="6" Margin="6"
Command="{Binding Slideshow.VisitNexusSiteCommand}" > Background="{StaticResource BackgroundBrush}"
<icon:PackIconMaterial Kind="Web" Height="28" Width="28" /> Command="{Binding Slideshow.VisitNexusSiteCommand}"
Style="{StaticResource SlideshowButton}"
ToolTip="Open Nexus Website">
<icon:PackIconMaterial
Width="28"
Height="28"
Kind="Web" />
</Button> </Button>
<ToggleButton Grid.Column="0" <ToggleButton
Grid.Column="0"
Background="{StaticResource BackgroundBrush}"
IsChecked="{Binding Slideshow.ShowNSFW}" IsChecked="{Binding Slideshow.ShowNSFW}"
ToolTip="Show NSFW mods" ToolTip="Show NSFW mods">
Background="{StaticResource BackgroundBrush}">
<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
Margin="4"
HorizontalAlignment="Center" HorizontalAlignment="Center"
FontWeight="Bold" VerticalAlignment="Center"
FontSize="9"
FontFamily="Lucida Sans" FontFamily="Lucida Sans"
VerticalAlignment="Center" /> FontSize="9"
FontWeight="Bold"
Text="NSFW" />
<icon:PackIconOcticons <icon:PackIconOcticons
Width="40"
Height="40"
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
Foreground="#88FFFFFF" Foreground="#88FFFFFF"
Height="40"
Width="40"
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>
@ -271,73 +308,83 @@
</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
x:Name="BottomProgressBarDarkGlow"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="2" Grid.RowSpan="2"
Height="16"
Margin="-4"
VerticalAlignment="Top" VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Foreground="{StaticResource PrimaryVariantBrush}"
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
x:Name="BottomProgressBarBrightGlow"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="2" Grid.RowSpan="2"
Height="6"
Margin="-4"
VerticalAlignment="Top" VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Foreground="{StaticResource PrimaryBrush}"
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.Column="0"
Grid.ColumnSpan="4" Grid.ColumnSpan="4"
Background="{StaticResource WindowBackgroundBrush}" Background="{StaticResource WindowBackgroundBrush}"
BorderThickness="0" BorderThickness="0"
Foreground="Transparent" Foreground="Transparent"
Maximum="1" Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}" /> Value="{Binding ProgressPercent, Mode=OneWay}" />
<mahapps:MetroProgressBar Grid.Column="0" Grid.ColumnSpan="4" <mahapps:MetroProgressBar
Grid.Column="0"
Grid.ColumnSpan="4"
Background="Transparent" Background="Transparent"
BorderThickness="0" BorderThickness="0"
Foreground="{StaticResource PrimaryVariantBrush}" Foreground="{StaticResource PrimaryVariantBrush}"
Opacity="{Binding ProgressPercent, Mode=OneWay}"
Maximum="1" Maximum="1"
Opacity="{Binding ProgressPercent, Mode=OneWay}"
Value="{Binding ProgressPercent, Mode=OneWay}" /> Value="{Binding ProgressPercent, Mode=OneWay}" />
<TextBlock Grid.Column="0" <TextBlock
VerticalAlignment="Bottom" Grid.Column="0"
Margin="10,0,0,8"
Width="90" Width="90"
Margin="10,0,0,8"
VerticalAlignment="Bottom"
FontFamily="Lucida Sans"
FontWeight="Black" FontWeight="Black"
TextAlignment="Right" TextAlignment="Right">
FontFamily="Lucida Sans" >
<TextBlock.Style> <TextBlock.Style>
<Style TargetType="TextBlock"> <Style TargetType="TextBlock">
<Setter Property="Text" Value="Configuring" /> <Setter Property="Text" Value="Configuring" />
@ -367,12 +414,14 @@
</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"
VerticalAlignment="Center"
FontFamily="Lucida Sans"
FontSize="25" FontSize="25"
FontWeight="Black" FontWeight="Black"
FontFamily="Lucida Sans" /> Text="{Binding ModListName}" />
<!-- Readd when Pause/Stop implementations added --> <!-- Readd when Pause/Stop implementations added -->
<!--<Button Grid.Column="2" <!--<Button Grid.Column="2"
ToolTip="Pause Installation" ToolTip="Pause Installation"
@ -393,78 +442,89 @@
Kind="TimesCircleSolid" /> Kind="TimesCircleSolid" />
</Button>--> </Button>-->
</Grid> </Grid>
<mahapps:MetroProgressBar x:Name="BottomProgressBar" <mahapps:MetroProgressBar
x:Name="BottomProgressBar"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="2" Grid.RowSpan="2"
Height="5"
VerticalAlignment="Top" VerticalAlignment="Top"
Maximum="1" Background="Transparent"
Value="{Binding ProgressPercent, Mode=OneWay}" BorderBrush="Transparent"
Foreground="{StaticResource PrimaryBrush}" Foreground="{StaticResource PrimaryBrush}"
Background="Transparent" Maximum="1"
BorderBrush="Transparent" Value="{Binding ProgressPercent, Mode=OneWay}" />
Height="5" /> <mahapps:MetroProgressBar
<mahapps:MetroProgressBar x:Name="BottomProgressBarHighlight" x:Name="BottomProgressBarHighlight"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="2" Grid.RowSpan="2"
Height="5"
VerticalAlignment="Top" VerticalAlignment="Top"
Maximum="1"
Value="{Binding ProgressPercent, Mode=OneWay}"
Background="Transparent" Background="Transparent"
BorderBrush="Transparent" BorderBrush="Transparent"
Height="5" > 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"
Margin="30,5"
Command="{Binding OpenReadmeCommand}"
Content="Readme" Content="Readme"
ToolTip="Open the readme for the modlist"
FontSize="20" FontSize="20"
Command="{Binding OpenReadmeCommand}" /> ToolTip="Open the readme for the modlist" />
<Button Grid.Row="1" <Button
Margin="30, 5" Grid.Row="1"
Margin="30,5"
Command="{Binding VisitWebsiteCommand}"
Content="Website" Content="Website"
ToolTip="Open the webpage for the modlist"
FontSize="20" FontSize="20"
Command="{Binding VisitWebsiteCommand}" /> ToolTip="Open the webpage for the modlist" />
<Button Grid.Row="2" <Button
Margin="30, 5" Grid.Row="2"
Margin="30,5"
Command="{Binding ShowReportCommand}"
Content="Manifest" Content="Manifest"
ToolTip="Open an explicit listing of all actions this modlist will take"
FontSize="20" FontSize="20"
Command="{Binding ShowReportCommand}" /> 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"
Background="Transparent"
VerticalScrollBarVisibility="Auto"
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}"> Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
<Grid Margin="8"> <Grid Margin="8">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
@ -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"
Grid.RowSpan="2"
Grid.Column="0"
Grid.ColumnSpan="5"
Width="76" Width="76"
Height="76" Height="76"
CornerRadius="43"
Margin="0,0,14,0" Margin="0,0,14,0"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Background="{StaticResource PrimaryVariantBrush}" > 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"
Text="Installation Location" />
<local:FilePicker Grid.Column="2" Grid.Row="1"
Height="30"
FontSize="14"
VerticalAlignment="Center" VerticalAlignment="Center"
PathType="Folder" FontSize="14"
Text="Installation Location"
TextAlignment="Center" />
<local:FilePicker
Grid.Row="1"
Grid.Column="2"
Height="30"
VerticalAlignment="Center"
DoExistsCheck="False" DoExistsCheck="False"
FontSize="14"
PathType="Folder"
PromptTitle="Select Installation directory" PromptTitle="Select Installation directory"
TargetPath="{Binding Location}" /> TargetPath="{Binding Location}" />
<TextBlock Grid.Column="0" Grid.Row="2" <TextBlock
Grid.Row="2"
Grid.Column="0"
HorizontalAlignment="Right"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="14" FontSize="14"
HorizontalAlignment="Right" Text="Download Location"
TextAlignment="Center" TextAlignment="Center" />
Text="Download Location" /> <local:FilePicker
<local:FilePicker Grid.Column="2" Grid.Row="2" Grid.Row="2"
Grid.Column="2"
Height="30" Height="30"
FontSize="14"
PathType="Folder"
VerticalAlignment="Center" VerticalAlignment="Center"
DoExistsCheck="False" DoExistsCheck="False"
FontSize="14"
PathType="Folder"
PromptTitle="Select a location for MO2 downloads" PromptTitle="Select a location for MO2 downloads"
TargetPath="{Binding DownloadLocation}" /> TargetPath="{Binding DownloadLocation}" />
<Button Grid.Row="1" Grid.RowSpan="2" <Button
Grid.Column="4"
x:Name="BeginButton" x:Name="BeginButton"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="4"
Width="55" Width="55"
Height="55" Height="55"
Margin="0,0,25,0" Margin="0,0,25,0"
BorderBrush="{StaticResource SecondaryBrush}"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Background="#222222" Background="#222222"
Style="{StaticResource CircleButtonStyle}" BorderBrush="{StaticResource SecondaryBrush}"
Command="{Binding BeginCommand}"> 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
Grid.Column="0"
Grid.ColumnSpan="3"
Height="1" Height="1"
Margin="25,0" Margin="25,0"
VerticalAlignment="Top" VerticalAlignment="Top"
Fill="{StaticResource DarkBackgroundBrush}"/> 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,7 +659,8 @@
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
x:Name="CpuListBox"
Grid.Column="2" Grid.Column="2"
ItemsSource="{Binding MWVM.StatusList}"> ItemsSource="{Binding MWVM.StatusList}">
<ListBox.ItemTemplate> <ListBox.ItemTemplate>

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
x:Class="Wabbajack.ModeSelectionWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="{StaticResource {x:Type Window}}"
Icon="../Resources/Icons/wabbajack.ico"
WindowStyle="ToolWindow"
xmlns:local="clr-namespace:Wabbajack" xmlns:local="clr-namespace:Wabbajack"
mc:Ignorable="d" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Wabbajack" Height="500" Width="800" ResizeMode="NoResize" Title="Wabbajack"
Closing="Close_Window"> Width="800"
Height="500"
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
x:Class="Wabbajack.TextViewer"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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"
Width="800"
Height="450"
Icon="../Resources/Icons/wabbajack.ico" Icon="../Resources/Icons/wabbajack.ico"
Style="{StaticResource {x:Type Window}}"
WindowStyle="ToolWindow" WindowStyle="ToolWindow"
Title="TextViewer" Height="450" Width="800"> 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>