Splash Screen
Move initial loading logic to splash screen, before the main interface is shown
This commit is contained in:
31
gui/other/SplashScreen.cs
Normal file
31
gui/other/SplashScreen.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
/**
|
||||
* Author: HypherionSA
|
||||
* Launcher Splash Screen
|
||||
**/
|
||||
namespace WolfLauncher
|
||||
{
|
||||
public partial class SplashScreen : Form
|
||||
{
|
||||
public SplashScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void closeTimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
// Close splash after 5 seconds
|
||||
closeTimer.Enabled = false;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void SplashScreen_Load(object sender, EventArgs e)
|
||||
{
|
||||
// Load player profile and instances
|
||||
MainLauncherForm.INSTANCE.loadProfile();
|
||||
MainLauncherForm.INSTANCE.loadInstances();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user