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

Function BuildMapsizeDropDown

src/genworld_gui.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static DropDownList BuildMapsizeDropDown()
345{
346 DropDownList list;
347
348 for (uint i = MIN_MAP_SIZE_BITS; i <= MAX_MAP_SIZE_BITS; i++) {
349 list.push_back(MakeDropDownListStringItem(GetString(STR_JUST_INT, 1ULL << i), i));
350 }
351
352 return list;
353}
354
355static DropDownList BuildTownNameDropDown()
356{

Callers 2

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 3

push_backMethod · 0.80
GetStringFunction · 0.70

Tested by

no test coverage detected