mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2910
2910: Add hover for demo list r=def- a=Jupeyy Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
cfbe6d9c8c
|
@ -1153,8 +1153,14 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
||||||
if(Selected)
|
if(Selected)
|
||||||
{
|
{
|
||||||
CUIRect r = Row;
|
CUIRect r = Row;
|
||||||
r.Margin(1.5f, &r);
|
r.Margin(0.5f, &r);
|
||||||
RenderTools()->DrawUIRect(&r, ColorRGBA(1,1,1,0.5f), CUI::CORNER_ALL, 4.0f);
|
RenderTools()->DrawUIRect(&r, ColorRGBA(1, 1, 1, 0.5f), CUI::CORNER_ALL, 4.0f);
|
||||||
|
}
|
||||||
|
else if(UI()->MouseInside(&SelectHitBox))
|
||||||
|
{
|
||||||
|
CUIRect r = Row;
|
||||||
|
r.Margin(0.5f, &r);
|
||||||
|
RenderTools()->DrawUIRect(&r, ColorRGBA(1, 1, 1, 0.25f), CUI::CORNER_ALL, 4.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
// clip the selection
|
// clip the selection
|
||||||
|
|
Loading…
Reference in a new issue