Mercurial > hg > openttd
view src/texteff.hpp @ 10480:649ba332458f draft
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 24 Dec 2008 09:53:15 +0000 |
parents | 71daf486081d |
children | 8da1855e9f14 |
line wrap: on
line source
/* $Id$ */ /** @file texteff.hpp Functions related to text effects. */ #ifndef TEXTEFF_HPP #define TEXTEFF_HPP #include "gfx_type.h" /** * 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); /* 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 */