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

Method DrawWidget

src/script/script_gui.cpp:823–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821 }
822
823 void DrawWidget(const Rect &r, WidgetID widget) const override
824 {
825 switch (widget) {
826 case WID_SCRD_LOG_PANEL:
827 this->DrawWidgetLog(r);
828 break;
829
830 default:
831 if (IsInsideBS(widget, WID_SCRD_COMPANY_BUTTON_START, MAX_COMPANIES)) {
832 this->DrawWidgetCompanyButton(r, widget, WID_SCRD_COMPANY_BUTTON_START);
833 }
834 break;
835 }
836 }
837
838 /**
839 * Draw a company button icon.

Callers

nothing calls this directly

Calls 3

DrawWidgetLogMethod · 0.95
IsInsideBSFunction · 0.85

Tested by

no test coverage detected