aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/cheatMenu.cpp5
-rw-r--r--src/gui/cheatMenu.h5
-rw-r--r--src/gui/tracers.cpp2
3 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index 3d5273108..5707ed696 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -54,10 +54,9 @@ void CheatMenu::drawEntry(video::IVideoDriver* driver, std::string name, int num
if (selected)
fontcolor = &m_selected_font_color;
}
- core::rect<s32> bounds(x, y, x + width, y + height);
- driver->draw2DRectangle(*bgcolor, bounds);
+ driver->draw2DRectangle(*bgcolor, core::rect<s32>(x, y, x + width, y + height));
if (selected)
- driver->draw2DRectangleOutline(bounds, *fontcolor);
+ driver->draw2DRectangleOutline(core::rect<s32>(x - 1, y - 1, x + width, y + height), *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);
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h
index 9d1263980..a2c8a2856 100644
--- a/src/gui/cheatMenu.h
+++ b/src/gui/cheatMenu.h
@@ -57,13 +57,12 @@ private:
int m_head_height = 50;
int m_entry_height = 40;
int m_entry_width = 200;
- int m_gap = 2;
+ int m_gap = 3;
video::SColor m_bg_color = video::SColor(192, 255, 175, 191);
video::SColor m_active_bg_color = video::SColor(192, 255, 32, 76);
- //video::SColor m_font_color = video::SColor(255, 89, 0, 65);
video::SColor m_font_color = video::SColor(255, 0, 0, 0);
- video::SColor m_selected_font_color = video::SColor(255, 87, 0, 242);
+ video::SColor m_selected_font_color = video::SColor(255, 250, 32, 129);
Client *m_client;
diff --git a/src/gui/tracers.cpp b/src/gui/tracers.cpp
index 74c37b4e8..6bcbff546 100644
--- a/src/gui/tracers.cpp
+++ b/src/gui/tracers.cpp
@@ -22,5 +22,5 @@ with this program; if not, write to the Free Software Foundation, Inc.,
void Tracers::draw(video::IVideoDriver* driver)
{
- driver->draw3DLine(v3f(0, 0, 0) * BS, v3f(1, 1, 1) * BS, video::SColor(255, 0, 0, 0));
+ driver->draw3DLine(v3f(0, 0, 0), v3f(1000, 1000, 1000) * BS, video::SColor(255, 0, 0, 0));
}