2910: Add hover for demo list r=def- a=Jupeyy



Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2020-09-22 17:21:16 +00:00 committed by GitHub
commit cfbe6d9c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1153,8 +1153,14 @@ void CMenus::RenderDemoList(CUIRect MainView)
if(Selected)
{
CUIRect r = Row;
r.Margin(1.5f, &r);
RenderTools()->DrawUIRect(&r, ColorRGBA(1,1,1,0.5f), CUI::CORNER_ALL, 4.0f);
r.Margin(0.5f, &r);
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