public EquipmentMenuScreen(Game game, SpriteFont spriteFont, Texture2D background) : base(game) { spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); graphics = (GraphicsDevice)Game.Services.GetService(typeof(GraphicsDevice)); Content = (ContentManager)Game.Services.GetService(typeof(ContentManager)); this.spriteFont = spriteFont; itemlist = new ItemlistComponent(game); //SetmenuCategories(categories); updateItemList(); Components.Add(new BackgroundComponent(game, background)); }
public ShopMenuScreen(Game game, SpriteFont spriteFont, Texture2D background) : base(game) { spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); graphics = (GraphicsDevice)Game.Services.GetService(typeof(GraphicsDevice)); Content = (ContentManager)Game.Services.GetService(typeof(ContentManager)); this.spriteFont = Content.Load<SpriteFont>(@"font\Comic_Sans_15px"); itemlist = new ItemlistComponent(game); options = new ScreenPopup(game, Content.Load<SpriteFont>(@"font\Comic_Sans_18px")); updateItemList(); SetShopItems(this.shopItems); Components.Add(new BackgroundComponent(game, background)); }