OpenTTD Source 20250312-master-gcdcc6b491d
|
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 (EncodedString &&msg, int center, int y, uint8_t duration, TextEffectMode mode) |
void | UpdateTextEffect (TextEffectID te_id, EncodedString &&msg) |
void | UpdateAllTextEffectVirtCoords () |
void | RemoveTextEffect (TextEffectID te_id) |
void | InitTextEffects () |
void | DrawTextEffects (DrawPixelInfo *dpi) |
Variables | |
static std::vector< 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 | ( | EncodedString && | msg, |
int | center, | ||
int | y, | ||
uint8_t | duration, | ||
TextEffectMode | mode | ||
) |
Definition at line 42 of file texteff.cpp.
void DrawTextEffects | ( | DrawPixelInfo * | dpi | ) |
Definition at line 117 of file texteff.cpp.
void InitTextEffects | ( | ) |
Definition at line 111 of file texteff.cpp.
void RemoveTextEffect | ( | TextEffectID | te_id | ) |
Definition at line 86 of file texteff.cpp.
void UpdateAllTextEffectVirtCoords | ( | ) |
Definition at line 77 of file texteff.cpp.
void UpdateTextEffect | ( | TextEffectID | te_id, |
EncodedString && | msg | ||
) |
Definition at line 67 of file texteff.cpp.
|
static |
Text effects are stored there.
Definition at line 39 of file texteff.cpp.
IntervalTimer<TimerWindow> move_all_text_effects_interval |
Slowly move text effects upwards.
Definition at line 92 of file texteff.cpp.