AIsOfCatan.GUITile.Draw C# (CSharp) Method

Draw() protected method

protected Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        protected override void Draw(SpriteBatch batch)
        {
            base.Draw(batch);
            if (Visible)
            {
                if (IsTileNumbered(Tile))
                {
                    batch.Draw(TXAGame.TEXTURES["TO_Number"], numberPos, null, Color.Wheat, 0f, new Vector2(0, 0), TXAGame.SCALE, SpriteEffects.None, 0.0f);
                    batch.DrawString(TXAGame.ARIAL, Tile.Value.ToString(CultureInfo.InvariantCulture), textPos, valueColour, 0f, new Vector2(0, 0), TXAGame.SCALE, SpriteEffects.None, 0.0f);
                }
            }
        }