mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
SlideshowView.xaml
Just moved some XAML into a subfile
This commit is contained in:
parent
93b6829904
commit
be5e740b57
@ -45,127 +45,12 @@
|
|||||||
<TextBlock FontSize="16" Text="{Binding ModListName}" />
|
<TextBlock FontSize="16" Text="{Binding ModListName}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Properties -->
|
<local:SlideshowView
|
||||||
<Grid
|
x:Name="Slideshow"
|
||||||
Name="PropertyCompilerGrid"
|
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,2,4">
|
Grid.ColumnSpan="2"
|
||||||
<Grid.RowDefinitions>
|
DataContext="{Binding Slideshow}" />
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="30" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Image
|
|
||||||
Grid.Row="0"
|
|
||||||
Margin="0,0,0,4"
|
|
||||||
Source="{Binding SplashScreenImage}"
|
|
||||||
Stretch="Fill" />
|
|
||||||
<Button
|
|
||||||
Grid.Row="1"
|
|
||||||
Height="30"
|
|
||||||
Command="{Binding OpenModListPropertiesCommand}"
|
|
||||||
IsEnabled="{Binding UIReady}">
|
|
||||||
<TextBlock
|
|
||||||
FontSize="15"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="Modlist Properties" />
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
<Grid
|
|
||||||
Name="PropertyInstallerGrid"
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="0"
|
|
||||||
Margin="0,0,2,4">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="30" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Image
|
|
||||||
Grid.Row="0"
|
|
||||||
Source="{Binding SplashScreenImage}"
|
|
||||||
Stretch="Fill" />
|
|
||||||
<Button
|
|
||||||
Grid.Row="1"
|
|
||||||
Height="30"
|
|
||||||
Command="{Binding OpenReadmeCommand}">
|
|
||||||
<TextBlock
|
|
||||||
FontSize="15"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="Open README" />
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
<!-- End Properties -->
|
|
||||||
|
|
||||||
<!-- Slideshow -->
|
|
||||||
<Grid
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="2,0,0,4">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="0"
|
|
||||||
FontSize="30"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="{Binding SplashScreenModName}" />
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="1"
|
|
||||||
FontSize="15"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="{Binding SplashScreenAuthorName}" />
|
|
||||||
<TextBlock
|
|
||||||
Grid.Row="2"
|
|
||||||
FontSize="15"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="{Binding SplashScreenSummary}"
|
|
||||||
TextWrapping="Wrap" />
|
|
||||||
<Grid Grid.Row="3" VerticalAlignment="Bottom">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
<ColumnDefinition Width="48" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<CheckBox
|
|
||||||
Name="EnableSlideShow"
|
|
||||||
Grid.Column="0"
|
|
||||||
Margin="0,10,0,0"
|
|
||||||
IsChecked="{Binding EnableSlideShow}">
|
|
||||||
Enable the Slideshow
|
|
||||||
</CheckBox>
|
|
||||||
<CheckBox
|
|
||||||
Name="ShowNSFWContent"
|
|
||||||
Grid.Column="1"
|
|
||||||
Margin="4,10,0,0"
|
|
||||||
IsChecked="{Binding SplashShowNSFW}">
|
|
||||||
Show NSFW Mods in the Slideshow
|
|
||||||
</CheckBox>
|
|
||||||
<Button
|
|
||||||
Grid.Column="2"
|
|
||||||
Height="30"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Command="{Binding SlideShowNextItemCommand}"
|
|
||||||
ToolTip="Skip to next slide">
|
|
||||||
<DockPanel>
|
|
||||||
<Image Source="{Binding NextIcon}" Stretch="Fill" />
|
|
||||||
</DockPanel>
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
<Button
|
|
||||||
Grid.Row="4"
|
|
||||||
Height="30"
|
|
||||||
Command="{Binding VisitNexusSiteCommand}">
|
|
||||||
<TextBlock
|
|
||||||
FontSize="15"
|
|
||||||
FontWeight="Bold"
|
|
||||||
Text="View Nexus Site" />
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
<!-- End Slideshow -->
|
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
|
@ -34,13 +34,13 @@ namespace Wabbajack
|
|||||||
|
|
||||||
if (mode == RunMode.Compile)
|
if (mode == RunMode.Compile)
|
||||||
{
|
{
|
||||||
PropertyCompilerGrid.Visibility = Visibility.Visible;
|
this.Slideshow.PropertyCompilerGrid.Visibility = Visibility.Visible;
|
||||||
PropertyInstallerGrid.Visibility = Visibility.Hidden;
|
this.Slideshow.PropertyInstallerGrid.Visibility = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PropertyCompilerGrid.Visibility = Visibility.Hidden;
|
this.Slideshow.PropertyCompilerGrid.Visibility = Visibility.Hidden;
|
||||||
PropertyInstallerGrid.Visibility = Visibility.Visible;
|
this.Slideshow.PropertyInstallerGrid.Visibility = Visibility.Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
|
138
Wabbajack/UI/SlideshowView.xaml
Normal file
138
Wabbajack/UI/SlideshowView.xaml
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
<UserControl
|
||||||
|
x:Class="Wabbajack.SlideshowView"
|
||||||
|
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"
|
||||||
|
xmlns:local="clr-namespace:Wabbajack"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
d:DesignHeight="450"
|
||||||
|
d:DesignWidth="800"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<!-- Properties -->
|
||||||
|
<Grid
|
||||||
|
Name="PropertyCompilerGrid"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="0,0,2,4">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="30" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Image
|
||||||
|
Grid.Row="0"
|
||||||
|
Margin="0,0,0,4"
|
||||||
|
Source="{Binding AppState.SplashScreenImage}"
|
||||||
|
Stretch="Fill" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="1"
|
||||||
|
Height="30"
|
||||||
|
Command="{Binding AppState.OpenModListPropertiesCommand}"
|
||||||
|
IsEnabled="{Binding AppState.UIReady}">
|
||||||
|
<TextBlock
|
||||||
|
FontSize="15"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="Modlist Properties" />
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<Grid
|
||||||
|
Name="PropertyInstallerGrid"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="0,0,2,4">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="30" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Image
|
||||||
|
Grid.Row="0"
|
||||||
|
Source="{Binding AppState.SplashScreenImage}"
|
||||||
|
Stretch="Fill" />
|
||||||
|
<Button
|
||||||
|
Grid.Row="1"
|
||||||
|
Height="30"
|
||||||
|
Command="{Binding AppState.OpenReadmeCommand}">
|
||||||
|
<TextBlock
|
||||||
|
FontSize="15"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="Open README" />
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<!-- End Properties -->
|
||||||
|
|
||||||
|
<!-- Slideshow -->
|
||||||
|
<Grid
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="2,0,0,4">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
FontSize="30"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="{Binding AppState.SplashScreenModName}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="1"
|
||||||
|
FontSize="15"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="{Binding AppState.SplashScreenAuthorName}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Row="2"
|
||||||
|
FontSize="15"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="{Binding AppState.SplashScreenSummary}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
<Grid Grid.Row="3" VerticalAlignment="Bottom">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="48" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<CheckBox
|
||||||
|
Name="EnableSlideShow"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="0,10,0,0"
|
||||||
|
IsChecked="{Binding AppState.EnableSlideShow}">
|
||||||
|
Enable the Slideshow
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Name="ShowNSFWContent"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="4,10,0,0"
|
||||||
|
IsChecked="{Binding AppState.SplashShowNSFW}">
|
||||||
|
Show NSFW Mods in the Slideshow
|
||||||
|
</CheckBox>
|
||||||
|
<Button
|
||||||
|
Grid.Column="2"
|
||||||
|
Height="30"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Command="{Binding AppState.SlideShowNextItemCommand}"
|
||||||
|
ToolTip="Skip to next slide">
|
||||||
|
<DockPanel>
|
||||||
|
<Image Source="{Binding AppState.NextIcon}" Stretch="Fill" />
|
||||||
|
</DockPanel>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<Button
|
||||||
|
Grid.Row="4"
|
||||||
|
Height="30"
|
||||||
|
Command="{Binding AppState.VisitNexusSiteCommand}">
|
||||||
|
<TextBlock
|
||||||
|
FontSize="15"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Text="View Nexus Site" />
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<!-- End Slideshow -->
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
28
Wabbajack/UI/SlideshowView.xaml.cs
Normal file
28
Wabbajack/UI/SlideshowView.xaml.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace Wabbajack
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for SlideshowView.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class SlideshowView : UserControl
|
||||||
|
{
|
||||||
|
public SlideshowView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="..\packages\Costura.Fody.4.0.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.4.0.0\build\Costura.Fody.props')" />
|
<Import Project="..\packages\Costura.Fody.4.0.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.4.0.0\build\Costura.Fody.props')" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
@ -238,6 +238,9 @@
|
|||||||
<Compile Include="Downloaders\NexusDownloader.cs" />
|
<Compile Include="Downloaders\NexusDownloader.cs" />
|
||||||
<Compile Include="Enums\RunMode.cs" />
|
<Compile Include="Enums\RunMode.cs" />
|
||||||
<Compile Include="Extensions\ReactiveUIExt.cs" />
|
<Compile Include="Extensions\ReactiveUIExt.cs" />
|
||||||
|
<Compile Include="UI\SlideshowView.xaml.cs">
|
||||||
|
<DependentUpon>SlideshowView.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="UI\ModlistPropertiesWindow.xaml.cs">
|
<Compile Include="UI\ModlistPropertiesWindow.xaml.cs">
|
||||||
<DependentUpon>ModlistPropertiesWindow.xaml</DependentUpon>
|
<DependentUpon>ModlistPropertiesWindow.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -259,6 +262,10 @@
|
|||||||
<Compile Include="Validation\ValidateModlist.cs" />
|
<Compile Include="Validation\ValidateModlist.cs" />
|
||||||
<Compile Include="ViewModel.cs" />
|
<Compile Include="ViewModel.cs" />
|
||||||
<Compile Include="zEditIntegration.cs" />
|
<Compile Include="zEditIntegration.cs" />
|
||||||
|
<Page Include="UI\SlideshowView.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="UI\MainWindow.xaml">
|
<Page Include="UI\MainWindow.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
Loading…
Reference in New Issue
Block a user