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

Method DrawWidget

src/newgrf_debug_gui.cpp:530–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528 }
529
530 void DrawWidget(const Rect &r, WidgetID widget) const override
531 {
532 switch (widget) {
533 case WID_NGRFI_VEH_CHAIN:
534 this->DrawVehicleChainWidget(r);
535 break;
536
537 case WID_NGRFI_MAINPANEL:
538 this->DrawMainPanelWidget(r);
539 break;
540 }
541 }
542
543 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
544 {

Callers

nothing calls this directly

Calls 2

DrawMainPanelWidgetMethod · 0.95

Tested by

no test coverage detected