Mercurial > hg > openttd
view src/texteff.hpp @ 8506:85399f57c666 draft
(svn r12081) -Codechange: Rename table/roadveh.h to table/roadveh_movment.h
It is more descriptive name and it will not upset the generate script anymore
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 07 Feb 2008 17:01:06 +0000 |
parents | 6d47a125b016 |
children | fb8b9c0b7cd3 |
line wrap: on
line source
/* $Id$ */ #ifndef TEXTEFF_HPP #define TEXTEFF_HPP /** * Text effect modes. */ enum TextEffectMode { TE_RISING, ///< Make the text effect slowly go upwards TE_STATIC, ///< Keep the text effect static INVALID_TE_ID = 0xFFFF, }; typedef uint16 TextEffectID; void MoveAllTextEffects(); TextEffectID AddTextEffect(StringID msg, int x, int y, uint16 duration, TextEffectMode mode); void InitTextEffects(); void DrawTextEffects(DrawPixelInfo *dpi); void UpdateTextEffect(TextEffectID effect_id, StringID msg); void RemoveTextEffect(TextEffectID effect_id); void InitChatMessage(); void DrawChatMessage(); void CDECL AddChatMessage(uint16 color, uint8 duration, const char *message, ...); void UndrawChatMessage(); /* misc_gui.cpp */ TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID color); void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID color); void HideFillingPercent(TextEffectID te_id); #endif /* TEXTEFF_HPP */