mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Revert horizontal sliders
This commit is contained in:
parent
7d576c41b4
commit
afb4ce5fc7
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue