Functions related to text effects. More...
#include "economy_type.h"#include "gfx_type.h"#include "strings_type.h"Go to the source code of this file.
Typedefs | |
| typedef uint16 | TextEffectID |
Enumerations | |
| enum | TextEffectMode { TE_RISING, TE_STATIC, INVALID_TE_ID = 0xFFFF } |
Text effect modes. More... | |
Functions | |
| void | MoveAllTextEffects () |
| TextEffectID | AddTextEffect (StringID msg, int x, int y, uint8 duration, TextEffectMode mode) |
| void | InitTextEffects () |
| void | DrawTextEffects (DrawPixelInfo *dpi) |
| void | UpdateTextEffect (TextEffectID effect_id, StringID msg) |
| void | RemoveTextEffect (TextEffectID effect_id) |
| TextEffectID | ShowFillingPercent (int x, int y, int z, uint8 percent, StringID colour) |
| Display vehicle loading indicators. | |
| void | UpdateFillingPercent (TextEffectID te_id, uint8 percent, StringID colour) |
| Update vehicle loading indicators. | |
| void | HideFillingPercent (TextEffectID *te_id) |
| Hide vehicle loading indicators. | |
| void | ShowCostOrIncomeAnimation (int x, int y, int z, Money cost) |
| Display animated income or costs on the map. | |
| void | ShowFeederIncomeAnimation (int x, int y, int z, Money cost) |
| Display animated feeder income. | |
Functions related to text effects.
Definition in file texteff.hpp.
| enum TextEffectMode |
Text effect modes.
| TE_RISING |
Make the text effect slowly go upwards. |
| TE_STATIC |
Keep the text effect static. |
Definition at line 22 of file texteff.hpp.
| void HideFillingPercent | ( | TextEffectID * | te_id | ) |
Hide vehicle loading indicators.
| *te_id | TextEffectID which is supposed to be hidden. |
Definition at line 597 of file misc_gui.cpp.
Referenced by CmdReverseTrainDirection(), Train::Crash(), Vehicle::LeaveStation(), and Vehicle::PreDestructor().
| void ShowCostOrIncomeAnimation | ( | int | x, | |
| int | y, | |||
| int | z, | |||
| Money | cost | |||
| ) |
Display animated income or costs on the map.
| x | World X position of the animation location. | |
| y | World Y position of the animation location. | |
| z | World Z position of the animation location. | |
| cost | Estimated cost (or income if negative). |
Definition at line 533 of file misc_gui.cpp.
References DAY_TICKS, RemapCoords(), SetDParam(), and TE_RISING.
Referenced by DoCommandP(), and VehicleEnterDepot().
| void ShowFeederIncomeAnimation | ( | int | x, | |
| int | y, | |||
| int | z, | |||
| Money | cost | |||
| ) |
Display animated feeder income.
| x | World X position of the animation location. | |
| y | World Y position of the animation location. | |
| z | World Z position of the animation location. | |
| cost | Estimated feeder income. |
Definition at line 553 of file misc_gui.cpp.
References DAY_TICKS, RemapCoords(), SetDParam(), and TE_RISING.
| TextEffectID ShowFillingPercent | ( | int | x, | |
| int | y, | |||
| int | z, | |||
| uint8 | percent, | |||
| StringID | string | |||
| ) |
Display vehicle loading indicators.
| x | World X position of the animation location. | |
| y | World Y position of the animation location. | |
| z | World Z position of the animation location. | |
| percent | Estimated feeder income. | |
| string | String which is drawn on the map. |
Definition at line 570 of file misc_gui.cpp.
References RemapCoords(), SetDParam(), and TE_STATIC.
Referenced by LoadUnloadVehicle().
| void UpdateFillingPercent | ( | TextEffectID | te_id, | |
| uint8 | percent, | |||
| StringID | string | |||
| ) |
Update vehicle loading indicators.
| te_id | TextEffectID to be updated. | |
| string | String wich is printed. |
Definition at line 585 of file misc_gui.cpp.
References SetDParam().
Referenced by LoadUnloadVehicle().
1.7.1