Revert horizontal sliders

This commit is contained in:
Дядя Женя 2020-12-16 10:02:54 +03:00 committed by def
parent 7d576c41b4
commit afb4ce5fc7

View file

@ -984,10 +984,13 @@ float CMenus::DoScrollbarH(const void *pID, const CUIRect *pRect, float Current)
// render
CUIRect Rail;
pRect->HMargin(5.0f, &Rail);
RenderTools()->DrawUIRect(&Rail, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_ALL, 3.0f);
RenderTools()->DrawUIRect(&Rail, ColorRGBA(1, 1, 1, 0.25f), 0, 0.0f);
CUIRect Slider = Handle;
RenderTools()->DrawUIRect(&Slider, ColorRGBA(0.5f, 0.5f, 0.5f, 1), CUI::CORNER_ALL, 3.0f);
Slider.h = Rail.y - Slider.y;
RenderTools()->DrawUIRect(&Slider, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_T, 2.5f);
Slider.y = Rail.y + Rail.h;
RenderTools()->DrawUIRect(&Slider, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_B, 2.5f);
Slider = Handle;
Slider.Margin(5.0f, &Slider);