/* Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // cl_inv.c -- client inventory screen #include "client.h" /* ================ CL_ParseInventory ================ */ void CL_ParseInventory (void) { int i; for (i=0 ; ivalue, "inventory", false, true); //R_DrawPic (x, y+8, "inventory"); y += scaledHud(24); x += scaledHud(24); Inv_DrawString (x, y, "^bhotkey ### item"); Inv_DrawString (x, y+scaledHud(8), "^b------ --- ----"); y += scaledHud(16); for (i=top; i^i%3s %3i %7s", bind, cl.inventory[item], cl.configstrings[OLD_CS_ITEMS+item] ); } } else { //Com_sprintf (string, sizeof(string), "%6s %3i %s", bind, cl.inventory[item], // cl.configstrings[CS_ITEMS+item] ); if (item != selected) { Com_sprintf (string, sizeof(string), " ^b^a%3s %3i %7s", bind, cl.inventory[item], cl.configstrings[CS_ITEMS+item] ); } else // draw a blinky cursor by the selected item { Com_sprintf (string, sizeof(string), "^b>^i%3s %3i %7s", bind, cl.inventory[item], cl.configstrings[CS_ITEMS+item] ); } } /*if (item != selected) SetStringHighBit (string); else // draw a blinky cursor by the selected item { if ( (int)(cls.realtime*10) & 1) R_DrawChar (x-8, y, 15, 255); }*/ Inv_DrawString (x, y, string); y += scaledHud(8); } }