MCPcopy Create free account
hub / github.com/Segs/Segs / createMapMenu

Function createMapMenu

Projects/CoX/Servers/MapServer/DataHelpers.cpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281QString createMapMenu() // TODO: compileMonorailMenu() as well
282{
283 QString msg_body = "<linkhoverbg #118866aa><link white><linkhover white><table>";
284 for (auto &map_data : getAllMapData())
285 {
286 uint32_t map_idx = map_data.m_map_idx;
287 QString map_name = getDisplayMapName(map_idx);
288 msg_body.append(QString("<a href=\"cmd:enterdoorvolume %1\"><tr><td>%2</td></tr></a>").arg(map_idx).arg(map_name));
289 }
290 msg_body.append("</table>");
291
292 return msg_body;
293}
294
295QString createKioskMessage(Entity* player)
296{

Callers 1

showMapMenuFunction · 0.85

Calls 2

getDisplayMapNameFunction · 0.85
QStringClass · 0.70

Tested by

no test coverage detected