2020-01-21 01:07:41 +00:00
|
|
|
<rxui:ReactiveUserControl
|
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"
|
2019-12-09 00:19:36 +00:00
|
|
|
xmlns:common="clr-namespace:Wabbajack.Common;assembly=Wabbajack.Common"
|
2019-10-28 04:35:31 +00:00
|
|
|
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-12-09 00:19:36 +00:00
|
|
|
xmlns:lib="clr-namespace:Wabbajack.Lib;assembly=Wabbajack.Lib"
|
2019-10-28 04:35:31 +00:00
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
2020-01-16 02:29:45 +00:00
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
2019-11-02 00:17:23 +00:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2020-01-21 01:07:41 +00:00
|
|
|
xmlns:rxui="http://reactiveui.net"
|
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"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:TypeArguments="local:InstallerVM"
|
2019-10-28 04:35:31 +00:00
|
|
|
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-30 09:08:04 +00:00
|
|
|
<RowDefinition Height="47" />
|
2019-10-28 04:35:31 +00:00
|
|
|
<RowDefinition Height="4*" />
|
2019-12-11 03:39:09 +00:00
|
|
|
<RowDefinition Height="*" MinHeight="175" />
|
2019-10-28 04:35:31 +00:00
|
|
|
</Grid.RowDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Rectangle Grid.Row="1" Grid.RowSpan="2"
|
|
|
|
x:Name="BorderEdgeFadeDown">
|
2019-11-15 02:25:01 +00:00
|
|
|
<Rectangle.Fill>
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
|
|
<GradientStop Offset="0" Color="#191919" />
|
|
|
|
<GradientStop Offset="0.4" Color="#00191919" />
|
|
|
|
</LinearGradientBrush>
|
|
|
|
</Rectangle.Fill>
|
|
|
|
</Rectangle>
|
2020-07-25 22:15:26 +00:00
|
|
|
<local:HeatedBackgroundView Grid.Row="0" Grid.RowSpan="3"
|
|
|
|
x:Name="HeatedBackground" />
|
|
|
|
<Grid Grid.Row="1"
|
2019-11-02 00:17:23 +00:00
|
|
|
x:Name="Slideshow"
|
2019-11-09 01:53:32 +00:00
|
|
|
Margin="5,0,5,5">
|
2019-11-29 22:09:22 +00:00
|
|
|
<Border BorderBrush="{StaticResource BorderInterestBrush}" BorderThickness="1,0,1,1">
|
2020-01-16 02:29:45 +00:00
|
|
|
<Grid>
|
2020-01-21 01:07:41 +00:00
|
|
|
<local:DetailImageView x:Name="DetailImage" />
|
|
|
|
<mahapps:ProgressRing x:Name="ModlistLoadingRing" />
|
2020-01-16 02:29:45 +00:00
|
|
|
</Grid>
|
2019-11-09 01:53:32 +00:00
|
|
|
</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>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Column="3"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="SkipSlideButton"
|
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}"
|
|
|
|
Style="{StaticResource CircleButtonStyle}"
|
|
|
|
ToolTip="Skip to the next mod">
|
|
|
|
<icon:PackIconFontAwesome
|
|
|
|
Width="28"
|
|
|
|
Height="28"
|
|
|
|
Kind="ChevronRightSolid" />
|
|
|
|
</Button>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ToggleButton Grid.Column="2"
|
2019-11-09 01:53:32 +00:00
|
|
|
x:Name="PlayPauseButton"
|
|
|
|
Margin="6"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
2020-01-21 01:07:41 +00:00
|
|
|
Style="{StaticResource SlideshowButton}">
|
2019-11-09 01:53:32 +00:00
|
|
|
<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>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Column="1"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="OpenWebsite"
|
2019-11-09 01:53:32 +00:00
|
|
|
Margin="6"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
Style="{StaticResource SlideshowButton}"
|
2020-01-21 01:07:41 +00:00
|
|
|
ToolTip="Open mod's website">
|
2019-11-09 01:53:32 +00:00
|
|
|
<icon:PackIconMaterial
|
|
|
|
Width="28"
|
|
|
|
Height="28"
|
|
|
|
Kind="Web" />
|
|
|
|
</Button>
|
2020-07-25 22:15:26 +00:00
|
|
|
<ToggleButton Grid.Column="0"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="ShowNSFWButton"
|
2019-11-09 01:53:32 +00:00
|
|
|
Background="{StaticResource BackgroundBrush}"
|
2020-01-21 01:07:41 +00:00
|
|
|
Style="{StaticResource SlideshowButton}">
|
2019-11-09 01:53:32 +00:00
|
|
|
<Grid>
|
|
|
|
<TextBlock
|
|
|
|
Margin="4"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontFamily="Lucida Sans"
|
|
|
|
FontSize="9"
|
|
|
|
FontWeight="Bold"
|
|
|
|
Text="NSFW" />
|
|
|
|
<icon:PackIconOcticons
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="NSFWSlashIcon"
|
2019-11-09 01:53:32 +00:00
|
|
|
Width="40"
|
|
|
|
Height="40"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="#88FFFFFF"
|
2020-01-21 01:07:41 +00:00
|
|
|
Kind="CircleSlash" />
|
2019-11-09 01:53:32 +00:00
|
|
|
</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 -->
|
2020-07-25 22:15:26 +00:00
|
|
|
<local:TopProgressView Grid.Row="0" Grid.RowSpan="2"
|
|
|
|
x:Name="TopProgressBar">
|
2019-11-09 04:21:33 +00:00
|
|
|
<!-- Readd when Pause/Stop implementations added -->
|
|
|
|
<!--<Button Grid.Column="2"
|
|
|
|
ToolTip="Pause Installation"
|
|
|
|
Margin="0,0,0,5"
|
|
|
|
Width="50"
|
2019-12-18 03:10:38 +00:00
|
|
|
Visibility="{Binding StartedInstallation, Converter={StaticResource bool2VisibilityConverter}}">
|
2019-11-09 04:21:33 +00:00
|
|
|
<icon:PackIconMaterial
|
|
|
|
Kind="Pause" />
|
|
|
|
</Button>
|
|
|
|
<Button Grid.Column="3"
|
|
|
|
ToolTip="Stop Installation"
|
|
|
|
Margin="0,0,0,5"
|
|
|
|
Width="50"
|
2019-12-18 03:10:38 +00:00
|
|
|
Visibility="{Binding StartedInstallation, Converter={StaticResource bool2VisibilityConverter}}" >
|
2019-11-09 04:21:33 +00:00
|
|
|
<icon:PackIconFontAwesome
|
|
|
|
Width="25"
|
|
|
|
Height="25"
|
|
|
|
Kind="TimesCircleSolid" />
|
|
|
|
</Button>-->
|
|
|
|
</local:TopProgressView>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Row="0" Grid.RowSpan="2"
|
2019-11-24 23:42:28 +00:00
|
|
|
x:Name="BackButton"
|
|
|
|
Width="30"
|
|
|
|
Height="30"
|
|
|
|
Margin="7,5,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
2019-11-30 09:08:04 +00:00
|
|
|
Style="{StaticResource IconCircleButtonStyle}"
|
2019-11-24 23:42:28 +00:00
|
|
|
ToolTip="Back to main menu">
|
|
|
|
<icon:PackIconMaterial Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Kind="ArrowLeft" />
|
|
|
|
</Button>
|
2019-11-02 00:17:23 +00:00
|
|
|
<!-- Bottom Area -->
|
2020-07-25 22:15:26 +00:00
|
|
|
<Grid Grid.Row="2"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="BottomButtonInputGrid"
|
2019-11-02 00:32:45 +00:00
|
|
|
Margin="5,0,5,5"
|
2020-01-21 01:07:41 +00:00
|
|
|
ClipToBounds="True">
|
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>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Row="0"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="OpenReadmePreInstallButton"
|
2019-11-02 00:17:23 +00:00
|
|
|
Margin="30,5"
|
|
|
|
FontSize="20"
|
2020-01-06 04:49:11 +00:00
|
|
|
Style="{StaticResource LargeButtonStyle}"
|
2019-12-15 07:10:04 +00:00
|
|
|
ToolTip="Open the readme for the modlist">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="30" />
|
|
|
|
<ColumnDefinition Width="82" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<icon:PackIconFontAwesome Grid.Column="0"
|
2019-12-15 07:10:04 +00:00
|
|
|
Width="30"
|
|
|
|
Height="30"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Kind="ReadmeBrands" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Column="1"
|
2019-12-15 07:10:04 +00:00
|
|
|
Margin="10,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="Readme" />
|
|
|
|
</Grid>
|
|
|
|
</Button>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Row="1"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="VisitWebsitePreInstallButton"
|
2019-11-02 00:17:23 +00:00
|
|
|
Margin="30,5"
|
|
|
|
FontSize="20"
|
2020-01-06 04:49:11 +00:00
|
|
|
Style="{StaticResource LargeButtonStyle}"
|
2019-12-15 07:10:04 +00:00
|
|
|
ToolTip="Open the webpage for the modlist">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="30" />
|
|
|
|
<ColumnDefinition Width="82" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<icon:PackIconMaterial Grid.Column="0"
|
2019-12-15 07:10:04 +00:00
|
|
|
Width="30"
|
|
|
|
Height="30"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Kind="Web" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Column="1"
|
2019-12-15 07:10:04 +00:00
|
|
|
Margin="10,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="Website" />
|
|
|
|
</Grid>
|
|
|
|
</Button>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Button Grid.Row="2"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="ShowManifestPreInstallButton"
|
2019-11-02 00:17:23 +00:00
|
|
|
Margin="30,5"
|
|
|
|
FontSize="20"
|
2020-01-06 04:49:11 +00:00
|
|
|
Style="{StaticResource LargeButtonStyle}"
|
2019-12-15 07:10:04 +00:00
|
|
|
ToolTip="Open an explicit listing of all actions this modlist will take">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="30" />
|
|
|
|
<ColumnDefinition Width="82" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2020-07-25 22:15:26 +00:00
|
|
|
<icon:PackIconOcticons Grid.Column="0"
|
2019-12-15 07:10:04 +00:00
|
|
|
Width="30"
|
|
|
|
Height="30"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Kind="Checklist" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<TextBlock Grid.Column="1"
|
2019-12-15 07:10:04 +00:00
|
|
|
Margin="10,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="Manifest" />
|
|
|
|
</Grid>
|
|
|
|
</Button>
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid>
|
2020-07-25 22:58:45 +00:00
|
|
|
<local:InstallationConfigurationView Grid.Column="2"
|
2019-11-02 00:17:23 +00:00
|
|
|
x:Name="InstallationConfigurationView"
|
2020-07-25 22:58:45 +00:00
|
|
|
ViewModel="{Binding}" />
|
2019-10-30 19:45:42 +00:00
|
|
|
</Grid>
|
2020-07-25 22:15:26 +00:00
|
|
|
<Grid Grid.Row="2"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="MidInstallDisplayGrid"
|
|
|
|
Margin="5,0,5,5">
|
2019-12-08 22:30:49 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2019-12-15 20:20:31 +00:00
|
|
|
<ColumnDefinition Width="4*" />
|
2019-12-08 22:30:49 +00:00
|
|
|
<ColumnDefinition Width="5" />
|
2019-12-15 20:20:31 +00:00
|
|
|
<ColumnDefinition Width="3*" />
|
2019-12-08 22:30:49 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
2020-01-21 01:07:41 +00:00
|
|
|
<local:LogView x:Name="LogView" Grid.Column="0" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<local:CpuView Grid.Column="2"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="CpuView"
|
|
|
|
ViewModel="{Binding}" />
|
2020-07-25 22:15:26 +00:00
|
|
|
<local:AttentionBorder Grid.Column="2"
|
2020-01-21 04:23:33 +00:00
|
|
|
x:Name="UserInterventionsControl"
|
|
|
|
Content="{Binding ActiveGlobalUserIntervention}">
|
|
|
|
<local:AttentionBorder.Resources>
|
2020-08-11 15:37:17 +00:00
|
|
|
<DataTemplate DataType="{x:Type lib:ConfirmationIntervention}">
|
2020-01-21 04:23:33 +00:00
|
|
|
<local:ConfirmationInterventionView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type local:ConfirmUpdateOfExistingInstallVM}">
|
|
|
|
<local:ConfirmUpdateOfExistingInstallView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</local:AttentionBorder.Resources>
|
2019-12-19 04:44:43 +00:00
|
|
|
</local:AttentionBorder>
|
2020-07-25 22:15:26 +00:00
|
|
|
<local:InstallationCompleteView Grid.Column="2"
|
2020-01-21 01:07:41 +00:00
|
|
|
x:Name="InstallComplete"
|
|
|
|
ViewModel="{Binding}" />
|
2019-10-25 04:26:29 +00:00
|
|
|
</Grid>
|
2019-10-28 04:35:31 +00:00
|
|
|
</Grid>
|
2020-01-21 01:07:41 +00:00
|
|
|
</rxui:ReactiveUserControl>
|