================= Script_Close ================= */
| 2233 | ================= |
| 2234 | */ |
| 2235 | qboolean 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 | ================= |
nothing calls this directly
no test coverage detected