Translations update
[openttd/fttd.git] / src / texteff.hpp
blobc942e8be8383defdb0de0f91162d2854911ec2b9
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file texteff.hpp Functions related to text effects. */
12 #ifndef TEXTEFF_HPP
13 #define TEXTEFF_HPP
15 #include "economy_type.h"
16 #include "gfx_func.h"
17 #include "strings_type.h"
19 /**
20 * Text effect modes.
22 enum TextEffectMode {
23 TE_RISING, ///< Make the text effect slowly go upwards
24 TE_STATIC, ///< Keep the text effect static
26 INVALID_TE_ID = 0xFFFF,
29 typedef uint16 TextEffectID;
31 void MoveAllTextEffects();
32 TextEffectID AddTextEffect(StringID msg, int x, int y, uint8 duration, TextEffectMode mode);
33 void InitTextEffects();
34 void DrawTextEffects (BlitArea *area, DrawPixelInfo *dpi);
35 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
36 void RemoveTextEffect(TextEffectID effect_id);
38 /* misc_gui.cpp */
39 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID colour);
40 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
41 void HideFillingPercent(TextEffectID *te_id);
43 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
44 void ShowFeederIncomeAnimation(int x, int y, int z, Money transfer, Money income);
46 #endif /* TEXTEFF_HPP */