mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #1968 from Dune-jr/exp-menus-checkboxes
Add hover effect to listboxes
This commit is contained in:
commit
871b3d4930
|
@ -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