|
OpenTTD Source 20260218-master-g2123fca5ea
|
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 = TC_SILVER |
| Default colour of the console. | |
| static const TextColour | CC_ERROR = TC_RED |
| Colour for error lines. | |
| static const TextColour | CC_WARNING = TC_LIGHT_BLUE |
| Colour for warning lines. | |
| static const TextColour | CC_HELP = TC_LIGHT_BLUE |
| Colour for help lines. | |
| static const TextColour | CC_INFO = TC_YELLOW |
| Colour for information lines. | |
| static const TextColour | CC_DEBUG = TC_LIGHT_BROWN |
| Colour for debug output. | |
| static const TextColour | CC_COMMAND = TC_GOLD |
| Colour for the console's commands. | |
| static const TextColour | CC_WHITE = TC_WHITE |
| White console lines for various things such as the welcome. | |
Globally used console related types.
Definition in file console_type.h.
| 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.
|
static |
Colour for the console's commands.
Definition at line 29 of file console_type.h.
Referenced by IConsoleWindow::OnKeyPress(), IConsoleWindow::OnPaint(), and OutputContentState().
|
static |
Colour for debug output.
Definition at line 28 of file console_type.h.
Referenced by ConNewGRFProfile(), and DebugSendRemoteMessages().
|
static |
Default colour of the console.
Definition at line 23 of file console_type.h.
Referenced by ServerNetworkGameSocketHandler::CloseConnection(), ConBanList(), ConContent(), ConDebugLevel(), ConDumpCargoTypes(), ConDumpRailTypes(), ConDumpRoadTypes(), ConEcho(), ConFont(), ConGetDate(), ConGetSeed(), ConGetSysDate(), ConHelp(), ConInfoCmd(), ConKickOrBan(), ConListAliases(), ConListCommands(), ConListDirs(), ConListFiles(), ConListHeightmaps(), ConListScenarios(), ConNetworkReconnect(), ConPauseGame(), ConPrintWorkingDirectory(), ConReloadAI(), ConResetCompany(), ConSave(), ConSaveConfig(), ConSayCompany(), ConServerInfo(), ConStopAI(), ConUnBan(), ConUnpauseGame(), NetworkClientsToSpectators(), NetworkHandlePauseChange(), NetworkServerChangeClientName(), NetworkUpdateClientName(), ConsoleContentCallback::OnConnect(), ConsoleContentCallback::OnDisconnect(), ConsoleContentCallback::OnDownloadComplete(), PrintLineByLine(), ServerNetworkGameSocketHandler::Receive_CLIENT_ERROR(), ServerNetworkGameSocketHandler::Receive_CLIENT_MAP_OK(), ServerNetworkGameSocketHandler::Receive_CLIENT_QUIT(), ServerNetworkGameSocketHandler::Receive_CLIENT_SET_NAME(), ClientNetworkGameSocketHandler::Receive_SERVER_CLIENT_INFO(), ClientNetworkGameSocketHandler::Receive_SERVER_ERROR_QUIT(), ClientNetworkGameSocketHandler::Receive_SERVER_JOIN(), ClientNetworkGameSocketHandler::Receive_SERVER_QUIT(), and ServerNetworkGameSocketHandler::SendError().
|
static |
Colour for error lines.
Definition at line 24 of file console_type.h.
Referenced by IConsole::AliasRegister(), ConBan(), ConChangeDirectory(), ConClientNickChange(), ConContent(), ConDebugLevel(), ConEchoC(), ConExec(), ConFramerateWindow(), ConHelp(), ConHookClientOnly(), ConHookNeedNetwork(), ConHookNeedNonDedicatedNetwork(), ConHookNewGRFDeveloperTool(), ConHookNoNetwork(), ConHookServerOnly(), ConHookServerOrNoNetwork(), ConInfoCmd(), ConJoinCompany(), ConKick(), ConKickOrBan(), ConListDirs(), ConLoad(), ConLoadHeightmap(), ConLoadScenario(), ConMoveClient(), ConNetworkAuthorizedKey(), ConNetworkReconnect(), ConNewGame(), ConNewGRFProfile(), ConPart(), ConPauseGame(), ConPrintFramerate(), ConReload(), ConReloadAI(), ConRemove(), ConRescanAI(), ConRescanGame(), ConRescanNewGRF(), ConResetCompany(), ConResetEnginePool(), ConSave(), ConSayClient(), ConSayCompany(), ConSchedule(), ConScreenShot(), ConScript(), ConScrollToTile(), ConStartAI(), ConStopAI(), ConUnpauseGame(), ConZoomToLevel(), IConsoleAliasExec(), IConsoleCmdExec(), IConsoleGetSetting(), NetworkAvailable(), OutputContentState(), and ShowErrorMessage().
|
static |
Colour for help lines.
Definition at line 26 of file console_type.h.
Referenced by ConAlias(), ConBan(), ConBanList(), ConChangeDirectory(), ConClearBuffer(), ConClientNickChange(), ConCompanies(), ConContent(), ConDebugLevel(), ConDumpInfo(), ConEcho(), ConEchoC(), ConExec(), ConExit(), ConFont(), ConFramerate(), ConFramerateWindow(), ConGamelogPrint(), ConGetDate(), ConGetSeed(), ConGetSysDate(), ConInfoCmd(), ConJoinCompany(), ConKick(), ConListAI(), ConListAILibs(), ConListAliases(), ConListCommands(), ConListDirs(), ConListFiles(), ConListGame(), ConListGameLibs(), ConListHeightmaps(), ConListScenarios(), ConListSettings(), ConLoad(), ConLoadHeightmap(), ConLoadScenario(), ConMoveClient(), ConNetworkAuthorizedKey(), ConNetworkClients(), ConNetworkConnect(), ConNetworkReconnect(), ConNewGame(), ConNewGRFProfile(), ConNewGRFReload(), ConPart(), ConPauseGame(), ConPrintWorkingDirectory(), ConRcon(), ConReload(), ConReloadAI(), ConRemove(), ConRescanAI(), ConRescanGame(), ConRescanNewGRF(), ConResetCompany(), ConResetEnginePool(), ConResetEngines(), ConRestart(), ConReturn(), ConSave(), ConSaveConfig(), ConSay(), ConSayClient(), ConSayCompany(), ConSchedule(), ConScreenShot(), ConScript(), ConScrollToTile(), ConServerInfo(), ConSetting(), ConSettingNewgame(), ConStartAI(), ConStatus(), ConStopAI(), ConUnBan(), ConUnpauseGame(), ConZoomToLevel(), IConsoleAliasExec(), and IConsoleListSettings().
|
static |
Colour for information lines.
Definition at line 27 of file console_type.h.
Referenced by ConCompanies(), ConListDirs(), ConNewGRFProfile(), ConSave(), ConSchedule(), ConScript(), IConsoleGetSetting(), NetworkAutoCleanCompanies(), NetworkPrintClients(), NetworkServerShowStatusToConsole(), and OutputContentState().
|
static |
Colour for warning lines.
Definition at line 25 of file console_type.h.
Referenced by ConNetworkAuthorizedKey(), ConNewGRFProfile(), NetworkServer_Tick(), Gamelog::PrintConsole(), ServerNetworkGameSocketHandler::Receive_CLIENT_CHAT(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), ClientNetworkGameSocketHandler::Receive_SERVER_COMMAND(), and ShowErrorMessage().
|
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().