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

Function ShowVehicleViewWindow

src/vehicle_gui.cpp:3432–3435  ·  view source on GitHub ↗

Shows the vehicle view window of the given vehicle. */

Source from the content-addressed store, hash-verified

3430
3431/** Shows the vehicle view window of the given vehicle. */
3432void ShowVehicleViewWindow(const Vehicle *v)
3433{
3434 AllocateWindowDescFront<VehicleViewWindow>((v->type == VEH_TRAIN) ? _train_view_desc : _vehicle_view_desc, v->index);
3435}
3436
3437/**
3438 * Dispatch a "vehicle selected" event if any window waits for it.

Callers 8

OnClickMethod · 0.85
CcCloneVehicleFunction · 0.85
DepotClickMethod · 0.85
OnDragDropMethod · 0.85
OnDragDrop_VehicleMethod · 0.85
OnClickMethod · 0.85
CcBuildPrimaryVehicleFunction · 0.85
HandleViewportClickedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected