mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Add hover effect to listboxes
This commit is contained in:
parent
de4ffee556
commit
576b9a8d04
|
@ -1036,6 +1036,11 @@ CMenus::CListboxItem CMenus::UiDoListboxNextItem(CListBoxState* pState, const vo
|
|||
CUIRect r = Item.m_Rect;
|
||||
RenderTools()->DrawUIRect(&r, vec4(1,1,1,ProcessInput?0.5f:0.33f), CUI::CORNER_ALL, 5.0f);
|
||||
}
|
||||
/*else*/ if(UI()->HotItem() == pId)
|
||||
{
|
||||
CUIRect r = Item.m_Rect;
|
||||
RenderTools()->DrawUIRect(&r, vec4(1,1,1,0.33f), CUI::CORNER_ALL, 5.0f);
|
||||
}
|
||||
|
||||
return Item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue