OpenTTD Source 20260531-master-g0e951f3528
console_type.h File Reference

Globally used console related types. More...

#include "gfx_type.h"

Go to the source code of this file.

Enumerations

enum  IConsoleModes : uint8_t { ICONSOLE_FULL , ICONSOLE_OPENED , ICONSOLE_CLOSED }
 Modes of the in-game console. More...

Variables

static const TextColour CC_DEFAULT = TextColour::Silver
 Default colour of the console.
static const TextColour CC_ERROR = TextColour::Red
 Colour for error lines.
static const TextColour CC_WARNING = TextColour::LightBlue
 Colour for warning lines.
static const TextColour CC_HELP = TextColour::LightBlue
 Colour for help lines.
static const TextColour CC_INFO = TextColour::Yellow
 Colour for information lines.
static const TextColour CC_DEBUG = TextColour::LightBrown
 Colour for debug output.
static const TextColour CC_COMMAND = TextColour::Gold
 Colour for the console's commands.
static const TextColour CC_WHITE = TextColour::White
 White console lines for various things such as the welcome.

Detailed Description

Globally used console related types.

Definition in file console_type.h.

Enumeration Type Documentation

◆ IConsoleModes

enum IConsoleModes : uint8_t

Modes of the in-game console.

Enumerator
ICONSOLE_FULL 

In-game console is opened, whole screen.

ICONSOLE_OPENED 

In-game console is opened, upper 1/3 of the screen.

ICONSOLE_CLOSED 

In-game console is closed.

Definition at line 16 of file console_type.h.

Variable Documentation

◆ CC_COMMAND

const TextColour CC_COMMAND = TextColour::Gold
static

Colour for the console's commands.

Definition at line 29 of file console_type.h.

Referenced by IConsoleWindow::OnKeyPress(), IConsoleWindow::OnPaint(), and OutputContentState().

◆ CC_DEBUG

const TextColour CC_DEBUG = TextColour::LightBrown
static

Colour for debug output.

Definition at line 28 of file console_type.h.

Referenced by ConNewGRFProfile(), and DebugSendRemoteMessages().

◆ CC_DEFAULT

const TextColour CC_DEFAULT = TextColour::Silver
static

◆ CC_ERROR

◆ CC_HELP

◆ CC_INFO

◆ CC_WARNING

◆ CC_WHITE

const TextColour CC_WHITE = TextColour::White
static

White console lines for various things such as the welcome.

Definition at line 30 of file console_type.h.

Referenced by ConContent(), and OutputContentState().