public override bool OnMouseButton(MouseButtonEventArgs E, bool Pressed) { int X = NanoVG.ScaleX(E.X); int Y = NanoVG.ScaleY(E.Y); if (Pressed && DemoGameButton?.Collide(X, Y) == true) { StateManager.Push(new DemoGameState()); return(true); } if (Pressed && ExitButton?.Collide(X, Y) == true) { StateManager.Pop(); Engine.Running = false; return(true); } return(base.OnMouseButton(E, Pressed)); }