edit box: only highlight x when hovering it

not when hovering the text field itself

Thanks to Ryozuki for report
This commit is contained in:
def 2020-09-20 11:42:30 +02:00
parent a99b673042
commit 5cc826d6f5

View file

@ -530,7 +530,7 @@ int CMenus::DoClearableEditBox(void *pID, void *pClearID, const CUIRect *pRect,
ReturnValue = true;
}
RenderTools()->DrawUIRect(&ClearButton, ColorRGBA(1, 1, 1, 0.33f * ButtonColorMul(pID)), Corners&~CUI::CORNER_L, 3.0f);
RenderTools()->DrawUIRect(&ClearButton, ColorRGBA(1, 1, 1, 0.33f * ButtonColorMul(pClearID)), Corners & ~CUI::CORNER_L, 3.0f);
UI()->DoLabel(&ClearButton, "×", ClearButton.h * ms_FontmodHeight, 0);
if(UI()->DoButtonLogic(pClearID, "×", 0, &ClearButton))
{