public MainMenu(GameClass game) : base(game) { Background = new Image(game, @"Images\Screen_MainMenu"); title = new Label(game, "Keepers of Otherness", "Cambria_72pt_b", Color.White); title.Rect = new Rectangle(Globals.ScreenCenterX - title.Rect.Width / 2, 100, title.Rect.Width, title.Rect.Height); Add(title); subtitle = new Label(game, "Book 1: DARKNESS WITHIN", "Cambria_30pt", Color.White); subtitle.Rect = new Rectangle(Globals.ScreenCenterX - subtitle.Rect.Width / 2, 100 + title.Rect.Height + 10, subtitle.Rect.Width, subtitle.Rect.Height); Add(subtitle); newGame = new Button(game, "New Game", "Cambria_18pt", Globals.ScreenCenterX - 90, Globals.ScreenHeight - 250, 180, 40); newGame.OnMouseClick = delegate(object sender, EventArgs e) { game.Screen_NewGame = new NewGame(game); game.currentScreen = GameScreen.NEW_GAME; }; Add(newGame); loadGame = new Button(game, "Load Game", "Cambria_18pt", Globals.ScreenCenterX - 90, Globals.ScreenHeight - 250 + 10 + newGame.Rect.Height, 180, 40); Add(loadGame); settings = new Button(game, "Settings", "Cambria_18pt", Globals.ScreenCenterX - 90, Globals.ScreenHeight - 250 + 10 + newGame.Rect.Height + 10 + loadGame.Rect.Height, 180, 40); Add(settings); quit = new Button(game, "Exit", "Cambria_18pt", Globals.ScreenCenterX - 90, Globals.ScreenHeight - 250 + 10 + newGame.Rect.Height + 10 + loadGame.Rect.Height + 10 + settings.Rect.Height, 180, 40); quit.OnMouseClick = delegate(object sender, EventArgs e) { game.Exit(); }; Add(quit); }