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

Function Item_InitControls

code/ui/ui_shared.cpp:5216–5234  ·  view source on GitHub ↗

=============== Item_InitControls init's special control types =============== */

Source from the content-addressed store, hash-verified

5214===============
5215*/
5216void Item_InitControls(itemDef_t *item)
5217{
5218 if (item == NULL)
5219 {
5220 return;
5221 }
5222 if (item->type == ITEM_TYPE_LISTBOX)
5223 {
5224 listBoxDef_t *listPtr = (listBoxDef_t*)item->typeData;
5225 item->cursorPos = 0;
5226 if (listPtr)
5227 {
5228 listPtr->cursorPos = 0;
5229 listPtr->startPos = 0;
5230 listPtr->endPos = 0;
5231 listPtr->cursorPos = 0;
5232 }
5233 }
5234}
5235
5236/*
5237=================

Callers 1

MenuParse_itemDefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected