public override void LoadContent(Game game, ContentManager contentManager, SpriteBatch spriteBatch) { foreach (GuiDrawable tile in _collection) { tile.LoadContent(game, contentManager, spriteBatch); } _scrollable.LoadContent(game, contentManager, spriteBatch); }
public override void LoadContent() { if (contentManager == null) { contentManager = new ContentManager(Game.Services, "Content"); } _blankTexture = contentManager.Load <Texture2D>(@"blank"); _inputBoxTexture = contentManager.Load <Texture2D>(@"UI\SensorTileEdit"); contentManager.Load <Texture2D>(@"UI\SensorSlider"); foreach (GuiDrawable guiDrawable in _guiDrawable) { guiDrawable.LoadContent(Game, contentManager, SharedSpriteBatch); } _scrollable.LoadContent(Game, contentManager, SharedSpriteBatch); base.LoadContent(); }