diff --git a/Wabbajack/ModeSelectionWindow.xaml b/Wabbajack/ModeSelectionWindow.xaml index d6812a14..ee4da5aa 100644 --- a/Wabbajack/ModeSelectionWindow.xaml +++ b/Wabbajack/ModeSelectionWindow.xaml @@ -6,19 +6,28 @@ Style="{StaticResource {x:Type Window}}" Icon="square_transparent_icon.ico" WindowStyle="ToolWindow" xmlns:local="clr-namespace:Wabbajack" mc:Ignorable="d" - Title="Wabbajack" Height="450" Width="800" ResizeMode="NoResize" + Title="Wabbajack" Height="500" Width="800" ResizeMode="NoResize" Closing="Close_Window"> - + + + + + + + - - - diff --git a/Wabbajack/ModeSelectionWindow.xaml.cs b/Wabbajack/ModeSelectionWindow.xaml.cs index 844773ab..1391789e 100644 --- a/Wabbajack/ModeSelectionWindow.xaml.cs +++ b/Wabbajack/ModeSelectionWindow.xaml.cs @@ -6,6 +6,7 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; +using System.Diagnostics; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; @@ -25,8 +26,14 @@ namespace Wabbajack public ModeSelectionWindow() { InitializeComponent(); - var img = UIUtils.BitmapImageFromResource("Wabbajack.banner_small.png"); - Banner.Source = img; + var bannerImage = UIUtils.BitmapImageFromResource("Wabbajack.banner_small.png"); + Banner.Source = bannerImage; + var patreonIcon = UIUtils.BitmapImageFromResource("Wabbajack.Icons.patreon.png"); + Patreon.Source = patreonIcon; + var githubIcon = UIUtils.BitmapImageFromResource("Wabbajack.Icons.github.png"); + GitHub.Source = githubIcon; + var discordIcon = UIUtils.BitmapImageFromResource("Wabbajack.Icons.discord.png"); + Discord.Source = discordIcon; } private void CreateModlist_Click(object sender, RoutedEventArgs e) @@ -60,5 +67,20 @@ namespace Wabbajack } public bool ShutdownOnClose { get; set; } = true; + + private void GitHub_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Process.Start("https://github.com/halgari/wabbajack"); + } + + private void Patreon_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Process.Start("https://www.patreon.com/user?u=11907933"); + } + + private void Discord_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Process.Start("https://discord.gg/zgbrkmA"); + } } }