|
|
|
@ -1011,7 +1011,7 @@ void DrawEngineList(VehicleType type, const Rect &r, const GUIEngineList &eng_li
|
|
|
|
|
if (show_count) {
|
|
|
|
|
replace_icon = GetSpriteSize(SPR_GROUP_REPLACE_ACTIVE);
|
|
|
|
|
SetDParamMaxDigits(0, 3, FS_SMALL);
|
|
|
|
|
count_width = GetStringBoundingBox(STR_TINY_BLACK_COMA).width;
|
|
|
|
|
count_width = GetStringBoundingBox(STR_TINY_BLACK_COMMA).width;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rect tr = ir.Indent(circle_width + WidgetDimensions::scaled.hsep_normal + sprite_width + WidgetDimensions::scaled.hsep_wide, rtl); // Name position
|
|
|
|
@ -1050,7 +1050,7 @@ void DrawEngineList(VehicleType type, const Rect &r, const GUIEngineList &eng_li
|
|
|
|
|
DrawVehicleEngine(r.left, r.right, sprite_x, y + sprite_y_offset, item.engine_id, (show_count && num_engines == 0) ? PALETTE_CRASH : GetEnginePalette(item.engine_id, _local_company), EIT_PURCHASE);
|
|
|
|
|
if (show_count) {
|
|
|
|
|
SetDParam(0, num_engines);
|
|
|
|
|
DrawString(cr.left, cr.right, y + small_text_y_offset, STR_TINY_BLACK_COMA, TC_FROMSTRING, SA_RIGHT | SA_FORCE);
|
|
|
|
|
DrawString(cr.left, cr.right, y + small_text_y_offset, STR_TINY_BLACK_COMMA, TC_FROMSTRING, SA_RIGHT | SA_FORCE);
|
|
|
|
|
if (EngineHasReplacementForCompany(Company::Get(_local_company), item.engine_id, selected_group)) DrawSprite(SPR_GROUP_REPLACE_ACTIVE, num_engines == 0 ? PALETTE_CRASH : PAL_NONE, rr.left, y + replace_icon_y_offset);
|
|
|
|
|
}
|
|
|
|
|
if (has_variants) {
|
|
|
|
|