Files
@ r10357:5287d890af09
Branch filter:
Location: cpp/openttd-patchpack/source/src/texteff.hpp - annotation
r10357:5287d890af09
900 B
text/x-c++hdr
(svn r14608) -Fix (r9315): Return the current year as construction year for unfinished houses.
r6998:9587370cd6e8 r6998:9587370cd6e8 r9111:983de9c5a848 r9111:983de9c5a848 r6998:9587370cd6e8 r6998:9587370cd6e8 r6998:9587370cd6e8 r8773:e411ce48e941 r8773:e411ce48e941 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 r7014:5a0a16e3673b r7014:5a0a16e3673b r10176:4ba2bf13463a r6998:9587370cd6e8 r6998:9587370cd6e8 | /* $Id$ */
/** @file texteff.hpp Functions related to text effects. */
#ifndef TEXTEFF_HPP
#define TEXTEFF_HPP
#include "gfx_type.h"
/**
* 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);
/* 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 */
|