mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Add hover effect to file dialog entry
This commit is contained in:
parent
d0b73f9a96
commit
1520994332
|
@ -566,6 +566,8 @@ int CEditor::DoButton_File(const void *pID, const char *pText, int Checked, cons
|
|||
{
|
||||
if(Checked)
|
||||
RenderTools()->DrawUIRect(pRect, GetButtonColor(pID, Checked), CUI::CORNER_ALL, 3.0f);
|
||||
else if(UI()->HotItem() == pID)
|
||||
RenderTools()->DrawUIRect(pRect, vec4(1,1,1,0.33f), CUI::CORNER_ALL, 3.0f);
|
||||
|
||||
CUIRect t = *pRect;
|
||||
t.VMargin(5.0f, &t);
|
||||
|
|
Loading…
Reference in a new issue