OpenTTD Source: src/console_type.h Source File

OpenTTD Source 12.0-beta1

console_type.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 <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef CONSOLE_TYPE_H
11 #define CONSOLE_TYPE_H
12
13 #include "gfx_type.h"
14
16 enum IConsoleModes {
17 ICONSOLE_FULL,
18 ICONSOLE_OPENED,
19 ICONSOLE_CLOSED,
20 };
21
22 /* Colours of the console messages. */
23 static const TextColour CC_DEFAULT = TC_SILVER;
24 static const TextColour CC_ERROR = TC_RED;
25 static const TextColour CC_WARNING = TC_LIGHT_BLUE;
26 static const TextColour CC_HELP = TC_LIGHT_BLUE;
27 static const TextColour CC_INFO = TC_YELLOW;
28 static const TextColour CC_DEBUG = TC_LIGHT_BROWN;
29 static const TextColour CC_COMMAND = TC_GOLD;
30 static const TextColour CC_WHITE = TC_WHITE;
31
32 #endif /* CONSOLE_TYPE_H */
CC_INFO
static const TextColour CC_INFO
Colour for information lines.
Definition: console_type.h:27
ICONSOLE_OPENED
@ ICONSOLE_OPENED
In-game console is opened, upper 1/3 of the screen.
Definition: console_type.h:18
TextColour
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...
Definition: gfx_type.h:250
IConsoleModes
IConsoleModes
Modes of the in-game console.
Definition: console_type.h:16
CC_DEFAULT
static const TextColour CC_DEFAULT
Default colour of the console.
Definition: console_type.h:23
ICONSOLE_FULL
@ ICONSOLE_FULL
In-game console is closed.
Definition: console_type.h:17
ICONSOLE_CLOSED
@ ICONSOLE_CLOSED
In-game console is opened, whole screen.
Definition: console_type.h:19
CC_HELP
static const TextColour CC_HELP
Colour for help lines.
Definition: console_type.h:26
CC_DEBUG
static const TextColour CC_DEBUG
Colour for debug output.
Definition: console_type.h:28
CC_COMMAND
static const TextColour CC_COMMAND
Colour for the console's commands.
Definition: console_type.h:29
CC_ERROR
static const TextColour CC_ERROR
Colour for error lines.
Definition: console_type.h:24
CC_WARNING
static const TextColour CC_WARNING
Colour for warning lines.
Definition: console_type.h:25
gfx_type.h
CC_WHITE
static const TextColour CC_WHITE
White console lines for various things such as the welcome.
Definition: console_type.h:30