SunsetHigh.SaveDataEntry.draw C# (CSharp) Method

draw() public method

public draw ( SpriteBatch sb, int x_offset, int y_offset, SpriteFont font, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
x_offset int
y_offset int
font Microsoft.Xna.Framework.Graphics.SpriteFont
c Color
return void
        public override void draw(SpriteBatch sb, int x_offset, int y_offset, SpriteFont font, Color c)
        {
            base.draw(sb, x_offset, y_offset, font, c);
            string playTimeStr;
            if (this.saveData != null)
                playTimeStr = GameClock.formatTimeSpan(this.saveData.playTime);
            else
                playTimeStr = GameClock.formatTimeSpan(TimeSpan.Zero);
            sb.DrawString(font, playTimeStr,
                new Vector2(x_offset + NEXT_COLUMN_OFFSET + this.getX(), y_offset + this.getY()), c);
        }