public void Draw()
{
Color enabledColor = _isEnabled ? Color.White : Color.Tan;
if (!_isSlider)
{
if (!_isHorizontal)
{
_scrollBar.Draw(_xPos, _yPos, 1, _scrollBarLength / _scrollBar.Height, enabledColor);
}
else
{
_scrollBar.Draw(_xPos, _yPos, _scrollBarLength / _scrollBar.Width, 1, enabledColor);
}
}
else
{
_scrollBar.Draw(_xPos, _yPos, _scrollBarLength / _scrollBar.Width, 1, enabledColor);
_highlightedScrollBar.Draw(_xPos, _yPos, _scrollPos / _highlightedScrollBar.Width, 1, enabledColor);
}
_scroll.Draw();
}