public NewGameScene(LotusGame game) { Game = game; spriteBatch = new SpriteBatch(Game.GraphicsDevice); //CreateSteps(); }
public HelpScene(LotusGame game) { Game = game; back = new MainMenuOption("Back", MainMenuFunction.Exit); spriteBatch = new SpriteBatch(Game.GraphicsDevice); font = Fonts.BlackChancery36; }
public GameStatsHelpScene(LotusGame game) { font = Fonts.BlackChancery36; Game = game; options = new List<MainMenuOption>(); if (send) options.Add(new MainMenuOption("Disable sending stats.", MainMenuFunction.None)); else options.Add(new MainMenuOption("Enable sending stats!", MainMenuFunction.None)); options.Add(new MainMenuOption("Back", MainMenuFunction.Exit)); spriteBatch = new SpriteBatch(Game.GraphicsDevice); }
public DebugWindow(LotusGame Game) { Player = Game.Player; game = Game; Width = 560; Height = 600; Opacity = 255; BackgroundColor = Color.White; addLevel = new Button("Add Level"); addLevel.Clicked += addLevel_Clicked; btnSaveGame = new Button("Save Game"); btnSaveGame.Clicked += btnSaveGame_Clicked; Controls = new List<Button>(); Controls.Add(addLevel); Controls.Add(btnSaveGame); Position = new Vector2( GameConfig.Config.WindowWidth/2 - Width/2, GameConfig.Config.WindowHeight/2 - Height/2); }
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); } }
public QuestWindow(LotusGame game) { this.Game = game; Title = "Quests"; BackgroundColor = Color.White; Quests = game.PlayerQuests; questSlots = new Vector2(1, 5); Opacity = 255; borderPadding = new Vector2(15, 15); questSlotSize = new Vector2(240, (borderPadding.Y*2) + Fonts.Arial12.MeasureString("Q").Y); SelectedIndex = -1; questListWindowSize = new Vector2(240, 400); questDetailsWindowSize = new Vector2(450, questListWindowSize.Y); textPadding = new Vector2(75, 0); Height = (int) (questListWindowSize.Y + borderPadding.Y*2); Width = (int) (questDetailsWindowSize.X + questListWindowSize.X + borderPadding.X*2); }
public LoadGameScene(LotusGame game) { Game = game; spriteBatch = new SpriteBatch(Game.GraphicsDevice); }
public MainMenuScene(LotusGame game) { Game = game; spriteBatch = new SpriteBatch(Game.GraphicsDevice); }
public GameStartedScene(LotusGame game) { Game = game; }