public DirectConnectScreen( LauncherWindow game ) : base(game, true) { booleanFont = new Font( game.FontName, 22, FontStyle.Regular ); enterIndex = 3; widgets = new LauncherWidget[8]; }
public ClassiCubeServersScreen( LauncherWindow game ) : base(game, true) { tableFont = new Font( game.FontName, 11, FontStyle.Regular ); enterIndex = 3; widgets = new LauncherWidget[7]; }
public LauncherBooleanWidget( LauncherWindow window, Font font, int width, int height ) : base(window) { BoxWidth = width; BoxHeight = height; Width = width; Height = height; this.font = font; }
static void Main() { Log.Info("SYSTEM", "Application started!"); //Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, false); //Application.ThreadException += (_, e) => LogException(e.Exception); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { var mainWindow = new LauncherWindow(); var glWindow = mainWindow.GetGLWindow(); var args = Environment.GetCommandLineArgs(); var loader = new ModelLoader(); var model = loader.LoadModel(args.ElementAtOrDefault(1)); var renderer = new Renderer(glWindow); var controller = new Controller(); controller.Initialize(renderer, model, mainWindow, mainWindow, glWindow); Application.Run(mainWindow); } catch (Exception ex) { LogException(ex); } }
public LauncherInputScreen( LauncherWindow game, bool makeFonts ) : base(game) { if( !makeFonts ) return; titleFont = new Font( game.FontName, 15, FontStyle.Bold ); inputFont = new Font( game.FontName, 14, FontStyle.Regular ); inputHintFont = new Font( game.FontName, 12, FontStyle.Italic ); }
public MainScreen( LauncherWindow game ) : base(game, true) { buttonFont = new Font( game.FontName, 16, FontStyle.Bold ); updateFont = new Font( game.FontName, 12, FontStyle.Italic ); enterIndex = 2; widgets = new LauncherWidget[16]; LoadResumeInfo(); }
static void Main( string[] args ) { AppDirectory = AppDomain.CurrentDomain.BaseDirectory; string logPath = Path.Combine( AppDirectory, "launcher.log" ); AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler; ErrorHandler.InstallHandler( logPath ); LauncherWindow window = new LauncherWindow(); window.Run(); }
public ChooseModeScreen( LauncherWindow game ) : base(game) { game.Window.Mouse.Move += MouseMove; game.Window.Mouse.ButtonDown += MouseButtonDown; titleFont = new Font( game.FontName, 16, FontStyle.Bold ); infoFont = new Font( game.FontName, 14, FontStyle.Regular ); buttonFont = titleFont; widgets = new LauncherWidget[14]; }
public ResourcesScreen( LauncherWindow game ) : base(game) { game.Window.Mouse.Move += MouseMove; game.Window.Mouse.ButtonDown += MouseButtonDown; textFont = new Font( game.FontName, 16, FontStyle.Bold ); infoFont = new Font( game.FontName, 14, FontStyle.Regular ); statusFont = new Font( game.FontName, 13, FontStyle.Italic ); buttonFont = textFont; widgets = new LauncherWidget[4]; }
public ChooseModeFirstTimeScreen( LauncherWindow game ) : base(game) { }
public LauncherLabelWidget( LauncherWindow window, string text ) : base(window) { Text = text; }
public ChooseModeNormalScreen( LauncherWindow game ) : base(game) { }
public ColoursScreen( LauncherWindow game ) : base(game, true) { enterIndex = 6; widgets = new LauncherWidget[25]; }
public LauncherInputWidget( LauncherWindow window ) : base(window) { }
public LauncherScreen( LauncherWindow game ) { this.game = game; drawer = game.Drawer; }
public LauncherButtonWidget( LauncherWindow window ) : base(window) { }
public LauncherTableWidget( LauncherWindow window ) : base(window) { OnClick = HandleOnClick; }
public LauncherWidget( LauncherWindow window ) { Window = window; }