texteff.hpp

00001 /* $Id: texteff.hpp 14385 2008-09-22 19:57:31Z rubidium $ */
00002 
00003 #ifndef TEXTEFF_HPP
00004 #define TEXTEFF_HPP
00005 
00009 enum TextEffectMode {
00010   TE_RISING, 
00011   TE_STATIC, 
00012 
00013   INVALID_TE_ID = 0xFFFF,
00014 };
00015 
00016 typedef uint16 TextEffectID;
00017 
00018 void MoveAllTextEffects();
00019 TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffectMode mode);
00020 void InitTextEffects();
00021 void DrawTextEffects(DrawPixelInfo *dpi);
00022 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
00023 void RemoveTextEffect(TextEffectID effect_id);
00024 
00025 void InitChatMessage();
00026 void DrawChatMessage();
00027 void CDECL AddChatMessage(uint16 color, uint8 duration, const char *message, ...);
00028 void UndrawChatMessage();
00029 
00030 /* misc_gui.cpp */
00031 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID color);
00032 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID color);
00033 void HideFillingPercent(TextEffectID *te_id);
00034 
00035 #endif /* TEXTEFF_HPP */

Generated on Mon Sep 22 20:34:19 2008 for openttd by  doxygen 1.5.6