ui_node_container.h

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 2002-2010 UFO: Alien Invasion.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef CLIENT_UI_UI_NODE_CONTAINER_H
00026 #define CLIENT_UI_UI_NODE_CONTAINER_H
00027 
00029 #define C_UNIT              25
00030 
00031 /* prototypes */
00032 struct base_s;
00033 struct uiBehaviour_s;
00034 struct uiNode_s;
00035 
00036 extern inventory_t *ui_inventory;
00037 
00038 void UI_RegisterContainerNode(struct uiBehaviour_s *behaviour);
00039 void UI_DrawItem(struct uiNode_s *node, const vec3_t org, const struct item_s *item, int x, int y, const vec3_t scale, const vec4_t color);
00040 void UI_ContainerNodeUpdateEquipment(inventory_t *inv, equipDef_t *ed);
00041 
00046 typedef struct containerExtraData_s {
00047     /* for all containers */
00048     invDef_t *container;    
00050     int lastSelectedId;     
00051     struct uiAction_s *onSelect;    
00053     /* for scrolled container */
00054 
00055     int filterEquipType;    
00057     int columns;
00058     qboolean displayWeapon;
00059     qboolean displayAmmo;
00060     qboolean displayUnavailableItem;
00061     qboolean displayAmmoOfWeapon;
00062     qboolean displayUnavailableAmmoOfWeapon;
00063     qboolean displayAvailableOnTop;
00064 
00065     int scrollCur;          
00066     int scrollNum;          
00067     int scrollTotalNum;     
00068     struct uiAction_s *onViewChange;    
00069 } containerExtraData_t;
00070 
00071 
00072 #endif

Generated by  doxygen 1.6.2