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

Function ShowBuildObjectPicker

src/object_gui.cpp:425–432  ·  view source on GitHub ↗

Show our object picker. */

Source from the content-addressed store, hash-verified

423
424/** Show our object picker. */
425Window *ShowBuildObjectPicker()
426{
427 /* Don't show the place object button when there are no objects to place. */
428 if (ObjectPickerCallbacks::instance.IsActive()) {
429 return AllocateWindowDescFront<BuildObjectWindow>(_build_object_desc, 0);
430 }
431 return nullptr;
432}
433
434/** Reset all data of the object GUI. */
435void InitializeObjectGui()

Callers 3

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

IsActiveMethod · 0.45

Tested by

no test coverage detected