Improved Colours

This commit is contained in:
realOneplustwo 2020-10-21 09:43:26 -07:00
parent e22e334e9c
commit aea9b36ef7
2 changed files with 8 additions and 14 deletions

View File

@ -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]);
}
}

View File

@ -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;
};
};