| 2343 | } |
| 2344 | |
| 2345 | void OnPaint() override |
| 2346 | { |
| 2347 | this->SetWidgetDisabledState(WID_TE_DATE_BACKWARD, _settings_game.game_creation.starting_year <= CalendarTime::MIN_YEAR); |
| 2348 | this->SetWidgetDisabledState(WID_TE_DATE_FORWARD, _settings_game.game_creation.starting_year >= CalendarTime::MAX_YEAR); |
| 2349 | this->SetWidgetDisabledState(WID_TE_ROADS, !GetRoadTypes(true).Any(GetMaskForRoadTramType(RTT_ROAD))); |
| 2350 | this->SetWidgetDisabledState(WID_TE_TRAMS, !GetRoadTypes(true).Any(GetMaskForRoadTramType(RTT_TRAM))); |
| 2351 | |
| 2352 | this->DrawWidgets(); |
| 2353 | } |
| 2354 | |
| 2355 | std::string GetWidgetString(WidgetID widget, StringID stringid) const override |
| 2356 | { |
nothing calls this directly
no test coverage detected