| 1330 | } |
| 1331 | |
| 1332 | void OnInit() override |
| 1333 | { |
| 1334 | this->badge_classes = GUIBadgeClasses(static_cast<GrfSpecFeature>(GSF_TRAINS + this->vehicle_type)); |
| 1335 | this->SetCargoFilterArray(); |
| 1336 | |
| 1337 | this->badge_filters = AddBadgeDropdownFilters(this, WID_BV_BADGE_FILTER, WID_BV_BADGE_FILTER, COLOUR_GREY, static_cast<GrfSpecFeature>(GSF_TRAINS + this->vehicle_type)); |
| 1338 | |
| 1339 | this->widget_lookup.clear(); |
| 1340 | this->nested_root->FillWidgetLookup(this->widget_lookup); |
| 1341 | } |
| 1342 | |
| 1343 | /** Filter the engine list against the currently selected cargo filter */ |
| 1344 | void FilterEngineList() |
nothing calls this directly
no test coverage detected