| 1239 | void SetSelectedType(int id) const override { _roadstop_gui.sel_type = id; } |
| 1240 | |
| 1241 | StringID GetTypeName(int cls_id, int id) const override |
| 1242 | { |
| 1243 | const auto *spec = this->GetSpec(cls_id, id); |
| 1244 | if (!IsRoadStopEverAvailable(spec, roadstoptype == RoadStopType::Bus ? StationType::Bus : StationType::Truck)) return INVALID_STRING_ID; |
| 1245 | return (spec == nullptr) ? STR_STATION_CLASS_DFLT_ROADSTOP : spec->name; |
| 1246 | } |
| 1247 | |
| 1248 | std::span<const BadgeID> GetTypeBadges(int cls_id, int id) const override |
| 1249 | { |
nothing calls this directly
no test coverage detected