19 #ifndef OPENXCOM_WARNINGMESSAGE_H
20 #define OPENXCOM_WARNINGMESSAGE_H
22 #include "../Engine/Surface.h"
53 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
void fade()
Fades the message.
Definition: WarningMessage.cpp:126
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the warning message's palette.
Definition: WarningMessage.cpp:96
WarningMessage(int width, int height, int x=0, int y=0)
Creates a new warning message with the specified size and position.
Definition: WarningMessage.cpp:35
Timer used to run code in fixed intervals.
Definition: Timer.h:37
Text string displayed on screen.
Definition: Text.h:41
~WarningMessage()
Cleans up the warning message.
Definition: WarningMessage.cpp:52
void showMessage(const std::wstring &msg)
Shows the warning message.
Definition: WarningMessage.cpp:106
Contains strings used throughout the game for localization.
Definition: Language.h:42
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:40
void think()
Handles the timers.
Definition: WarningMessage.cpp:118
void setTextColor(Uint8 color)
Sets the text color for the warning message.
Definition: WarningMessage.cpp:71
Coloured box with text inside that fades out after it is displayed.
Definition: WarningMessage.h:35
void initText(Font *big, Font *small, Language *lang)
Initializes the warning message's resources.
Definition: WarningMessage.cpp:85
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
void draw()
Draws the message.
Definition: WarningMessage.cpp:140
void setColor(Uint8 color)
Sets the color for the warning message.
Definition: WarningMessage.cpp:62