Files @ r11395:1a11d23553a4
Branch filter:

Location: cpp/openttd-patchpack/source/src/texteff.hpp

translators
(svn r15754) -Update: WebTranslator2 update to 2009-03-17 18:42:46
bulgarian - 63 fixed by thetitan (63)
dutch - 4 fixed by habell (4)
romanian - 3 fixed by kkmic (3)
spanish - 3 fixed by eusebio (3)
turkish - 3 fixed by Emin (3)
ukrainian - 4 fixed by mad (4)
/* $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 colour);
void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
void HideFillingPercent(TextEffectID *te_id);

#endif /* TEXTEFF_HPP */