MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetListLabel

Function GetListLabel

src/settings_gui.cpp:140–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 */
139template <typename TBaseSet>
140static std::string GetListLabel(const TBaseSet *baseset)
141{
142 if (baseset->GetNumInvalid() == 0) return GetString(STR_JUST_RAW_STRING, baseset->name);
143 return GetString(STR_BASESET_STATUS, baseset->name, baseset->GetNumInvalid());
144}
145
146template <class T>
147DropDownList BuildSetDropDownList(int *selected_index)

Callers 2

BuildSetDropDownListFunction · 0.85
GetWidgetStringMethod · 0.85

Calls 2

GetNumInvalidMethod · 0.80
GetStringFunction · 0.70

Tested by

no test coverage detected