public override void Draw(GameTime gameTime) { Rectangle r = new Rectangle(50, 400, 64, 64); int _width = 50; GameRef.SpriteBatch.Begin(); base.Draw(gameTime); ControlManager.Draw(GameRef.SpriteBatch); foreach (var i in _reward.Items) { GameItem item = GameItemManager.GetItem(i); item.Draw(GameRef.SpriteBatch, r); _width += 72; r.X += 72; if (_width >= GameRef.ScreenRectangle.Width - 50) { _width = 72; r.Y += 72; } } GameRef.SpriteBatch.End(); }
public new void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); if (Item != null) { Item.Draw(spriteBatch); } }