MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ErrorMessageState

Method ErrorMessageState

src/Menu/ErrorMessageState.cpp:41–44  ·  view source on GitHub ↗

* Initializes all the elements in an error window. * @param game Pointer to the core game. * @param id Language ID for the message to display. * @param palette Parent state palette. * @param color Color of the UI controls. * @param bg Background image. * @param bgColor Background color (-1 for Battlescape). */

Source from the content-addressed store, hash-verified

39 * @param bgColor Background color (-1 for Battlescape).
40 */
41ErrorMessageState::ErrorMessageState(Game *game, const std::string &id, SDL_Color *palette, Uint8 color, std::string bg, int bgColor) : State(game)
42{
43 create(id, L"", palette, color, bg, bgColor);
44}
45
46/**
47 * Initializes all the elements in an error window.

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected