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

Function Script_SetItemBackground

code/ui/ui_shared.cpp:2045–2056  ·  view source on GitHub ↗

================= Script_SetItemBackground ================= */

Source from the content-addressed store, hash-verified

2043=================
2044*/
2045qboolean Script_SetItemBackground(itemDef_t *item, const char **args)
2046{
2047 const char *itemName;
2048 const char *name;
2049
2050 // expecting name of shader
2051 if (String_Parse(args, &itemName) && String_Parse(args, &name))
2052 {
2053 Menu_SetItemBackground((menuDef_t *) item->parent, itemName, name);
2054 }
2055 return qtrue;
2056}
2057
2058/*
2059=================

Callers

nothing calls this directly

Calls 2

String_ParseFunction · 0.70
Menu_SetItemBackgroundFunction · 0.70

Tested by

no test coverage detected