idTech4.UI.idSliderWindow.DrawBackground C# (CSharp) Method

DrawBackground() protected method

protected DrawBackground ( idRectangle drawRect ) : void
drawRect idRectangle
return void
		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);
		}