- int i, j;
- ui_item_t *it;
- ui_t *ui;
- if (ui_alive && ui_active)
- {
- for (j = 0;j < MAX_UI_COUNT;j++)
- if ((ui = ui_list[j]))
- if (ui->item_count)
- for (i = 0, it = ui->items;i < ui->item_count;i++, it++)
- if (it->flags & ITEM_DRAWABLE)
- {
- if (it->draw_picname)
- DrawQ_Pic(it->draw_x, it->draw_y, it->draw_picname, 0, 0, 1, 1, 1, 1, 0);
- if (it->draw_string)
- DrawQ_String(it->draw_x, it->draw_y, it->draw_string, 0, 8, 8, 1, 1, 1, 1, 0);
- }
-
- if ((it = ui_hititem(ui_mouse_x, ui_mouse_y)))
- {
- if (it->draw_picname)
- DrawQ_Pic(it->draw_x, it->draw_y, it->draw_picname, 0, 0, 1, 1, 1, 1, DRAWFLAG_ADDITIVE);
- if (it->draw_string)
- DrawQ_String(it->draw_x, it->draw_y, it->draw_string, 0, 8, 8, 1, 1, 1, 1, DRAWFLAG_ADDITIVE);
- if (ui_showname.integer)
- DrawQ_String(ui_mouse_x, ui_mouse_y + 16, it->name, 0, 8, 8, 1, 1, 1, 1, 0);
- }
-
- it = ui_keyrealitem;
- if (it->draw_picname)
- DrawQ_Pic(it->draw_x, it->draw_y, it->draw_picname, 0, 0, 1, 1, 1, 1, DRAWFLAG_ADDITIVE);
- if (it->draw_string)
- DrawQ_String(it->draw_x, it->draw_y, it->draw_string, 0, 8, 8, 1, 1, 1, 1, DRAWFLAG_ADDITIVE);
-
- DrawQ_Pic(ui_mouse_x, ui_mouse_y, "ui/mousepointer.tga", 0, 0, 1, 1, 1, 1, 0);
- }