aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/cheatMenu.cpp7
-rw-r--r--src/gui/cheatMenu.h15
2 files changed, 8 insertions, 14 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index d72a14480..548ddea73 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -1,17 +1,14 @@
/*
Dragonfire
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
-
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
-
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -72,7 +69,7 @@ void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name,
driver->draw2DRectangle(*bgcolor, core::rect<s32>(x, y, x + width, y + height));
if (is_selected)
driver->draw2DRectangleOutline(
- core::rect<s32>(x - 1, y - 1, x + width, y + height),
+ core::rect<s32>(x - 2, y - 2, x + width + 1, y + height + 1),
*fontcolor);
int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2;
core::rect<s32> fontbounds(
@@ -167,4 +164,4 @@ void CheatMenu::selectConfirm()
if (m_cheat_layer)
script->toggle_cheat(script->m_cheat_categories[m_selected_category]
->m_cheats[m_selected_cheat]);
-}
+} \ No newline at end of file
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h
index e7fb4dc93..4ffaa177d 100644
--- a/src/gui/cheatMenu.h
+++ b/src/gui/cheatMenu.h
@@ -1,17 +1,14 @@
/*
Dragonfire
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
-
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
-
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -62,16 +59,16 @@ private:
int m_head_height = 20;
int m_entry_height = 20;
- int m_entry_width = 200;
+ int m_entry_width = 150;
int m_gap = 3;
- video::SColor m_bg_color = video::SColor(39, 38, 51, 173);
- video::SColor m_active_bg_color = video::SColor(45, 45, 107, 100);
- video::SColor m_font_color = video::SColor(195, 195, 195, 0);
- video::SColor m_selected_font_color = video::SColor(255, 255, 252, 88);
+ video::SColor m_bg_color = video::SColor(173, 45, 45, 68);
+ video::SColor m_active_bg_color = video::SColor(210, 0, 0, 0);
+ video::SColor m_font_color = video::SColor(195, 255, 255, 255);
+ video::SColor m_selected_font_color = video::SColor(235, 255, 255, 255);
Client *m_client;
gui::IGUIFont *m_font = nullptr;
v2u32 m_fontsize;
-};
+}; \ No newline at end of file