| 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 | { |
nothing calls this directly
no test coverage detected