Example #1
0
 public HelpScene(LotusGame game)
 {
     Game = game;
     back = new MainMenuOption("Back", MainMenuFunction.Exit);
     spriteBatch = new SpriteBatch(Game.GraphicsDevice);
     font = Fonts.BlackChancery36;
 }
        public LoadGameMenu(LotusGame game)
        {
            font = Fonts.Verdana25;
            SavedGames = game.SavedGames;
            this.game = game;
            Options = new List<MainMenuOption>();

            BackOption = new MenuOption(LanguageConfig.Config.BackButtonText);

            var position = new Vector2(GameConfig.Config.WindowWidth/2, GameConfig.Config.WindowHeight*.25f);

            for (int i = 0; i < SavedGames.Count; i++)
            {
                var size = new Vector2(GameGraphics.LoadGameMenuItem.Width, GameGraphics.LoadGameMenuItem.Height);

                var currentPosition = new Vector2(position.X - (size.X/2) + 15, position.Y - (size.Y/2) + (size.Y * i));

                   var option = new MainMenuOption(string.Empty, MainMenuFunction.None);
                option.Bounds = new Rectangle((int) currentPosition.X, (int) currentPosition.Y, (int) size.X, (int) size.Y);
                Options.Add(option);
            }
        }