public LoadGameScreen(LoderGame game) : base(game.screenSystem, ScreenType.LoadGameMenu) { _game = game; _content = new ContentManager(game.Services); _content.RootDirectory = "Content"; _savedGameFont = _content.Load <SpriteFont>("load_game_menu/saved_game_font"); _confirmationFont = _content.Load <SpriteFont>("shared_ui/confirmation_font"); _savedGameButtons = new List <LabelTextureButton>(); _deleteGameButtons = new List <TextureButton>(); _container = new BluePane( this, UIAlignment.MiddleCenter, 0, 0, 545, 400); _cancelButton = new TextureButton( this, _spriteBatch, UIAlignment.MiddleCenter, 135, 180, _content.Load <Texture2D>("shared_ui/cancel_button_over"), _content.Load <Texture2D>("shared_ui/cancel_button"), new Rectangle(0, 0, 152, 33), () => { _game.closeLoadGameMenu(); _game.openMainMenu(); }); }
public LoadGameScreen(LoderGame game) : base(game.screenSystem, ScreenType.LoadGameMenu) { _game = game; _content = new ContentManager(game.Services); _content.RootDirectory = "Content"; _savedGameFont = _content.Load<SpriteFont>("load_game_menu/saved_game_font"); _confirmationFont = _content.Load<SpriteFont>("shared_ui/confirmation_font"); _savedGameButtons = new List<LabelTextureButton>(); _deleteGameButtons = new List<TextureButton>(); _container = new BluePane( this, UIAlignment.MiddleCenter, 0, 0, 545, 400); _cancelButton = new TextureButton( this, _spriteBatch, UIAlignment.MiddleCenter, 135, 180, _content.Load<Texture2D>("shared_ui/cancel_button_over"), _content.Load<Texture2D>("shared_ui/cancel_button"), new Rectangle(0, 0, 152, 33), () => { _game.closeLoadGameMenu(); _game.openMainMenu(); }); }