* Report a change in vehicle IDs (due to autoreplace) to affected vehicle windows. * @param from_index the old vehicle ID * @param to_index the new vehicle ID */
| 1587 | * @param to_index the new vehicle ID |
| 1588 | */ |
| 1589 | void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index) |
| 1590 | { |
| 1591 | ChangeVehicleWindow(WC_VEHICLE_VIEW, from_index, to_index); |
| 1592 | ChangeVehicleWindow(WC_VEHICLE_ORDERS, from_index, to_index); |
| 1593 | ChangeVehicleWindow(WC_VEHICLE_REFIT, from_index, to_index); |
| 1594 | ChangeVehicleWindow(WC_VEHICLE_DETAILS, from_index, to_index); |
| 1595 | ChangeVehicleWindow(WC_VEHICLE_TIMETABLE, from_index, to_index); |
| 1596 | } |
| 1597 | |
| 1598 | static constexpr std::initializer_list<NWidgetPart> _nested_vehicle_list = { |
| 1599 | NWidget(NWID_HORIZONTAL), |
no test coverage detected