* Get the height of a single 'entry' in the engine lists. * @param type the vehicle type to get the height of * @return the height for the entry */
| 54 | * @return the height for the entry |
| 55 | */ |
| 56 | uint GetEngineListHeight(VehicleType type) |
| 57 | { |
| 58 | return std::max<uint>(GetCharacterHeight(FS_NORMAL) + WidgetDimensions::scaled.matrix.Vertical(), GetVehicleImageCellSize(type, EIT_PURCHASE).height); |
| 59 | } |
| 60 | |
| 61 | static constexpr std::initializer_list<NWidgetPart> _nested_build_vehicle_widgets = { |
| 62 | NWidget(NWID_HORIZONTAL), |
no test coverage detected