/// <summary> /// Private helper function for calling draw on all of the local game pieces /// </summary> private void DrawGraphicsPieces() { ServerUpdateBox.Draw(Engine.SpriteBatch); foreach (var pb in _pBlocks) { pb.Draw(Engine.SpriteBatch); } if (!_diceRow.Hidden) { foreach (var ds in _diceRow.DiceSprites) { ds.Draw(Engine.SpriteBatch); } /* * for (var i = 0; i < _diceRow.DiceSprites.Count; i++) * { * if (RollAnimation <= 0 || _diceRow.DiceSprites[i].Save) * { * _diceRow.DiceSprites[i].Draw(Engine.SpriteBatch); * } * else * { * RollingDice.DiceSprites[i].Roll(); * RollingDice.DiceSprites[i].Draw(Engine.SpriteBatch); * RollAnimation--; * } * } */ } if (!_rollButton.Hidden) { _rollButton.Draw(Engine.SpriteBatch); } if (!playerCardList.Hidden) { playerCardList.Draw(Engine.SpriteBatch); } foreach (var tp in _textPrompts) { tp.Draw(Engine.SpriteBatch); } _cardForSaleList?.Draw(Engine.SpriteBatch); }
public override void Draw(float deltaTime) { Sprite.DrawFrame(new Vector2(), "Default"); MenuButton.Draw(SelectedIndex); TextBlock.Draw(); }