2007-06-21 16:17:47 +00:00
|
|
|
/* $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);
|
|
|
|
|
2007-08-19 09:38:30 +00:00
|
|
|
void InitChatMessage();
|
|
|
|
void DrawChatMessage();
|
|
|
|
void CDECL AddChatMessage(uint16 color, uint8 duration, const char *message, ...);
|
|
|
|
void UndrawChatMessage();
|
2007-06-21 16:17:47 +00:00
|
|
|
|
|
|
|
/* misc_gui.cpp */
|
2007-06-22 18:28:44 +00:00
|
|
|
TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID color);
|
|
|
|
void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID color);
|
2007-06-21 16:17:47 +00:00
|
|
|
void HideFillingPercent(TextEffectID te_id);
|
|
|
|
|
|
|
|
#endif /* TEXTEFF_HPP */
|