public void Init() { Window.Resize += Resize; Window.FocusedChanged += FocusedChanged; Window.WindowStateChanged += Resize; Window.Keyboard.KeyDown += KeyDown; LoadFont(); logoFont = new Font(FontName, 32, FontStyle.Regular); string path = Assembly.GetExecutingAssembly().Location; Window.Icon = Icon.ExtractAssociatedIcon(path); //Minimised = Window.WindowState == WindowState.Minimized; PlatformID platform = Environment.OSVersion.Platform; if (platform == PlatformID.Win32Windows) { platformDrawer = new WinOldPlatformDrawer(); } else if (Configuration.RunningOnWindows) { platformDrawer = new WinPlatformDrawer(); } else if (Configuration.RunningOnX11) { platformDrawer = new X11PlatformDrawer(); } else if (Configuration.RunningOnMacOS) { platformDrawer = new OSXPlatformDrawer(); } }
public void Init() { Window.Resize += Resize; Window.FocusedChanged += FocusedChanged; Window.WindowStateChanged += Resize; LoadFont(); logoFont = new Font(FontName, 24, FontStyle.Regular); string path = Assembly.GetExecutingAssembly().Location; Window.Icon = Icon.ExtractAssociatedIcon(path); //Minimised = Window.WindowState == WindowState.Minimized; if (Configuration.RunningOnWindows) { platformDrawer = new WinPlatformDrawer(); } else if (Configuration.RunningOnX11) { platformDrawer = new X11PlatformDrawer(); } else if (Configuration.RunningOnMacOS) { platformDrawer = new OSXPlatformDrawer(); } }
void Init() { Window.Resize += Resize; Window.FocusedChanged += RedrawAll; Window.WindowStateChanged += Resize; Window.Redraw += RedrawPending; Keyboard.KeyDown += KeyDown; LoadSettings(); logoFont = new Font(FontName, 32, FontStyle.Regular); string path = Assembly.GetExecutingAssembly().Location; try { Window.Icon = Icon.ExtractAssociatedIcon(path); } catch (Exception ex) { ErrorHandler.LogError("LauncherWindow.Init() - Icon", ex); } //Minimised = Window.WindowState == WindowState.Minimized; PlatformID platform = Environment.OSVersion.Platform; if (platform == PlatformID.Win32Windows) { platformDrawer = new WinOldPlatformDrawer(); } else if (Configuration.RunningOnWindows) { platformDrawer = new WinPlatformDrawer(); } else if (Configuration.RunningOnX11) { platformDrawer = new X11PlatformDrawer(); } else if (Configuration.RunningOnMacOS) { platformDrawer = new OSXPlatformDrawer(); } IDrawer2D.Cols['g'] = new PackedCol(125, 125, 125); if (Platform.FileExists(Client.GetCExeName())) { ErrorHandler.ShowDialog("Deprecated Client", "ClassicalSharp is deprecated - use " + Client.GetCExeName() + " instead"); } else { ErrorHandler.ShowDialog("Deprecated Client", "ClassicalSharp is deprecated - update to latest release again and use " + Client.GetCExeName() + " instead"); } }
public void Init() { Window.Resize += Resize; Window.FocusedChanged += RedrawAll; Window.WindowStateChanged += Resize; Window.Redraw += RedrawPending; Keyboard.KeyDown += KeyDown; ClassicalSharp.Program.CleanupMainDirectory(); LoadFont(); logoFont = new Font(FontName, 32, FontStyle.Regular); string path = Assembly.GetExecutingAssembly().Location; try { Window.Icon = Icon.ExtractAssociatedIcon(path); } catch (Exception ex) { ErrorHandler.LogError("LauncherWindow.Init() - Icon", ex); } //Minimised = Window.WindowState == WindowState.Minimized; PlatformID platform = Environment.OSVersion.Platform; if (platform == PlatformID.Win32Windows) { platformDrawer = new WinOldPlatformDrawer(); } else if (Configuration.RunningOnWindows) { platformDrawer = new WinPlatformDrawer(); } else if (Configuration.RunningOnX11) { platformDrawer = new X11PlatformDrawer(); } else if (Configuration.RunningOnMacOS) { platformDrawer = new OSXPlatformDrawer(); } IDrawer2D.Cols['g'] = new PackedCol(125, 125, 125); }
public void Init() { Window.Resize += Resize; Window.FocusedChanged += FocusedChanged; Window.WindowStateChanged += Resize; Window.Keyboard.KeyDown += KeyDown; LoadFont(); logoFont = new Font( FontName, 32, FontStyle.Regular ); string path = Assembly.GetExecutingAssembly().Location; Window.Icon = Icon.ExtractAssociatedIcon( path ); //Minimised = Window.WindowState == WindowState.Minimized; if( Configuration.RunningOnWindows ) platformDrawer = new WinPlatformDrawer(); else if( Configuration.RunningOnX11 ) platformDrawer = new X11PlatformDrawer(); else if( Configuration.RunningOnMacOS ) platformDrawer = new OSXPlatformDrawer(); }