================= Script_SetItemText ================= */
| 2061 | ================= |
| 2062 | */ |
| 2063 | qboolean 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 | ================= |
nothing calls this directly
no test coverage detected