equal
deleted
inserted
replaced
|
1 /* $Id$ */ |
|
2 |
|
3 #ifndef TEXTEFF_HPP |
|
4 #define TEXTEFF_HPP |
|
5 |
|
6 /** |
|
7 * Text effect modes. |
|
8 */ |
|
9 enum TextEffectMode { |
|
10 TE_RISING, ///< Make the text effect slowly go upwards |
|
11 TE_STATIC, ///< Keep the text effect static |
|
12 |
|
13 INVALID_TE_ID = 0xFFFF, |
|
14 }; |
|
15 |
|
16 typedef uint16 TextEffectID; |
|
17 |
|
18 void MoveAllTextEffects(); |
|
19 TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffectMode mode); |
|
20 void InitTextEffects(); |
|
21 void DrawTextEffects(DrawPixelInfo *dpi); |
|
22 void UpdateTextEffect(TextEffectID effect_id, StringID msg); |
|
23 void RemoveTextEffect(TextEffectID effect_id); |
|
24 |
|
25 void InitTextMessage(); |
|
26 void DrawTextMessage(); |
|
27 void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...); |
|
28 void UndrawTextMessage(); |
|
29 |
|
30 /* misc_gui.cpp */ |
|
31 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID color); |
|
32 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID color); |
|
33 void HideFillingPercent(TextEffectID te_id); |
|
34 |
|
35 #endif /* TEXTEFF_HPP */ |