public GameOverMenu(int fromLevel) { _fromLevel = fromLevel; _background = ResourceManager.tex_background_level1; _gameOverMsg = new TextBox("Game Over", new Rectangle(100, 50, 600, 100)); _backToMenuBtn = new TextButton("Back to Menu", new Rectangle(100, 250, 200, 100)); _continueBtn = new TextButton("Continue", new Rectangle(500, 250, 200, 100)); _quitBtn = new TextButton("Quit", new Rectangle(500, 450, 150, 100)); }
public VictoryMenu() { _background = ResourceManager.tex_background_level1; _hc = new HandCursors(); _victoryMsg = new TextBox("Thanks for playing", new Rectangle(100, 50, 600, 100)); if (ScoreHolder.hasLevel1) _level1Box = new TextBox("Level 1 : " + ScoreHolder.Level1.ToString("000000"), new Rectangle(350, 200, 350, 50)); if (ScoreHolder.hasLevel2) _level2Box = new TextBox("Level 2 : " + ScoreHolder.Level2.ToString("000000"), new Rectangle(350, 275, 350, 50)); if (ScoreHolder.hasLevel1 && ScoreHolder.hasLevel2) _levelTotal = new TextBox("Total : " + ScoreHolder.Total.ToString("000000"), new Rectangle(350, 350, 350, 50)); _backToMenuBtn = new TextButton("Back to Menu", new Rectangle(100, 200, 200, 100)); _quitBtn = new TextButton("Quit", new Rectangle(500, 450, 150, 100)); }