You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
941 B
C++
36 lines
941 B
C++
18 years ago
|
/* $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 InitTextMessage();
|
||
|
void DrawTextMessage();
|
||
|
void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...);
|
||
|
void UndrawTextMessage();
|
||
|
|
||
|
/* misc_gui.cpp */
|
||
|
TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent);
|
||
|
void UpdateFillingPercent(TextEffectID te_id, uint8 percent);
|
||
|
void HideFillingPercent(TextEffectID te_id);
|
||
|
|
||
|
#endif /* TEXTEFF_HPP */
|