texteff.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef TEXTEFF_HPP
00013 #define TEXTEFF_HPP
00014
00015 #include "gfx_type.h"
00016 #include "strings_type.h"
00017
00021 enum TextEffectMode {
00022 TE_RISING,
00023 TE_STATIC,
00024
00025 INVALID_TE_ID = 0xFFFF,
00026 };
00027
00028 typedef uint16 TextEffectID;
00029
00030 void MoveAllTextEffects();
00031 TextEffectID AddTextEffect(StringID msg, int x, int y, uint8 duration, TextEffectMode mode);
00032 void InitTextEffects();
00033 void DrawTextEffects(DrawPixelInfo *dpi);
00034 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
00035 void RemoveTextEffect(TextEffectID effect_id);
00036
00037
00038 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID colour);
00039 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
00040 void HideFillingPercent(TextEffectID *te_id);
00041
00042 #endif