cl_inventory_callbacks.c File Reference

#include "client.h"
#include "cl_inventory.h"
#include "cl_inventory_callbacks.h"
#include "ui/ui_main.h"
#include "ui/ui_nodes.h"
#include "cl_game.h"
#include "ui/ui_popup.h"
Include dependency graph for cl_inventory_callbacks.c:

Go to the source code of this file.

Functions

static const char * CL_WeaponSkillToName (int weaponSkill)
 Translate a weaponSkill integer to a translated string.
void INV_ItemDescription (const objDef_t *od)
 Prints the description for items (weapons, armour, ...).
static void INV_IncreaseFiremode_f (void)
 Increases the number of the firemode to display.
static void INV_DecreaseFiremode_f (void)
 Decreases the number of the firemode to display.
static void INV_IncreaseItem_f (void)
 Increases the number of the weapon to display (for ammo) or the ammo to display (for weapon).
static void INV_DecreaseItem_f (void)
 Decreases the number of the firemode to display (for ammo) or the ammo to display (for weapon).
static void INV_UpdateObject_f (void)
 Update the GUI with the selected item.
void INV_InitCallbacks (void)

Variables

static const objDef_tcurrentDisplayedObject
static int itemIndex
static int fireModeIndex

Detailed Description

Definition in file cl_inventory_callbacks.c.


Function Documentation

static const char* CL_WeaponSkillToName ( int  weaponSkill  )  [static]

Translate a weaponSkill integer to a translated string.

Definition at line 40 of file cl_inventory_callbacks.c.

References _, SKILL_ASSAULT, SKILL_CLOSE, SKILL_EXPLOSIVE, SKILL_HEAVY, and SKILL_SNIPER.

Referenced by INV_ItemDescription().

static void INV_DecreaseFiremode_f ( void   )  [static]

Decreases the number of the firemode to display.

See also:
UP_ItemDescription

Definition at line 223 of file cl_inventory_callbacks.c.

References fireModeIndex, and INV_ItemDescription().

Referenced by INV_InitCallbacks().

static void INV_DecreaseItem_f ( void   )  [static]

Decreases the number of the firemode to display (for ammo) or the ammo to display (for weapon).

See also:
UP_ItemDescription

Definition at line 268 of file cl_inventory_callbacks.c.

References objDef_s::ammos, GAME_ItemIsUseable(), INV_ItemDescription(), itemIndex, objDef_s::numAmmos, objDef_s::numWeapons, and objDef_s::weapons.

Referenced by INV_InitCallbacks().

static void INV_IncreaseFiremode_f ( void   )  [static]

Increases the number of the firemode to display.

See also:
UP_ItemDescription

Definition at line 209 of file cl_inventory_callbacks.c.

References fireModeIndex, and INV_ItemDescription().

Referenced by INV_InitCallbacks().

static void INV_IncreaseItem_f ( void   )  [static]

Increases the number of the weapon to display (for ammo) or the ammo to display (for weapon).

See also:
UP_ItemDescription

Definition at line 237 of file cl_inventory_callbacks.c.

References objDef_s::ammos, GAME_ItemIsUseable(), INV_ItemDescription(), itemIndex, objDef_s::numAmmos, objDef_s::numWeapons, and objDef_s::weapons.

Referenced by INV_InitCallbacks().

void INV_InitCallbacks ( void   ) 
void INV_ItemDescription ( const objDef_t od  ) 
static void INV_UpdateObject_f ( void   )  [static]

Variable Documentation

Definition at line 33 of file cl_inventory_callbacks.c.

int fireModeIndex [static]
int itemIndex [static]

Generated by  doxygen 1.6.2