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

Function MakeDropDownListStringItem

src/dropdown.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(StringID str, int value, bool masked, bool shaded)
36{
37 return MakeDropDownListStringItem(GetString(str), value, masked, shaded);
38}
39
40std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(std::string &&str, int value, bool masked, bool shaded)
41{

Callers 15

OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
ShowDateDropDownMethod · 0.85
PopupMainToolbarMenuFunction · 0.85
ToolbarOptionsClickFunction · 0.85
ToolbarMapClickFunction · 0.85
ToolbarScenMapTownDirFunction · 0.85
ToolbarTownClickFunction · 0.85
ToolbarGraphsClickFunction · 0.85

Calls 1

GetStringFunction · 0.70

Tested by

no test coverage detected