=============== Item_InitControls init's special control types =============== */
| 5214 | =============== |
| 5215 | */ |
| 5216 | void 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 | ================= |