2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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 /** @file texteff.hpp Functions related to text effects. */
13 #include "economy_type.h"
15 #include "strings_type.h"
21 TE_RISING
, ///< Make the text effect slowly go upwards
22 TE_STATIC
, ///< Keep the text effect static
24 INVALID_TE_ID
= 0xFFFF,
27 typedef size_t TextEffectID
;
29 void MoveAllTextEffects(uint delta_ms
);
30 TextEffectID
AddTextEffect(StringID msg
, int x
, int y
, uint8 duration
, TextEffectMode mode
);
31 void InitTextEffects();
32 void DrawTextEffects(DrawPixelInfo
*dpi
);
33 void UpdateTextEffect(TextEffectID effect_id
, StringID msg
);
34 void RemoveTextEffect(TextEffectID effect_id
);
35 void UpdateAllTextEffectVirtCoords();
38 TextEffectID
ShowFillingPercent(int x
, int y
, int z
, uint8 percent
, StringID colour
);
39 void UpdateFillingPercent(TextEffectID te_id
, uint8 percent
, StringID colour
);
40 void HideFillingPercent(TextEffectID
*te_id
);
42 void ShowCostOrIncomeAnimation(int x
, int y
, int z
, Money cost
);
43 void ShowFeederIncomeAnimation(int x
, int y
, int z
, Money transfer
, Money income
);
45 #endif /* TEXTEFF_HPP */