OpenTTD Source: src/table/string_colours.h Source File

OpenTTD Source 15.3

string_colours.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD 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.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
11 static constexpr PixelColour _string_colourmap[17] = {
12 PixelColour{150}, // TC_BLUE
13 PixelColour{ 12}, // TC_SILVER
14 PixelColour{189}, // TC_GOLD
15 PixelColour{184}, // TC_RED
16 PixelColour{174}, // TC_PURPLE
17 PixelColour{ 30}, // TC_LIGHT_BROWN
18 PixelColour{195}, // TC_ORANGE
19 PixelColour{209}, // TC_GREEN
20 PixelColour{ 68}, // TC_YELLOW
21 PixelColour{ 95}, // TC_DARK_GREEN
22 PixelColour{ 79}, // TC_CREAM
23 PixelColour{116}, // TC_BROWN
24 PixelColour{ 15}, // TC_WHITE
25 PixelColour{152}, // TC_LIGHT_BLUE
26 PixelColour{ 6}, // TC_GREY
27 PixelColour{133}, // TC_DARK_BLUE
28 PixelColour{ 1}, // TC_BLACK
29};
_string_colourmap
static constexpr PixelColour _string_colourmap[17]
Colour mapping for TextColour.
Definition string_colours.h:11
PixelColour
Colour for pixel/line drawing.
Definition gfx_type.h:405