//static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e) { // //System.Windows.Forms.MessageBox.Show(e.Exception.ToString()); //} /// <summary> /// Loads the game data. /// </summary> public static void LoadData() { // Load the main font Graphics.FontManager.InitFonts(); IO.Options.Initialize(); IO.Options.LoadOptions(); IO.ControlLoader.LoadControls(); // Load the initial skin Skins.SkinManager.ChangeActiveSkin(IO.Options.ActiveSkin); if (Globals.InDebugMode) { // Init the debug controls Globals.GameScreen.InitControls(); } SdlDotNet.Widgets.Widgets.Initialize( SdlDotNet.Graphics.Video.Screen, SdlDotNet.Widgets.Widgets.ResourceDirectory, IO.Paths.FontPath + "tahoma.ttf", 12 ); //SdlDotNet.Widgets.Settings.DefaultFont = ; //SdlDotNet.Widgets.WindowManager.Initialize(SdlDotNet.Graphics.Video.Screen); //SdlDotNet.Widgets.WindowManager.WindowSwitcherEnabled = false; GraphicsCache.LoadCache(); Input.InputProcessor.Initialize(); // Switch to the loading window SdlDotNet.Widgets.WindowManager.AddWindow(new winLoading()); ((winLoading)WindowSwitcher.FindWindow("winLoading")).UpdateLoadText("Checking for updates..."); DoUpdateCheck(); }