2019-11-02 00:46:26 +00:00
|
|
|
<UserControl
|
2019-10-28 04:35:31 +00:00
|
|
|
x:Class="Wabbajack.InstallationView"
|
|
|
|
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-02 00:17:23 +00:00
|
|
|
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
2019-10-28 04:35:31 +00:00
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
|
|
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-09 01:53:32 +00:00
|
|
|
d:DataContext="{d:DesignInstance local:InstallerVM}"
|
2019-10-28 04:35:31 +00:00
|
|
|
d:DesignHeight="500"
|
|
|
|
d:DesignWidth="800"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<UserControl.Resources>
|
2019-11-02 00:17:23 +00:00
|
|
|
<Style
|
|
|
|
x:Key="SlideshowButton"
|
|
|
|
BasedOn="{StaticResource CircleButtonStyle}"
|
|
|
|
TargetType="ButtonBase">
|
2019-10-28 04:35:31 +00:00
|
|
|
<Setter Property="Width" Value="40" />
|
|
|
|
<Setter Property="Height" Value="40" />
|
|
|
|
<Setter Property="Margin" Value="4" />
|
|
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
2019-11-02 00:32:45 +00:00
|
|
|
<Grid>
|
2019-10-28 04:35:31 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-11-07 05:33:08 +00:00
|
|
|
<RowDefinition Height="45" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<RowDefinition Height="4*" />
|
|
|
|
<RowDefinition Height="*" MinHeight="150" />
|
|
|
|
</Grid.RowDefinitions>
|
2019-11-10 02:23:07 +00:00
|
|
|
<local:BorderFadeDownView
|
2019-11-02 07:17:21 +00:00
|
|
|
x:Name="BorderEdgeFadeDown"
|
|
|
|
Grid.Row="1"
|
2019-11-10 02:23:07 +00:00
|
|
|
Grid.RowSpan="2" />
|
2019-11-09 01:53:32 +00:00
|
|
|
<Grid
|
2019-11-02 00:17:23 +00:00
|
|
|
x:Name="Slideshow"
|
2019-11-07 05:33:08 +00:00
|
|
|
Grid.Row="1"
|
2019-11-09 01:53:32 +00:00
|
|
|
Margin="5,0,5,5">
|
|
|
|
<Border BorderBrush="#171717" BorderThickness="1,0,1,1">
|
|
|
|
<local:DetailImageView
|
|
|
|
Title="{Binding TitleText, Mode=OneWay}"
|
|
|
|
Author="{Binding AuthorText, Mode=OneWay}"
|
|
|
|
Description="{Binding Description, Mode=OneWay}"
|
|
|
|
Image="{Binding Image, Mode=OneWay}" />
|
|
|
|
</Border>
|
|
|
|
<Grid
|
|
|
|
Margin="0,20,25,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Top">
|
2019-11-02 00:32:45 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-11-09 01:53:32 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2019-11-02 00:32:45 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-09 01:53:32 +00:00
|
|
|
<Grid.Effect>
|
|
|
|
<DropShadowEffect
|
|
|
|
BlurRadius="25"
|
|
|
|
Opacity="1"
|
|
|
|
Color="Black" />
|
|
|
|
</Grid.Effect>
|
|
|
|
<Grid.Style>
|
|
|
|
<Style TargetType="Grid">
|
|
|
|
<Setter Property="Opacity" Value="0" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<MultiDataTrigger>
|
|
|
|
<MultiDataTrigger.Conditions>
|
|
|
|
<Condition Binding="{Binding IsMouseOver, ElementName=Slideshow}" Value="True" />
|
|
|
|
<Condition Binding="{Binding Installing}" Value="True" />
|
|
|
|
</MultiDataTrigger.Conditions>
|
|
|
|
<MultiDataTrigger.EnterActions>
|
|
|
|
<BeginStoryboard>
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0:0:0.12" />
|
|
|
|
</Storyboard>
|
|
|
|
</BeginStoryboard>
|
|
|
|
</MultiDataTrigger.EnterActions>
|
|
|
|
<MultiDataTrigger.ExitActions>
|
|
|
|
<BeginStoryboard>
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
|
|
|
|
<LinearDoubleKeyFrame KeyTime="0:0:0.3" Value="1" />
|
|
|
|
<LinearDoubleKeyFrame KeyTime="0:0:0.42" Value="0" />
|
|
|
|
</DoubleAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</BeginStoryboard>
|
|
|
|
</MultiDataTrigger.ExitActions>
|
|
|
|
</MultiDataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Grid.Style>
|
|
|
|
<Button
|
|
|
|
Grid.Column="3"
|
2019-11-02 00:32:45 +00:00
|
|
|
Width="60"
|
|
|
|
Height="60"
|
2019-11-09 01:53:32 +00:00
|
|
|
Margin="6"
|
|
|
|
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"
|
|
|
|
Grid.Column="2"
|
|
|
|
Margin="6"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
IsChecked="{Binding Slideshow.Enable}">
|
|
|
|
<ToggleButton.Style>
|
|
|
|
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
|
|
|
|
<Setter Property="ToolTip" Value="Play slideshow" />
|
2019-11-02 06:57:34 +00:00
|
|
|
<Style.Triggers>
|
2019-11-09 01:53:32 +00:00
|
|
|
<DataTrigger Binding="{Binding Slideshow.Enable}" Value="True">
|
|
|
|
<Setter Property="ToolTip" Value="Pause slideshow" />
|
|
|
|
</DataTrigger>
|
2019-11-02 06:57:34 +00:00
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-09 01:53:32 +00:00
|
|
|
</ToggleButton.Style>
|
|
|
|
<icon:PackIconMaterial>
|
|
|
|
<icon:PackIconMaterial.Style>
|
|
|
|
<Style TargetType="icon:PackIconMaterial">
|
|
|
|
<Setter Property="Kind" Value="Play" />
|
2019-11-01 03:39:58 +00:00
|
|
|
<Style.Triggers>
|
2019-11-02 06:57:34 +00:00
|
|
|
<DataTrigger Binding="{Binding Slideshow.Enable}" Value="True">
|
2019-11-09 01:53:32 +00:00
|
|
|
<Setter Property="Kind" Value="Pause" />
|
2019-11-02 06:57:34 +00:00
|
|
|
</DataTrigger>
|
2019-11-01 03:39:58 +00:00
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
2019-11-09 01:53:32 +00:00
|
|
|
</icon:PackIconMaterial.Style>
|
|
|
|
</icon:PackIconMaterial>
|
|
|
|
</ToggleButton>
|
|
|
|
<Button
|
2019-11-02 06:57:34 +00:00
|
|
|
Grid.Column="1"
|
2019-11-09 01:53:32 +00:00
|
|
|
Margin="6"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
Command="{Binding Slideshow.VisitNexusSiteCommand}"
|
|
|
|
Style="{StaticResource SlideshowButton}"
|
|
|
|
ToolTip="Open Nexus Website">
|
|
|
|
<icon:PackIconMaterial
|
|
|
|
Width="28"
|
|
|
|
Height="28"
|
|
|
|
Kind="Web" />
|
|
|
|
</Button>
|
|
|
|
<ToggleButton
|
2019-11-02 06:57:34 +00:00
|
|
|
Grid.Column="0"
|
2019-11-09 01:53:32 +00:00
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
IsChecked="{Binding Slideshow.ShowNSFW}"
|
|
|
|
ToolTip="Show NSFW mods">
|
|
|
|
<ToggleButton.Style>
|
|
|
|
<Style BasedOn="{StaticResource SlideshowButton}" TargetType="ToggleButton">
|
|
|
|
<Setter Property="ToolTip" Value="Show NSFW mods" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding Slideshow.ShowNSFW}" Value="True">
|
|
|
|
<Setter Property="ToolTip" Value="Hide NSFW mods" />
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</ToggleButton.Style>
|
|
|
|
<Grid>
|
|
|
|
<TextBlock
|
|
|
|
Margin="4"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontFamily="Lucida Sans"
|
|
|
|
FontSize="9"
|
|
|
|
FontWeight="Bold"
|
|
|
|
Text="NSFW" />
|
|
|
|
<icon:PackIconOcticons
|
|
|
|
Width="40"
|
|
|
|
Height="40"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="#88FFFFFF"
|
|
|
|
Kind="CircleSlash"
|
|
|
|
Visibility="{Binding Slideshow.ShowNSFW, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}" />
|
|
|
|
</Grid>
|
|
|
|
</ToggleButton>
|
2019-10-28 04:35:31 +00:00
|
|
|
</Grid>
|
2019-11-09 01:53:32 +00:00
|
|
|
</Grid>
|
2019-11-02 00:17:23 +00:00
|
|
|
<!-- Comes after slideshow control, so that any effects/overlap goes on top -->
|
2019-11-09 04:21:33 +00:00
|
|
|
<local:TopProgressView
|
|
|
|
Title="{Binding ModListName}"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
ProgressPercent="{Binding ProgressPercent}"
|
|
|
|
StatePrefixTitle="{Binding ProgressTitle}">
|
|
|
|
<!-- Readd when Pause/Stop implementations added -->
|
|
|
|
<!--<Button Grid.Column="2"
|
|
|
|
ToolTip="Pause Installation"
|
|
|
|
Margin="0,0,0,5"
|
|
|
|
Width="50"
|
|
|
|
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}">
|
|
|
|
<icon:PackIconMaterial
|
|
|
|
Kind="Pause" />
|
|
|
|
</Button>
|
|
|
|
<Button Grid.Column="3"
|
|
|
|
ToolTip="Stop Installation"
|
|
|
|
Margin="0,0,0,5"
|
|
|
|
Width="50"
|
|
|
|
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}}" >
|
|
|
|
<icon:PackIconFontAwesome
|
|
|
|
Width="25"
|
|
|
|
Height="25"
|
|
|
|
Kind="TimesCircleSolid" />
|
|
|
|
</Button>-->
|
|
|
|
</local:TopProgressView>
|
2019-11-02 00:17:23 +00:00
|
|
|
<!-- Bottom Area -->
|
2019-11-02 00:32:45 +00:00
|
|
|
<Grid
|
2019-11-07 05:33:08 +00:00
|
|
|
Grid.Row="2"
|
2019-11-02 00:32:45 +00:00
|
|
|
Margin="5,0,5,5"
|
|
|
|
ClipToBounds="True"
|
|
|
|
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
|
2019-10-28 04:35:31 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
2019-10-30 19:45:42 +00:00
|
|
|
<ColumnDefinition Width="4" />
|
|
|
|
<ColumnDefinition Width="2*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2019-11-02 00:17:23 +00:00
|
|
|
<Grid Grid.Column="0" Margin="10">
|
2019-10-30 19:45:42 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="*" />
|
2019-11-01 02:57:49 +00:00
|
|
|
<RowDefinition Height="*" />
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid.RowDefinitions>
|
2019-11-02 00:17:23 +00:00
|
|
|
<Button
|
|
|
|
Grid.Row="0"
|
|
|
|
Margin="30,5"
|
|
|
|
Command="{Binding OpenReadmeCommand}"
|
|
|
|
Content="Readme"
|
|
|
|
FontSize="20"
|
|
|
|
ToolTip="Open the readme for the modlist" />
|
|
|
|
<Button
|
|
|
|
Grid.Row="1"
|
|
|
|
Margin="30,5"
|
|
|
|
Command="{Binding VisitWebsiteCommand}"
|
|
|
|
Content="Website"
|
|
|
|
FontSize="20"
|
|
|
|
ToolTip="Open the webpage for the modlist" />
|
|
|
|
<Button
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="30,5"
|
|
|
|
Command="{Binding ShowReportCommand}"
|
|
|
|
Content="Manifest"
|
|
|
|
FontSize="20"
|
|
|
|
ToolTip="Open an explicit listing of all actions this modlist will take" />
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid>
|
2019-11-02 00:17:23 +00:00
|
|
|
<Grid
|
|
|
|
x:Name="InstallationConfigurationView"
|
|
|
|
Grid.Column="2"
|
|
|
|
Background="{StaticResource WindowBackgroundBrush}">
|
|
|
|
<Border
|
|
|
|
x:Name="ConfigurationBackgroundHaze"
|
|
|
|
Height="120"
|
|
|
|
Background="{StaticResource PrimaryVariantBrush}"
|
|
|
|
CornerRadius="50"
|
|
|
|
Opacity="0.10">
|
2019-11-01 04:34:12 +00:00
|
|
|
<Border.Effect>
|
|
|
|
<BlurEffect Radius="45" />
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
2019-11-02 00:17:23 +00:00
|
|
|
<ScrollViewer
|
|
|
|
Margin="5"
|
|
|
|
Background="Transparent"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, ConverterParameter=False}">
|
2019-10-30 19:45:42 +00:00
|
|
|
<Grid Margin="8">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="20" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="20" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="40" />
|
|
|
|
<RowDefinition Height="40" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
2019-11-02 00:17:23 +00:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontSize="14"
|
|
|
|
Text="Installation Location"
|
|
|
|
TextAlignment="Center" />
|
|
|
|
<local:FilePicker
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="2"
|
|
|
|
Height="30"
|
|
|
|
VerticalAlignment="Center"
|
2019-11-09 20:20:32 +00:00
|
|
|
DataContext="{Binding Location}"
|
|
|
|
FontSize="14" />
|
2019-11-02 00:17:23 +00:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontSize="14"
|
|
|
|
Text="Download Location"
|
|
|
|
TextAlignment="Center" />
|
|
|
|
<local:FilePicker
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="2"
|
|
|
|
Height="30"
|
|
|
|
VerticalAlignment="Center"
|
2019-11-09 20:20:32 +00:00
|
|
|
DataContext="{Binding DownloadLocation}"
|
|
|
|
FontSize="14" />
|
2019-11-09 05:46:36 +00:00
|
|
|
<local:BeginButton
|
2019-11-02 00:17:23 +00:00
|
|
|
Grid.Row="1"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Grid.Column="4"
|
|
|
|
Margin="0,0,25,0"
|
|
|
|
HorizontalAlignment="Right"
|
2019-11-09 05:46:36 +00:00
|
|
|
Command="{Binding BeginCommand, Mode=OneWay}" />
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
2019-11-02 00:17:23 +00:00
|
|
|
<Rectangle
|
2019-11-09 01:53:32 +00:00
|
|
|
x:Name="ControlTopThinSeparator"
|
2019-11-02 00:17:23 +00:00
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="3"
|
|
|
|
Height="1"
|
|
|
|
Margin="25,0"
|
|
|
|
VerticalAlignment="Top"
|
2019-11-09 01:53:32 +00:00
|
|
|
Fill="{StaticResource DarkBackgroundBrush}"
|
|
|
|
SnapsToDevicePixels="True" />
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid>
|
2019-11-02 00:32:45 +00:00
|
|
|
<Grid
|
2019-11-07 05:33:08 +00:00
|
|
|
Grid.Row="2"
|
2019-11-02 00:32:45 +00:00
|
|
|
Margin="5,0,5,5"
|
2019-11-09 05:46:36 +00:00
|
|
|
Visibility="{Binding InstallingMode, Converter={StaticResource bool2VisibilityConverter}, FallbackValue=Hidden}">
|
2019-11-07 05:33:08 +00:00
|
|
|
<local:LogCpuView DataContext="{Binding MWVM}" />
|
2019-10-25 04:26:29 +00:00
|
|
|
</Grid>
|
2019-10-28 04:35:31 +00:00
|
|
|
</Grid>
|
2019-10-25 04:26:29 +00:00
|
|
|
</UserControl>
|