From 2675bcca1a3e8c59475ccb29d1afa9e19489a686 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 31 Jul 2020 19:23:29 +0200 Subject: Added more cheats --- src/gui/cheatMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/cheatMenu.cpp') diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp index 600625537..3d5273108 100644 --- a/src/gui/cheatMenu.cpp +++ b/src/gui/cheatMenu.cpp @@ -56,7 +56,8 @@ void CheatMenu::drawEntry(video::IVideoDriver* driver, std::string name, int num } core::rect bounds(x, y, x + width, y + height); driver->draw2DRectangle(*bgcolor, bounds); - driver->draw2DRectangleOutline(bounds, *fontcolor); + if (selected) + driver->draw2DRectangleOutline(bounds, *fontcolor); int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2; core::rect fontbounds(fx, fy, fx + m_fontsize.X * name.size(), fy + m_fontsize.Y); m_font->draw(name.c_str(), fontbounds, *fontcolor, false, false); -- cgit v1.2.3