MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / add

Function add

src/OpenLoco/src/Ui/Dropdown.cpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void add(size_t index, StringId title)
117 {
118 assert(index < std::numeric_limits<uint8_t>::max());
119
120 _dropdownItemFormats[index] = title;
121 }
122
123 void add(size_t index, StringId title, std::initializer_list<format_arg> l)
124 {

Callers 15

addSeparatorFunction · 0.70
showColourFunction · 0.70
populateCompanySelectFunction · 0.70
showMethod · 0.70
updateDailyMethod · 0.50
deliverCargoToTownMethod · 0.50
deliverCargoToStationMethod · 0.50
playerMouseDownFunction · 0.50
populateTownSizeSelectFunction · 0.50
onMouseDownFunction · 0.50
scrollMouseDownFunction · 0.50
audioMenuMouseDownFunction · 0.50

Calls 3

errorFunction · 0.85
getBufferStartMethod · 0.80
getLengthMethod · 0.45

Tested by

no test coverage detected