protected override void Initialize() { // Set the game resolution MiResolution.SetVirtualResolution(1200, 900); MiResolution.SetResolution(800, 600, false); // Initialize Input Handler inputHandler = new MicycleInputHandler(this); // Initialize screens startScreen = new MiMenuScreen(this); // Set active screen ToDraw.AddLast(startScreen); ToUpdate.Push(startScreen); ScriptEngine.ExecuteScript(new MiScript(startScreen.EntrySequence)); base.Initialize(); }
public bool ContainsScreen(MiScreen screen) { return(toUpdate.Contains(screen)); }
public void PushScreen(MiScreen screen) { toUpdate.Push(screen); toDraw.AddLast(screen); inputHandler.Focused = screen; }