|
UFO: Alien Invasion
|
#include "cl_inventory_callbacks.h"#include "cl_shared.h"#include "cl_inventory.h"#include "ui/ui_main.h"#include "ui/ui_nodes.h"#include "cgame/cl_game.h"#include "ui/ui_popup.h"
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. | |
| static void | INV_UpdateActorLoad_f (void) |
| Update the equipment weight for the selected actor. | |
| void | INV_InitCallbacks (void) |
Variables | |
| static const objDef_t * | currentDisplayedObject |
| static int | itemIndex |
| static int | fireModeIndex |
|
static |
Translate a weaponSkill integer to a translated string.
Definition at line 40 of file cl_inventory_callbacks.cpp.
References _, SKILL_ASSAULT, SKILL_CLOSE, SKILL_EXPLOSIVE, SKILL_HEAVY, and SKILL_SNIPER.
Referenced by INV_ItemDescription().
Decreases the number of the firemode to display.
Definition at line 244 of file cl_inventory_callbacks.cpp.
References currentDisplayedObject, fireModeIndex, and INV_ItemDescription().
Referenced by INV_InitCallbacks().
Decreases the number of the firemode to display (for ammo) or the ammo to display (for weapon).
Definition at line 289 of file cl_inventory_callbacks.cpp.
References objDef_t::ammos, currentDisplayedObject, GAME_ItemIsUseable(), INV_ItemDescription(), itemIndex, objDef_t::numAmmos, objDef_t::numWeapons, and objDef_t::weapons.
Referenced by INV_InitCallbacks().
Increases the number of the firemode to display.
Definition at line 230 of file cl_inventory_callbacks.cpp.
References currentDisplayedObject, fireModeIndex, and INV_ItemDescription().
Referenced by INV_InitCallbacks().
Increases the number of the weapon to display (for ammo) or the ammo to display (for weapon).
Definition at line 258 of file cl_inventory_callbacks.cpp.
References objDef_t::ammos, currentDisplayedObject, GAME_ItemIsUseable(), INV_ItemDescription(), itemIndex, objDef_t::numAmmos, objDef_t::numWeapons, and objDef_t::weapons.
Referenced by INV_InitCallbacks().
Definition at line 407 of file cl_inventory_callbacks.cpp.
References Cmd_AddCommand(), INV_DecreaseFiremode_f(), INV_DecreaseItem_f(), INV_IncreaseFiremode_f(), INV_IncreaseItem_f(), INV_UpdateActorLoad_f(), and INV_UpdateObject_f().
Referenced by INV_InitStartup().
Prints the description for items (weapons, armour, ...).
| [in] | od | The object definition of the item |
od->isDummy here somewhere? Definition at line 67 of file cl_inventory_callbacks.cpp.
References _, objDef_t::ammo, objDef_t::ammos, CL_WeaponSkillToName(), Com_sprintf(), count, csi, currentDisplayedObject, Cvar_ForceSet(), Cvar_Set(), fireDef_t::damage, itemEffect_t::duration, objDef_t::fd, fireModeIndex, objDef_t::fireTwoHanded, GAME_ItemIsUseable(), i, damageType_t::id, objDef_t::id, objDef_t::implant, objDef_t::isAmmo(), objDef_t::isArmour(), itemEffect_t::isPermanent, itemIndex, fireDef_t::name, objDef_t::name, objDef_t::numAmmos, objDef_t::numFiredefs, objDef_t::numWeapons, itemEffect_t::period, objDef_t::price, Q_strcat(), fireDef_t::range, objDef_t::ratings, fireDef_t::shots, damageType_t::showInMenu, objDef_t::size, fireDef_t::spldmg, fireDef_t::spread, objDef_t::strengthenEffect, TEXT_ITEMDESCRIPTION, fireDef_t::time, UI_ExecuteConfunc(), UI_MAX_SMALLTEXTLEN, UI_RegisterText(), UI_ResetData(), UNIT_SIZE, objDef_t::weapon, objDef_t::weapons, fireDef_t::weaponSkill, objDef_t::weight, and WEIGHT_FACTOR.
Referenced by GAME_GetImportData(), INV_DecreaseFiremode_f(), INV_DecreaseItem_f(), INV_IncreaseFiremode_f(), INV_IncreaseItem_f(), INV_UpdateObject_f(), and cgame_import_t::void().
Update the equipment weight for the selected actor.
Definition at line 355 of file cl_inventory_callbacks.cpp.
References _, Container::_invList, ABILITY_SPEED, Cmd_Argc(), Cmd_Argv(), Com_Printf(), Com_sprintf(), count, Container::def(), GAME_GetChrMaxLoad(), GAME_GetSelectedChr(), GET_ENCUMBRANCE_PENALTY, GET_TU, Inventory::getNextCont(), Inventory::getWeight(), i, character_t::inv, MAX_FIREDEFS_PER_WEAPON, MAX_VAR, name, popupText, Q_strcat(), character_t::score, chrScoreGlobal_t::skills, invDef_t::temp, UI_ExecuteConfunc(), UI_Popup(), WEIGHT_FACTOR, and WEIGHT_NORMAL_PENALTY.
Referenced by INV_InitCallbacks().
Update the GUI with the selected item.
Definition at line 319 of file cl_inventory_callbacks.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), csi, Cvar_FindVar(), Cvar_SetValue(), cvar_t::integer, INV_GetFilterFromItem(), INV_ItemDescription(), INVSH_GetItemByIDX(), and UI_ExecuteConfunc().
Referenced by INV_InitCallbacks().
|
static |
Definition at line 33 of file cl_inventory_callbacks.cpp.
Referenced by INV_DecreaseFiremode_f(), INV_DecreaseItem_f(), INV_IncreaseFiremode_f(), INV_IncreaseItem_f(), and INV_ItemDescription().
|
static |
Definition at line 35 of file cl_inventory_callbacks.cpp.
Referenced by HUD_SetShootReservation(), INV_DecreaseFiremode_f(), INV_IncreaseFiremode_f(), and INV_ItemDescription().
|
static |
Definition at line 34 of file cl_inventory_callbacks.cpp.
Referenced by INV_DecreaseItem_f(), INV_IncreaseItem_f(), and INV_ItemDescription().