MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / show

Method show

src/bzflag/JoinMenu.cpp:153–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void JoinMenu::show() {
154 StartupInfo* info = getStartupInfo();
155
156 // set fields
157 if (!LuaClientScripts::GetDevMode()) {
158 callsign->setString(info->callsign);
159 }
160 else {
161 callsign->setString(ANSI_STR_FG_BLACK "devmode");
162 }
163
164 password->setString(info->password);
165 setTeam(info->team);
166
167 if (!LuaClientScripts::GetDevMode()) {
168 server->setString(info->serverName);
169 }
170 else {
171 server->setString(ANSI_STR_FG_BLACK "127.0.0.1 (devmode)");
172 }
173 char buffer[10];
174 sprintf(buffer, "%d", info->serverPort);
175 port->setString(buffer);
176
177 // clear status
178 setStatus("");
179 setFailedMessage("");
180}
181
182void JoinMenu::dismiss() {
183 loadInfo();

Callers 2

pushMethod · 0.45
popMethod · 0.45

Calls 2

getStartupInfoFunction · 0.85
setStringMethod · 0.45

Tested by

no test coverage detected