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/>.
10 /** @file texteff.hpp Functions related to text effects. */
15 #include "economy_type.h"
17 #include "strings_type.h"
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(DrawPixelInfo
*dpi
);
35 void UpdateTextEffect(TextEffectID effect_id
, StringID msg
);
36 void RemoveTextEffect(TextEffectID effect_id
);
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 */