diff options
author | truelight <truelight@openttd.org> | 2007-06-22 18:28:44 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-22 18:28:44 +0000 |
commit | f80fa33cc5f45bc74c10324fdec598c9486cf44b (patch) | |
tree | 20623f97dba17284a729f18f337f9277809b8527 /src/misc_gui.cpp | |
parent | 74b867db72f3534d271cdf43747f80c99e0ae2df (diff) | |
download | openttd-f80fa33cc5f45bc74c10324fdec598c9486cf44b.tar.xz |
(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning vehicle is loading, down meaning vehicle is unloading
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index ffd8d84b7..22ccfabfe 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -644,18 +644,22 @@ void ShowFeederIncomeAnimation(int x, int y, int z, Money cost) AddTextEffect(STR_FEEDER, pt.x, pt.y, 0x250, TE_RISING); } -TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent) +TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID string) { Point pt = RemapCoords(x, y, z); + assert(string != STR_NULL); + SetDParam(0, percent); - return AddTextEffect(STR_PERCENT_FULL, pt.x, pt.y, 0xFFFF, TE_STATIC); + return AddTextEffect(string, pt.x, pt.y, 0xFFFF, TE_STATIC); } -void UpdateFillingPercent(TextEffectID te_id, uint8 percent) +void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID string) { + assert(string != STR_NULL); + SetDParam(0, percent); - UpdateTextEffect(te_id, STR_PERCENT_FULL); + UpdateTextEffect(te_id, string); } void HideFillingPercent(TextEffectID te_id) |