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

Function BuildVisibilityDropDownList

src/network/network_gui.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static DropDownList BuildVisibilityDropDownList()
72{
73 DropDownList list;
74
75 list.push_back(MakeDropDownListStringItem(STR_NETWORK_SERVER_VISIBILITY_LOCAL, SERVER_GAME_TYPE_LOCAL));
76 list.push_back(MakeDropDownListStringItem(STR_NETWORK_SERVER_VISIBILITY_INVITE_ONLY, SERVER_GAME_TYPE_INVITE_ONLY));
77 list.push_back(MakeDropDownListStringItem(STR_NETWORK_SERVER_VISIBILITY_PUBLIC, SERVER_GAME_TYPE_PUBLIC));
78
79 return list;
80}
81
82typedef GUIList<NetworkGame*, std::nullptr_t, StringFilter&> GUIGameServerList;
83typedef int ServerListPosition;

Callers 2

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 2

push_backMethod · 0.80

Tested by

no test coverage detected