(svn r20172) -Codechange: Use BaseVehicleListWindow::BuildActionDropdownList() also for the normal vehicle list.

This commit is contained in:
frosch
2010-07-17 14:58:35 +00:00
parent 240e8df052
commit f06560ad45
3 changed files with 15 additions and 28 deletions

View File

@@ -44,8 +44,8 @@ struct BaseVehicleListWindow : public Window {
void DrawVehicleListItems(VehicleID selected_vehicle, int line_height, const Rect &r) const;
void SortVehicleList();
void BuildVehicleList(Owner owner, uint16 index, uint16 window_type);
Dimension GetActionDropdownSize(bool show_group);
DropDownList *BuildActionDropdownList(bool show_group);
Dimension GetActionDropdownSize(bool show_autoreplace, bool show_group);
DropDownList *BuildActionDropdownList(bool show_autoreplace, bool show_group);
};
uint GetVehicleListHeight(VehicleType type, uint divisor = 1);