aboutsummaryrefslogtreecommitdiff
path: root/src/gui/cheatMenu.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-31 19:23:29 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-31 19:23:29 +0200
commit2675bcca1a3e8c59475ccb29d1afa9e19489a686 (patch)
treed12d7db86a4d6180e8da5555d2782e169f0ba89b /src/gui/cheatMenu.cpp
parent3d980cf5756aee9fc619e4d667f1427967dda53b (diff)
downloaddragonfireclient-2675bcca1a3e8c59475ccb29d1afa9e19489a686.tar.xz
Added more cheats
Diffstat (limited to 'src/gui/cheatMenu.cpp')
-rw-r--r--src/gui/cheatMenu.cpp3
1 files changed, 2 insertions, 1 deletions
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<s32> 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<s32> fontbounds(fx, fy, fx + m_fontsize.X * name.size(), fy + m_fontsize.Y);
m_font->draw(name.c_str(), fontbounds, *fontcolor, false, false);