Files
@ r8616:656db5986c9e
Branch filter:
Location: cpp/openttd-patchpack/source/src/texteff.hpp - annotation
r8616:656db5986c9e
973 B
text/x-c++hdr
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r7454:edae5d345b9c r7454:edae5d345b9c r7454:edae5d345b9c r7454:edae5d345b9c r6998:9587370cd6e8 r6998:9587370cd6e8 r7014:5a0a16e3673b r7014:5a0a16e3673b r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 | /* $Id$ */
#ifndef TEXTEFF_HPP
#define TEXTEFF_HPP
/**
* Text effect modes.
*/
enum TextEffectMode {
TE_RISING, ///< Make the text effect slowly go upwards
TE_STATIC, ///< Keep the text effect static
INVALID_TE_ID = 0xFFFF,
};
typedef uint16 TextEffectID;
void MoveAllTextEffects();
TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffectMode mode);
void InitTextEffects();
void DrawTextEffects(DrawPixelInfo *dpi);
void UpdateTextEffect(TextEffectID effect_id, StringID msg);
void RemoveTextEffect(TextEffectID effect_id);
void InitChatMessage();
void DrawChatMessage();
void CDECL AddChatMessage(uint16 color, uint8 duration, const char *message, ...);
void UndrawChatMessage();
/* misc_gui.cpp */
TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID color);
void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID color);
void HideFillingPercent(TextEffectID te_id);
#endif /* TEXTEFF_HPP */
|