Merge pull request #1968 from Dune-jr/exp-menus-checkboxes

Add hover effect to listboxes
This commit is contained in:
oy 2019-01-11 17:53:57 +01:00 committed by GitHub
commit 871b3d4930
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}