Improved Colours
This commit is contained in:
parent
e22e334e9c
commit
aea9b36ef7
@ -1,17 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
Dragonfire
|
Dragonfire
|
||||||
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
|
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
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
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU Lesser General Public License for more details.
|
GNU Lesser General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License along
|
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.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
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));
|
driver->draw2DRectangle(*bgcolor, core::rect<s32>(x, y, x + width, y + height));
|
||||||
if (is_selected)
|
if (is_selected)
|
||||||
driver->draw2DRectangleOutline(
|
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);
|
*fontcolor);
|
||||||
int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2;
|
int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2;
|
||||||
core::rect<s32> fontbounds(
|
core::rect<s32> fontbounds(
|
||||||
@ -167,4 +164,4 @@ void CheatMenu::selectConfirm()
|
|||||||
if (m_cheat_layer)
|
if (m_cheat_layer)
|
||||||
script->toggle_cheat(script->m_cheat_categories[m_selected_category]
|
script->toggle_cheat(script->m_cheat_categories[m_selected_category]
|
||||||
->m_cheats[m_selected_cheat]);
|
->m_cheats[m_selected_cheat]);
|
||||||
}
|
}
|
@ -1,17 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
Dragonfire
|
Dragonfire
|
||||||
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
|
Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de>
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
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
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU Lesser General Public License for more details.
|
GNU Lesser General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License along
|
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.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
@ -62,16 +59,16 @@ private:
|
|||||||
|
|
||||||
int m_head_height = 20;
|
int m_head_height = 20;
|
||||||
int m_entry_height = 20;
|
int m_entry_height = 20;
|
||||||
int m_entry_width = 200;
|
int m_entry_width = 150;
|
||||||
int m_gap = 3;
|
int m_gap = 3;
|
||||||
|
|
||||||
video::SColor m_bg_color = video::SColor(39, 38, 51, 173);
|
video::SColor m_bg_color = video::SColor(173, 45, 45, 68);
|
||||||
video::SColor m_active_bg_color = video::SColor(45, 45, 107, 100);
|
video::SColor m_active_bg_color = video::SColor(210, 0, 0, 0);
|
||||||
video::SColor m_font_color = video::SColor(195, 195, 195, 0);
|
video::SColor m_font_color = video::SColor(195, 255, 255, 255);
|
||||||
video::SColor m_selected_font_color = video::SColor(255, 255, 252, 88);
|
video::SColor m_selected_font_color = video::SColor(235, 255, 255, 255);
|
||||||
|
|
||||||
Client *m_client;
|
Client *m_client;
|
||||||
|
|
||||||
gui::IGUIFont *m_font = nullptr;
|
gui::IGUIFont *m_font = nullptr;
|
||||||
v2u32 m_fontsize;
|
v2u32 m_fontsize;
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user