OpenTTD Source
1.11.0-beta2
|
void DisplayVehicleSortDropDown(Window *w, VehicleType vehicle_type, int selected, int button)
Display the dropdown for the vehicle sort criteria.
void DrawVehicleEngine(int left, int right, int preferred_x, int y, EngineID engine, PaletteID pal, EngineImageType image_type)
Draw an engine.
EngList_SortTypeFunction *const _engine_sort_functions[][11]
Sort functions for the vehicle sort criteria, for each vehicle type.
bool _engine_sort_last_order[]
Last set direction of the sort order, for each vehicle type.
EngineImageType
Visualisation contexts of vehicles and engines.
void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare)
Sort all items using quick sort and given 'CompareItems' function.
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items)
Sort selected range of items (on indices @ <begin, begin+num_items-1>)
bool _engine_sort_show_hidden_engines[]
Last set 'show hidden engines' setting for each vehicle type.
uint16 EngineID
Unique identification number of an engine.
void DrawRoadVehEngine(int left, int right, int preferred_x, int y, EngineID engine, PaletteID pal, EngineImageType image_type)
Draw a road vehicle engine.
byte _engine_sort_last_criteria[]
Last set sort criteria, for each vehicle type.
uint GetEngineListHeight(VehicleType type)
Get the height of a single 'entry' in the engine lists.
const StringID _engine_sort_listing[][12]
Dropdown menu strings for the vehicle sort criteria.
StringID GetEngineInfoString(EngineID engine)
Get a multi-line string with some technical data, describing the engine.
VehicleType
Available vehicle types.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
uint32 PaletteID
The number of the palette.
bool _engine_sort_direction
false = descending, true = ascending.
StringID GetEngineCategoryName(EngineID engine)
Return the category of an engine.
Data structure for an opened window.
bool EngList_SortTypeFunction(const EngineID &, const EngineID &)
argument type for EngList_Sort.