Add menu item to vehicle list to change order target.

Allow moving depot/station/waypoint orders to a different depot/etc.
This commit is contained in:
Jonathan G Rennison
2016-01-27 20:02:35 +00:00
parent 10b679bba5
commit 2c9029703b
6 changed files with 138 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ struct BaseVehicleListWindow : public Window {
ADI_DEPOT,
ADI_ADD_SHARED,
ADI_REMOVE_ALL,
ADI_CHANGE_ORDER,
};
static const StringID vehicle_depot_name[];
@@ -46,8 +47,8 @@ struct BaseVehicleListWindow : public Window {
void DrawVehicleListItems(VehicleID selected_vehicle, int line_height, const Rect &r) const;
void SortVehicleList();
void BuildVehicleList();
Dimension GetActionDropdownSize(bool show_autoreplace, bool show_group);
DropDownList *BuildActionDropdownList(bool show_autoreplace, bool show_group);
Dimension GetActionDropdownSize(bool show_autoreplace, bool show_group, StringID change_order_str = 0);
DropDownList *BuildActionDropdownList(bool show_autoreplace, bool show_group, StringID change_order_str = 0);
};
uint GetVehicleListHeight(VehicleType type, uint divisor = 1);