SunsetHigh.ListPanel.drawHelper C# (CSharp) Method

drawHelper() private method

private drawHelper ( SpriteBatch sb, int i ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
i int
return void
        private void drawHelper(SpriteBatch sb, int i)
        {
            if (this.entries[i].getX() < this.getWidth() && this.entries[i].getY() < this.getHeight()
                && this.entries[i].getX() > 0 && this.entries[i].getY() > 0)
            {
                Color c = this.getEntryColor();
                if (this.cursor == i && this.isHighlighted()) c = this.getEntryHighlightedColor();
                this.entries[i].draw(sb, this.getX(), this.getY(), font, c);
            }
        }