MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowVehicleListWindow

Function ShowVehicleListWindow

src/vehicle_gui.cpp:2289–2301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2287}
2288
2289void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type)
2290{
2291 /* If _settings_client.gui.advanced_vehicle_list > 1, display the Advanced list
2292 * if _settings_client.gui.advanced_vehicle_list == 1, display Advanced list only for local company
2293 * if _ctrl_pressed, do the opposite action (Advanced list x Normal list)
2294 */
2295
2296 if ((_settings_client.gui.advanced_vehicle_list > (uint)(company != _local_company)) != _ctrl_pressed) {
2297 ShowCompanyGroup(company, vehicle_type);
2298 } else {
2299 ShowVehicleListWindowLocal(company, VL_STANDARD, vehicle_type, company.base());
2300 }
2301}
2302
2303void ShowVehicleListWindow(const Vehicle *v)
2304{

Callers 12

MenuClickShowTrainsFunction · 0.85
MenuClickShowRoadFunction · 0.85
MenuClickShowShipsFunction · 0.85
MenuClickShowAirFunction · 0.85
OnHotkeyMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnDragDrop_VehicleMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 5

ShowCompanyGroupFunction · 0.85
GetDepotDestinationIndexFunction · 0.85
FirstSharedMethod · 0.80
baseMethod · 0.45

Tested by

no test coverage detected