OpenTTD Source 20241224-master-gf74b0cf984
|
Handling of text effects. More...
#include "stdafx.h"
#include "texteff.hpp"
#include "transparency.h"
#include "strings_func.h"
#include "viewport_func.h"
#include "settings_type.h"
#include "command_type.h"
#include "timer/timer.h"
#include "timer/timer_window.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | TextEffect |
Container for all information about a text effect. More... | |
Functions | |
TextEffectID | AddTextEffect (StringID msg, int center, int y, uint8_t duration, TextEffectMode mode) |
void | UpdateTextEffect (TextEffectID te_id, StringID msg) |
void | UpdateAllTextEffectVirtCoords () |
void | RemoveTextEffect (TextEffectID te_id) |
void | InitTextEffects () |
void | DrawTextEffects (DrawPixelInfo *dpi) |
Variables | |
static std::vector< struct TextEffect > | _text_effects |
Text effects are stored there. | |
IntervalTimer< TimerWindow > | move_all_text_effects_interval |
Slowly move text effects upwards. | |
Handling of text effects.
Definition in file texteff.cpp.
TextEffectID AddTextEffect | ( | StringID | msg, |
int | center, | ||
int | y, | ||
uint8_t | duration, | ||
TextEffectMode | mode | ||
) |
Definition at line 41 of file texteff.cpp.
void DrawTextEffects | ( | DrawPixelInfo * | dpi | ) |
Definition at line 118 of file texteff.cpp.
void InitTextEffects | ( | ) |
Definition at line 112 of file texteff.cpp.
void RemoveTextEffect | ( | TextEffectID | te_id | ) |
Definition at line 87 of file texteff.cpp.
void UpdateAllTextEffectVirtCoords | ( | ) |
Definition at line 78 of file texteff.cpp.
void UpdateTextEffect | ( | TextEffectID | te_id, |
StringID | msg | ||
) |
Definition at line 67 of file texteff.cpp.
|
static |
Text effects are stored there.
Definition at line 38 of file texteff.cpp.
IntervalTimer<TimerWindow> move_all_text_effects_interval |
Slowly move text effects upwards.
Definition at line 93 of file texteff.cpp.