Created new Modlist Properties window

This commit is contained in:
erri120 2019-10-07 14:02:31 +02:00
parent 901de1ee8a
commit f4baae2cce
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
5 changed files with 72 additions and 2 deletions

View File

@ -167,6 +167,19 @@ namespace Wabbajack
}
}
public ICommand OpenModListPropertiesCommand
{
get
{
return new LambdaCommand(() => true, () => OpenModListProperties());
}
}
private void OpenModListProperties()
{
new ModlistPropertiesWindow().Show();
}
public string _nexusSiteURL = null;
private void VisitNexusSite()

View File

@ -31,9 +31,20 @@
<TextBlock Text="{Binding ModListName}" FontSize="16" />
</StackPanel>
<!-- Slideshow -->
<!-- Settings -->
<Grid Grid.Row="1" Grid.Column="0" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Source="{Binding SplashScreenImage}" Stretch="Uniform"></Image>
<Button Grid.Row="1" Height="30" Command="{Binding OpenModListPropertiesCommand}">
<TextBlock Text="Modlist Properties" FontSize="15" FontWeight="Bold"></TextBlock>
</Button>
</Grid>
<!-- End Settings -->
<Image Grid.Row="1" Grid.Column="0" Source="{Binding SplashScreenImage}" Stretch="Uniform" Margin="5"></Image>
<!-- Slideshow -->
<Grid Grid.Row="1" Grid.Column="1" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>

View File

@ -0,0 +1,12 @@
<Window x:Class="Wabbajack.ModlistPropertiesWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Wabbajack"
mc:Ignorable="d"
Title="ModlistPropertiesWindow" Height="450" Width="800">
<Grid>
</Grid>
</Window>

View File

@ -0,0 +1,27 @@
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.Shapes;
namespace Wabbajack
{
/// <summary>
/// Interaction logic for ModlistPropertiesWindow.xaml
/// </summary>
public partial class ModlistPropertiesWindow : Window
{
public ModlistPropertiesWindow()
{
InitializeComponent();
}
}
}

View File

@ -186,6 +186,9 @@
</ApplicationDefinition>
<Compile Include="Data.cs" />
<Compile Include="LambdaCommand.cs" />
<Compile Include="ModlistPropertiesWindow.xaml.cs">
<DependentUpon>ModlistPropertiesWindow.xaml</DependentUpon>
</Compile>
<Compile Include="NexusApi\Dtos.cs" />
<Compile Include="NexusApi\NexusApiUtils.cs" />
<Compile Include="ModeSelectionWindow.xaml.cs">
@ -220,6 +223,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ModlistPropertiesWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\Styles.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>