SunsetHigh.KeyModifierEntry.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);
            //Draw the key associated with this input type
            sb.DrawString(font, this.getKeyString(),
                new Vector2(x_offset + NEXT_COLUMN_OFFSET + this.getX(), y_offset + this.getY()), c);
        }