diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-23 22:35:37 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-23 22:35:37 +0000 |
commit | 4a8bcad56ac87bb69690caa1dd77a2f5425facb8 (patch) | |
tree | fa2cc6f1a92397fcb8ce98b9effbdcb1a7a83a88 | |
parent | c1bf22de39422821898d790630e46caab1024550 (diff) | |
download | openttd-4a8bcad56ac87bb69690caa1dd77a2f5425facb8.tar.xz |
(svn r4562) - NewGRF: Add additional vehicle text to train engine and wagon purchase information. Other vehicle types to come.
-rw-r--r-- | train_gui.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/train_gui.c b/train_gui.c index 7c86a4d65..9f9eacca6 100644 --- a/train_gui.c +++ b/train_gui.c @@ -82,6 +82,10 @@ void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number) SetDParam(0, e->reliability * 100 >> 16); DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0); y += 10; + + /* Additional text from NewGRF */ + // XXX 227 will become a calculated width... + y += ShowAdditionalText(x, y, 227, engine_number); } /** @@ -118,6 +122,9 @@ void DrawTrainWagonPurchaseInfo(int x, int y, EngineID engine_number) DrawString(x,y, STR_PURCHASE_INFO_SPEED, 0); y += 10; } + + /* Additional text from NewGRF */ + y += ShowAdditionalText(x, y, 227, engine_number); } void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) |