protected override void DrawBackground(idRectangle drawRect)
{
if((_cvar == null) && (this.Buddy == null))
{
return;
}
if((_high - _low) <= 0.0f)
{
return;
}
idRectangle r = this.DrawRectangle;
if(_scrollBar == false)
{
if(_vertical == true)
{
r.Y += _thumbHeight / 2.0f;
r.Height -= _thumbHeight;
}
else
{
r.X += _thumbWidth / 2.0f;
r.Width -= _thumbWidth;
}
}
base.DrawBackground(r);
}