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

Function MakeDropDownListCheckedItem

src/dropdown.cpp:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::unique_ptr<DropDownListItem> MakeDropDownListCheckedItem(bool checked, StringID str, int value, bool masked, bool shaded, uint indent)
56{
57 return std::make_unique<DropDownListCheckedItem>(indent, checked, GetString(str), value, masked, shaded);
58}
59
60static constexpr std::initializer_list<NWidgetPart> _nested_dropdown_menu_widgets = {
61 NWidget(NWID_HORIZONTAL),

Callers 1

ToolbarOptionsClickFunction · 0.85

Calls 1

GetStringFunction · 0.70

Tested by

no test coverage detected