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