Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
inventory.c File Reference

Go to the source code of this file.

Enumerations

enum  Direction { RIGHT , LEFT , UP , DOWN }

Functions

void Inventory (LayoutHolder parent)
void InitDragAndDropEvents ()
void InitInputWrapperData ()
void OnInputPresetChanged ()
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
void Serialize ()
void Deserialize ()
void LoadPlayerAttachmentIndexes ()
int GetProperControllerStickAngle (int angle)
int AngleToDirection (int angle)
void TimerEnd ()
bool Controller (Widget w, int control, int value)
void DraggingOverHandsPanel (Widget w, int x, int y, Widget receiver)
void OnHandsPanelDropReceived (Widget w, int x, int y, Widget receiver)
void OnLeftPanelDropReceived (Widget w, int x, int y, Widget receiver)
void OnRightPanelDropReceived (Widget w, int x, int y, Widget receiver)
void OnCenterPanelDropReceived (Widget w, int x, int y, Widget receiver)
void DraggingOverLeftPanel (Widget w, int x, int y, Widget receiver)
void DraggingOverRightPanel (Widget w, int x, int y, Widget receiver)
void DraggingOverCenterPanel (Widget w, int x, int y, Widget receiver)
void Update (float timeslice)
override void UpdateInterval ()
void AddQuickbarItem (InventoryItem item, int index)
void EnableMicromanagement ()
void DisableMicromanagement ()
override void SetLayoutName ()
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system).
void Reset ()
void ResetFocusedContainers ()
override void OnShow ()
override void OnHide ()
override void Refresh ()
void RefreshQuickbar ()
Container GetFocusedArea ()
void UpdateConsoleToolbar ()
string GetStringVariant (string pInputAction, notnull array< string > variants)
 Picks from the strings by active input limiter variant in order: {click,hold,doubleclick}. Intended for inputs that check 'LocalPress' exclusively!!
void MoveFocusByContainer (int direction)
 Shifts between containers vertically.
void MoveFocusByArea (int direction)
 Shifts between vicinity-hands-player.
void InventoryMovementButtonTickHandler (float timeslice)
void UpdateSpecialtyMeter ()

Variables

enum Direction m_LeftArea
ref RightArea m_RightArea
ref HandsArea m_HandsArea
ref PlayerPreview m_PlayerPreview
ref InventoryQuickbar m_Quickbar
Widget m_QuickbarWidget
Widget m_TopConsoleToolbarVicinity
Widget m_TopConsoleToolbarHands
Widget m_TopConsoleToolbarEquipment
Widget m_BottomConsoleToolbar
RichTextWidget m_BottomConsoleToolbarRichText
ref ContextMenu m_ContextMenu
bool m_HadFastTransferred
bool m_HadInspected
bool m_NeedUpdateConsoleToolbar
int m_ControllerAngle
int m_ControllerTilt
bool m_ControllerRightStickTimerEnd = true
ref Timer m_ControllerRightStickTimer
bool m_HoldingQB
InventoryItem m_QBHoveredItems
const float BT_REPEAT_DELAY = 0.35
const float BT_REPEAT_TIME = 0.09
const float BT_THRESHOLD_VALUE = 0.8
const int INV_MOV_LEFT = 0
const int INV_MOV_RIGHT = 1
const int INV_MOV_UP = 2
const int INV_MOV_DOWN = 3
ref array< stringm_InvInputNames = {"UAUILeftInventory","UAUIRightInventory","UAUIUpInventory","UAUIDownInventory"}
ref array< UAIDWrapperm_InvInputWrappers
ref array< floatm_InvInputTimes
int m_InvInputWrappersCount
float m_SensitivityThreshold = 0.0
UAInput m_InvUAInput
int m_InvInputActive = 0
UAInput m_InpInp = null
Widget m_SpecializationPanel
Widget m_SpecializationIcon

Enumeration Type Documentation

◆ Direction

enum Direction
Enumerator
RIGHT 
LEFT 
UP 
DOWN 

Definition at line 18 of file inventory.c.

Function Documentation

◆ AddQuickbarItem()

void AddQuickbarItem ( InventoryItem item,
int index )
protected

Definition at line 1131 of file inventory.c.

◆ AngleToDirection()

int AngleToDirection ( int angle)
protected

Definition at line 404 of file inventory.c.

◆ Controller()

bool Controller ( Widget w,
int control,
int value )
protected

Definition at line 431 of file inventory.c.

◆ Deserialize()

void Deserialize ( )
protected

Definition at line 294 of file inventory.c.

◆ DisableMicromanagement()

void DisableMicromanagement ( )
protected

Definition at line 1170 of file inventory.c.

◆ DraggingOverCenterPanel()

void DraggingOverCenterPanel ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 615 of file inventory.c.

◆ DraggingOverHandsPanel()

void DraggingOverHandsPanel ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 461 of file inventory.c.

◆ DraggingOverLeftPanel()

void DraggingOverLeftPanel ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 605 of file inventory.c.

◆ DraggingOverRightPanel()

void DraggingOverRightPanel ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 610 of file inventory.c.

◆ EnableMicromanagement()

void EnableMicromanagement ( )
protected

Definition at line 1147 of file inventory.c.

◆ GetFocusedArea()

Container GetFocusedArea ( )
protected

Definition at line 1374 of file inventory.c.

◆ GetProperControllerStickAngle()

int GetProperControllerStickAngle ( int angle)
protected

Definition at line 398 of file inventory.c.

◆ GetStringVariant()

string GetStringVariant ( string pInputAction,
notnull array< string > variants )
protected

Picks from the strings by active input limiter variant in order: {click,hold,doubleclick}. Intended for inputs that check 'LocalPress' exclusively!!

Definition at line 1536 of file inventory.c.

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system).

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

pre-init arrays

Temporary hotfix for EOnPostSimulate/EOnFrame methods not beeing called on static objects

Definition at line 1207 of file inventory.c.

◆ InitDragAndDropEvents()

void InitDragAndDropEvents ( )
protected

LEFT AREA

RIGHT AREA

MAIN

Definition at line 132 of file inventory.c.

◆ InitInputWrapperData()

void InitInputWrapperData ( )
protected

Definition at line 239 of file inventory.c.

◆ Inventory()

void Inventory ( LayoutHolder parent)
protected

Definition at line 74 of file inventory.c.

◆ InventoryMovementButtonTickHandler()

void InventoryMovementButtonTickHandler ( float timeslice)
protected

Definition at line 1680 of file inventory.c.

◆ LoadPlayerAttachmentIndexes()

void LoadPlayerAttachmentIndexes ( )
protected

Definition at line 310 of file inventory.c.

◆ MoveFocusByArea()

void MoveFocusByArea ( int direction)
protected

Shifts between vicinity-hands-player.

Definition at line 1603 of file inventory.c.

◆ MoveFocusByContainer()

void MoveFocusByContainer ( int direction)
protected

Shifts between containers vertically.

Definition at line 1562 of file inventory.c.

◆ OnCenterPanelDropReceived()

void OnCenterPanelDropReceived ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 510 of file inventory.c.

◆ OnHandsPanelDropReceived()

void OnHandsPanelDropReceived ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 467 of file inventory.c.

◆ OnHide()

override void OnHide ( )
protected

Definition at line 1266 of file inventory.c.

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
protected

Definition at line 261 of file inventory.c.

◆ OnInputPresetChanged()

void OnInputPresetChanged ( )
protected

Definition at line 254 of file inventory.c.

◆ OnLeftPanelDropReceived()

void OnLeftPanelDropReceived ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 472 of file inventory.c.

◆ OnRightPanelDropReceived()

void OnRightPanelDropReceived ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 477 of file inventory.c.

◆ OnShow()

override void OnShow ( )
protected

Definition at line 1234 of file inventory.c.

◆ Refresh()

override void Refresh ( )
protected

Definition at line 1284 of file inventory.c.

◆ RefreshQuickbar()

void RefreshQuickbar ( )
protected

Definition at line 1294 of file inventory.c.

◆ Reset()

void Reset ( )
protected

Definition at line 1209 of file inventory.c.

◆ ResetFocusedContainers()

void ResetFocusedContainers ( )
protected

Definition at line 1216 of file inventory.c.

◆ Serialize()

void Serialize ( )
protected

Definition at line 287 of file inventory.c.

◆ SetLayoutName()

override void SetLayoutName ( )
protected

Definition at line 1181 of file inventory.c.

◆ TimerEnd()

void TimerEnd ( )
protected

Definition at line 425 of file inventory.c.

◆ Update()

void Update ( float timeslice)
protected

Definition at line 685 of file inventory.c.

◆ UpdateConsoleToolbar()

void UpdateConsoleToolbar ( )
protected

Definition at line 1407 of file inventory.c.

◆ UpdateInterval()

override void UpdateInterval ( )
protected

Definition at line 767 of file inventory.c.

◆ UpdateSpecialtyMeter()

void UpdateSpecialtyMeter ( )
protected

Variable Documentation

◆ BT_REPEAT_DELAY

const float BT_REPEAT_DELAY = 0.35
protected

Definition at line 59 of file inventory.c.

◆ BT_REPEAT_TIME

const float BT_REPEAT_TIME = 0.09
protected

Definition at line 60 of file inventory.c.

◆ BT_THRESHOLD_VALUE

const float BT_THRESHOLD_VALUE = 0.8
protected

Definition at line 61 of file inventory.c.

◆ INV_MOV_DOWN

const int INV_MOV_DOWN = 3
protected

Definition at line 65 of file inventory.c.

◆ INV_MOV_LEFT

const int INV_MOV_LEFT = 0
protected

Definition at line 62 of file inventory.c.

◆ INV_MOV_RIGHT

const int INV_MOV_RIGHT = 1
protected

Definition at line 63 of file inventory.c.

◆ INV_MOV_UP

const int INV_MOV_UP = 2
protected

Definition at line 64 of file inventory.c.

◆ m_BottomConsoleToolbar

Widget m_BottomConsoleToolbar
protected

Definition at line 38 of file inventory.c.

◆ m_BottomConsoleToolbarRichText

RichTextWidget m_BottomConsoleToolbarRichText
protected

Definition at line 39 of file inventory.c.

◆ m_ContextMenu

ref ContextMenu m_ContextMenu
protected

Definition at line 41 of file inventory.c.

◆ m_ControllerAngle

int m_ControllerAngle
protected

Definition at line 50 of file inventory.c.

◆ m_ControllerRightStickTimer

ref Timer m_ControllerRightStickTimer
protected

Definition at line 53 of file inventory.c.

◆ m_ControllerRightStickTimerEnd

bool m_ControllerRightStickTimerEnd = true
protected

Definition at line 52 of file inventory.c.

◆ m_ControllerTilt

int m_ControllerTilt
protected

Definition at line 51 of file inventory.c.

◆ m_HadFastTransferred

bool m_HadFastTransferred
protected

Definition at line 44 of file inventory.c.

◆ m_HadInspected

bool m_HadInspected
protected

Definition at line 45 of file inventory.c.

◆ m_HandsArea

ref HandsArea m_HandsArea
protected

Definition at line 30 of file inventory.c.

◆ m_HoldingQB

bool m_HoldingQB
protected

Definition at line 55 of file inventory.c.

◆ m_InpInp

UAInput m_InpInp = null
protected

Definition at line 766 of file inventory.c.

◆ m_InvInputActive

int m_InvInputActive = 0
protected

Definition at line 72 of file inventory.c.

◆ m_InvInputNames

ref array<string> m_InvInputNames = {"UAUILeftInventory","UAUIRightInventory","UAUIUpInventory","UAUIDownInventory"}
protected

Definition at line 66 of file inventory.c.

◆ m_InvInputTimes

ref array<float> m_InvInputTimes
protected

Definition at line 68 of file inventory.c.

◆ m_InvInputWrappers

ref array<UAIDWrapper> m_InvInputWrappers
protected

Definition at line 67 of file inventory.c.

◆ m_InvInputWrappersCount

int m_InvInputWrappersCount
protected

Definition at line 69 of file inventory.c.

◆ m_InvUAInput

UAInput m_InvUAInput
protected

Definition at line 71 of file inventory.c.

◆ m_LeftArea

enum Direction m_LeftArea

◆ m_NeedUpdateConsoleToolbar

bool m_NeedUpdateConsoleToolbar
protected

Definition at line 46 of file inventory.c.

◆ m_PlayerPreview

ref PlayerPreview m_PlayerPreview
protected

Definition at line 31 of file inventory.c.

◆ m_QBHoveredItems

InventoryItem m_QBHoveredItems
protected

Definition at line 56 of file inventory.c.

◆ m_Quickbar

ref InventoryQuickbar m_Quickbar
protected

Definition at line 32 of file inventory.c.

◆ m_QuickbarWidget

Widget m_QuickbarWidget
protected

Definition at line 34 of file inventory.c.

◆ m_RightArea

ref RightArea m_RightArea
protected

Definition at line 29 of file inventory.c.

◆ m_SensitivityThreshold

float m_SensitivityThreshold = 0.0
protected

Definition at line 70 of file inventory.c.

◆ m_SpecializationIcon

Widget m_SpecializationIcon
protected

Definition at line 1737 of file inventory.c.

◆ m_SpecializationPanel

Widget m_SpecializationPanel
protected

Definition at line 1736 of file inventory.c.

◆ m_TopConsoleToolbarEquipment

Widget m_TopConsoleToolbarEquipment
protected

Definition at line 37 of file inventory.c.

◆ m_TopConsoleToolbarHands

Widget m_TopConsoleToolbarHands
protected

Definition at line 36 of file inventory.c.

◆ m_TopConsoleToolbarVicinity

Widget m_TopConsoleToolbarVicinity
protected

Definition at line 35 of file inventory.c.