From 576b9a8d04d17d6e9cbc9eaea13259a57f46f02e Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Fri, 11 Jan 2019 17:01:25 +0100 Subject: [PATCH] Add hover effect to listboxes --- src/game/client/components/menus.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index f9e0f2964..441459b6e 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -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; }