mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Only highlight hovered edit boxes when they are the hot item
Prevent highlighting when edit box hovered but behind a popup menu.
This commit is contained in:
parent
878eedeed7
commit
efea2de9d5
|
@ -783,7 +783,7 @@ bool CUI::DoEditBox(CLineInput *pLineInput, const CUIRect *pRect, float FontSize
|
|||
}
|
||||
|
||||
// Render
|
||||
pRect->Draw(ms_LightButtonColorFunction.GetColor(Active, Inside), Corners, 3.0f);
|
||||
pRect->Draw(ms_LightButtonColorFunction.GetColor(Active, HotItem() == pLineInput), Corners, 3.0f);
|
||||
ClipEnable(pRect);
|
||||
Textbox.x -= ScrollOffset;
|
||||
const STextBoundingBox BoundingBox = pLineInput->Render(&Textbox, FontSize, TEXTALIGN_ML, Changed, -1.0f);
|
||||
|
|
Loading…
Reference in a new issue