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
00020 enum TextEffectMode {
00021 TE_RISING,
00022 TE_STATIC,
00023
00024 INVALID_TE_ID = 0xFFFF,
00025 };
00026
00027 typedef uint16 TextEffectID;
00028
00029 void MoveAllTextEffects();
00030 TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffectMode mode);
00031 void InitTextEffects();
00032 void DrawTextEffects(DrawPixelInfo *dpi);
00033 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
00034 void RemoveTextEffect(TextEffectID effect_id);
00035
00036
00037 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID colour);
00038 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
00039 void HideFillingPercent(TextEffectID *te_id);
00040
00041 #endif