(svn r5820) - NewGRF: Add support for extra vehicle text in the purchase list for road vehicles, aircraft and ships.

This commit is contained in:
peter1138
2006-08-09 21:02:06 +00:00
parent 53d2650d9b
commit acaa043d6f
4 changed files with 30 additions and 18 deletions

View File

@@ -62,6 +62,10 @@ void DrawShipPurchaseInfo(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);
}
static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)