mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 12:14:11 +01:00
Change: Show only selected badge in badge filter dropdown buttons. (#14855)
This avoids complicating languages and translations trying to compose a string from multiple parts. Also makes these dropdown buttons more consistent with other dropdown buttons.
This commit is contained in:
@@ -5978,4 +5978,3 @@ STR_BADGE_CONFIG_FILTERS :{WHITE}Badge Fi
|
||||
STR_BADGE_CONFIG_PREVIEW :Preview Image
|
||||
STR_BADGE_CONFIG_NAME :Name
|
||||
STR_BADGE_FILTER_ANY_LABEL :Any {STRING}
|
||||
STR_BADGE_FILTER_IS_LABEL :{STRING} is {STRING}
|
||||
|
||||
@@ -505,7 +505,7 @@ std::string NWidgetBadgeFilter::GetStringParameter(const BadgeFilterChoices &cho
|
||||
return ::GetString(STR_BADGE_FILTER_ANY_LABEL, GetClassBadge(this->badge_class)->name);
|
||||
}
|
||||
|
||||
return ::GetString(STR_BADGE_FILTER_IS_LABEL, GetClassBadge(it->first)->name, GetBadge(it->second)->name);
|
||||
return ::GetString(GetBadge(it->second)->name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user