mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4562) - NewGRF: Add additional vehicle text to train engine and wagon purchase information. Other vehicle types to come.
This commit is contained in:
parent
efd0d2d2b7
commit
a1713eacb5
@ -82,6 +82,10 @@ void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number)
|
|||||||
SetDParam(0, e->reliability * 100 >> 16);
|
SetDParam(0, e->reliability * 100 >> 16);
|
||||||
DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0);
|
DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0);
|
||||||
y += 10;
|
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);
|
DrawString(x,y, STR_PURCHASE_INFO_SPEED, 0);
|
||||||
y += 10;
|
y += 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Additional text from NewGRF */
|
||||||
|
y += ShowAdditionalText(x, y, 227, engine_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
||||||
|
Loading…
Reference in New Issue
Block a user