1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 19:32:54 +01:00

Add: Overlay cargo icon in vehicle/depot list when holding shift+ctrl. (#12938)

This commit is contained in:
Peter Nelson
2024-09-22 10:33:44 +01:00
committed by GitHub
parent 9404a03663
commit e45e8a39c8
9 changed files with 155 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ void DrawShipImage(const Vehicle *v, const Rect &r, VehicleID selection, EngineI
int y = ScaleSpriteTrad(-1) + CenterBounds(r.top, r.bottom, 0);
seq.Draw(x, y, GetVehiclePalette(v), false);
if (v->cargo_cap > 0) DrawCargoIconOverlay(x, y, v->cargo_type);
if (v->index == selection) {
x += x_offs;