MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Script_Close

Function Script_Close

code/ui/ui_shared.cpp:2235–2251  ·  view source on GitHub ↗

================= Script_Close ================= */

Source from the content-addressed store, hash-verified

2233=================
2234*/
2235qboolean Script_Close(itemDef_t *item, const char **args)
2236{
2237 const char *name;
2238 if (String_Parse(args, &name))
2239 {
2240 if (Q_stricmp(name, "all") == 0)
2241 {
2242 Menus_CloseAll();
2243 }
2244 else
2245 {
2246 Menus_CloseByName(name);
2247 }
2248 }
2249
2250 return qtrue;
2251}
2252
2253/*
2254=================

Callers

nothing calls this directly

Calls 4

Q_stricmpFunction · 0.85
String_ParseFunction · 0.70
Menus_CloseAllFunction · 0.70
Menus_CloseByNameFunction · 0.70

Tested by

no test coverage detected