public ConfirmationPopUp() : base() { YesButton = new MenuButton(new YesButtonStyle(ScreenManager.Game.Content)); NoButton = new MenuButton(new NoButtonStyle(ScreenManager.Game.Content)); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("Editor/ConfirmationBox/TitleTexture"); Message = null; }
public EditorScreen() : base("Editor Screen") { TransitionOnTime = TimeSpan.FromSeconds(0.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); ExitButton = new MenuButton(new ExitButtonStyle(ScreenManager.Game.Content)); SaveButton = new MenuButton(new SaveMapButtonStyle(ScreenManager.Game.Content)); LoadButton = new MenuButton(new LoadMapButtonStyle(ScreenManager.Game.Content)); BGLayerButton = new MenuButton(new BGLayerButton(ScreenManager.Game.Content)); MiddleLayerButton = new MenuButton(new MiddleLayerBytton(ScreenManager.Game.Content)); FGLayerButton = new MenuButton(new FGLayerButton(ScreenManager.Game.Content)); TileLayerButton = new MenuButton(new TileLayerButton(ScreenManager.Game.Content)); CollisionLayerButton = new MenuButton(new CollisionLayerButton(ScreenManager.Game.Content)); JumpLayerButton = new MenuButton(new JumpLayerButton(ScreenManager.Game.Content)); MenuEntries.Add(ExitButton); MenuEntries.Add(SaveButton); MenuEntries.Add(LoadButton); #region TileButtons ToolButtons = new List<MenuButton>(); ToolButtons.Add(new MenuButton(new Tile0(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile1(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile2(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile3(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile4(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile5(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile6(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile7(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile8(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile9(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile10(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile11(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile12(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile13(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile14(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Tile15(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new JumpTileButton(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new GoalTileButton(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Spike1Button(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new Spike2Button(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile0(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile1(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile2(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile3(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile4(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile5(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile6(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile7(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new BGTile8(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new PlayerButton(ScreenManager.Game.Content))); ToolButtons.Add(new MenuButton(new EnemyButton(ScreenManager.Game.Content))); #endregion }
public ConfirmationPopUp(string Message) : base("") { YesButton = new MenuButton(new YesButtonStyle(ScreenManager.Game.Content)); NoButton = new MenuButton(new NoButtonStyle(ScreenManager.Game.Content)); TitleTexture = null; this.Message = Message + "\nAre you sure you want to continue?"; MessageFont = ScreenManager.Game.Content.Load<SpriteFont>("Fonts/DejaVuSans_20"); }
public LevelSelectScreen() : base("") { returnButton = new MenuButton(new MenuButtonStyle(ScreenManager.Game.Content)); MenuEntries.Add(returnButton); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/LevelSelection/LevelSelectionTitle"); levelTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/MainMenu/PlayButton"); }
public SaveMapScreen() : base("") { SaveButton = new MenuButton(new SaveButtonStyle(ScreenManager.Game.Content)); CancelButton = new MenuButton(new CancelButtonStyle(ScreenManager.Game.Content)); NameInput = new TextInputField(new MapNameInputStyle(ScreenManager.Game.Content)); MenuEntries.Add(SaveButton); MenuEntries.Add(CancelButton); MenuEntries.Add(NameInput); IsPopup = true; }
public PausScreen() : base("") { returnToMenuButton = new MenuButton(new MenuButtonStyle(ScreenManager.Game.Content)); restartLevelButton = new MenuButton(new RestartButtonStyle(ScreenManager.Game.Content)); exitPausButton = new MenuButton(new CrossButtonStyle(ScreenManager.Game.Content)); MenuEntries.Add(returnToMenuButton); MenuEntries.Add(restartLevelButton); MenuEntries.Add(exitPausButton); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/PausScreen/PausScreenTitle"); IsPopup = true; }
public DefeatedScreen(GameManager gameManager) : base("") { GameManager = gameManager; MenuButton = new MenuButton(new MenuButtonStyle(ScreenManager.Game.Content)); LevelSelectButton = new MenuButton(new LevelSelectStyle(ScreenManager.Game.Content)); RestartButton = new MenuButton(new RestartButtonStyle(ScreenManager.Game.Content)); MenuEntries.Add(MenuButton); MenuEntries.Add(LevelSelectButton); MenuEntries.Add(RestartButton); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/DefeatedScreen/DefeatedTitle"); IsPopup = true; }
public WinScreen() : base("") { MenuButton = new MenuButton(new MenuButtonStyle(ScreenManager.Game.Content)); LevelSelectButton = new MenuButton(new LevelSelectStyle(ScreenManager.Game.Content)); RestartButton = new MenuButton(new RestartButtonStyle(ScreenManager.Game.Content)); ContinueButton = new MenuButton(new PlayButtonStyle(ScreenManager.Game.Content)); MenuEntries.Add(MenuButton); MenuEntries.Add(LevelSelectButton); MenuEntries.Add(RestartButton); MenuEntries.Add(ContinueButton); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/WinScreen/WinTitle"); ScoreTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/WinScreen/ScoreText"); IsPopup = true; }
public MainMenuScreen() : base("Main menu") { TransitionOnTime = TimeSpan.FromSeconds(0.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); playButton = new MenuButton(new PlayButtonStyle(ScreenManager.Game.Content)); levelSelectButton = new MenuButton(new LevelSelectStyle(ScreenManager.Game.Content)); MenuEntries.Add(playButton); MenuEntries.Add(levelSelectButton); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("GUI Textures/MainMenu/MainMenuTitle"); TextureManager.LoadContents(ScreenManager.Game.Content); FileLoader.Initialize(); LightingManager.Initialize(ScreenManager.Game.GraphicsDevice); LightingManager.LoadContent(ScreenManager.Game.Content); }
public LoadMapScreen() : base("") { LoadButton = new MenuButton(new LoadButtonStyle(ScreenManager.Game.Content)); DeleteButton = new MenuButton(new DeleteButtonStyle(ScreenManager.Game.Content)); CancelButton = new MenuButton(new CancelButtonStyle(ScreenManager.Game.Content)); SavedMapList = new List(new LoadMapListStyle(ScreenManager.Game.Content)); TitleTexture = ScreenManager.Game.Content.Load<Texture2D>("Editor/LoadMap/LoadLable"); for (int i = 0; i < FileLoader.LoadedGameData.MapList.Count; i++) { SavedMapList.AddItem(FileLoader.LoadedGameData.MapList[i], new LoadMapListItemStyle(ScreenManager.Game.Content)); } MenuEntries.Add(LoadButton); MenuEntries.Add(DeleteButton); MenuEntries.Add(CancelButton); MenuEntries.Add(SavedMapList); IsPopup = true; }
public EditorScreen() : base("Editor Screen") { TransitionOnTime = TimeSpan.FromSeconds(0.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); EditMode = 0; ExitButton = new MenuButton(new ExitButtonStyle(ScreenManager.Game.Content)); SaveButton = new MenuButton(new SaveMapButtonStyle(ScreenManager.Game.Content)); LoadButton = new MenuButton(new LoadMapButtonStyle(ScreenManager.Game.Content)); BGLayerButton = new MenuButton(new BGLayerButton(ScreenManager.Game.Content)); MiddleLayerButton = new MenuButton(new MiddleLayerBytton(ScreenManager.Game.Content)); FGLayerButton = new MenuButton(new FGLayerButton(ScreenManager.Game.Content)); TileLayerButton = new MenuButton(new TileLayerButton(ScreenManager.Game.Content)); CollisionLayerButton = new MenuButton(new CollisionLayerButton(ScreenManager.Game.Content)); JumpLayerButton = new MenuButton(new JumpLayerButton(ScreenManager.Game.Content)); ColorPicker = new ColorPicker(new ColorPickStyle(ScreenManager.Game.Content)); MenuEntries.Add(ExitButton); MenuEntries.Add(SaveButton); MenuEntries.Add(LoadButton); #region TileButtons ToolButtons = new List<MenuButton>(); //ToolButtons.Add(new MenuButton(new Tile0(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile1(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile2(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile3(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile4(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile5(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile6(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile7(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile8(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile9(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile10(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile11(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile12(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile13(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile14(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Tile15(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new JumpTileButton(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new GoalTileButton(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Spike1Button(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new Spike2Button(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile0(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile1(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile2(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile3(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile4(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile5(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile6(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile7(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new BGTile8(ScreenManager.Game.Content))); //ToolButtons.Add(new MenuButton(new EnemyButton(ScreenManager.Game.Content))); #endregion for (int i = 0; i < 56; i++) { int x = i % 8; int y = i / 8; ToolButtons.Add(new MenuButton(new DynamicTileButton(x, y, 40, ScreenManager.Game.Content))); } ToolButtons.Add(new MenuButton(new PlayerButton(ScreenManager.Game.Content))); }