summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-22 18:28:44 +0000
committertruelight <truelight@openttd.org>2007-06-22 18:28:44 +0000
commit80bcbce62bf0510a7fd6c21e0ea30068907459e5 (patch)
tree20623f97dba17284a729f18f337f9277809b8527 /src/misc_gui.cpp
parentdb097a94dbfe808d35f9de08fc32438f83407802 (diff)
downloadopenttd-80bcbce62bf0510a7fd6c21e0ea30068907459e5.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.cpp12
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)