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

Method OnPaint

src/order_gui.cpp:1059–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057 }
1058
1059 void OnPaint() override
1060 {
1061 if (this->vehicle->owner != _local_company) {
1062 this->selected_order = -1; // Disable selection any selected row at a competitor order window.
1063 } else {
1064 this->SetWidgetLoweredState(WID_O_GOTO, this->goto_type != OPOS_NONE);
1065 }
1066 this->DrawWidgets();
1067 }
1068
1069 void DrawWidget(const Rect &r, WidgetID widget) const override
1070 {

Callers

nothing calls this directly

Calls 2

SetWidgetLoweredStateMethod · 0.80
DrawWidgetsMethod · 0.80

Tested by

no test coverage detected