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

Function Script_SetItemText

code/ui/ui_shared.cpp:2063–2074  ·  view source on GitHub ↗

================= Script_SetItemText ================= */

Source from the content-addressed store, hash-verified

2061=================
2062*/
2063qboolean Script_SetItemText(itemDef_t *item, const char **args)
2064{
2065 const char *itemName;
2066 const char *text;
2067
2068 // expecting text
2069 if (String_Parse(args, &itemName) && String_Parse(args, &text))
2070 {
2071 Menu_SetItemText((menuDef_t *) item->parent, itemName, text);
2072 }
2073 return qtrue;
2074}
2075
2076/*
2077=================

Callers

nothing calls this directly

Calls 2

String_ParseFunction · 0.70
Menu_SetItemTextFunction · 0.70

Tested by

no test coverage detected