Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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 InitInputWrapperData ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void Serialize ()
 
void Deserialize ()
 
protected void LoadPlayerAttachmentIndexes ()
 
protected int GetProperControllerStickAngle (int angle)
 
protected 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) More...
 
void Reset ()
 
void ResetFocusedContainers ()
 
override void OnShow ()
 
override void OnHide ()
 
void UpdateSpecialtyMeter ()
 
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!! More...
 
void MoveFocusByContainer (int direction)
 Shifts between containers vertically. More...
 
void MoveFocusByArea (int direction)
 Shifts between vicinity-hands-player. More...
 
void InventoryMovementButtonTickHandler (float timeslice)
 

Variables

enum Direction m_LeftArea
 
protected ref RightArea m_RightArea
 
protected ref HandsArea m_HandsArea
 
protected ref PlayerPreview m_PlayerPreview
 
protected ref InventoryQuickbar m_Quickbar
 
protected Widget m_QuickbarWidget
 
protected Widget m_SpecializationPanel
 
protected Widget m_SpecializationIcon
 
protected Widget m_TopConsoleToolbarVicinity
 
protected Widget m_TopConsoleToolbarHands
 
protected Widget m_TopConsoleToolbarEquipment
 
protected Widget m_BottomConsoleToolbar
 
protected RichTextWidget m_BottomConsoleToolbarRichText
 
protected ref ContextMenu m_ContextMenu
 
protected bool m_HadFastTransferred
 
protected bool m_HadInspected
 
protected bool m_NeedUpdateConsoleToolbar
 
protected int m_ControllerAngle
 
protected int m_ControllerTilt
 
protected bool m_ControllerRightStickTimerEnd = true
 
protected ref Timer m_ControllerRightStickTimer
 
protected bool m_HoldingQB
 
protected 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
 
protected ref array< stringm_InvInputNames = {"UAUILeftInventory","UAUIRightInventory","UAUIUpInventory","UAUIDownInventory"}
 
protected ref array< UAIDWrapperm_InvInputWrappers
 
protected ref array< floatm_InvInputTimes
 
protected int m_InvInputWrappersCount
 
protected float m_SensitivityThreshold = 0.0
 
UAInput m_InvUAInput
 
int m_InvInputActive = 0
 
UAInput m_InpInp = null
 

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 
)

Definition at line 1028 of file inventory.c.

◆ AngleToDirection()

protected int AngleToDirection ( int  angle)

Definition at line 309 of file inventory.c.

◆ Controller()

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

Definition at line 336 of file inventory.c.

◆ Deserialize()

void Deserialize ( )

Definition at line 199 of file inventory.c.

◆ DisableMicromanagement()

void DisableMicromanagement ( )

Definition at line 1067 of file inventory.c.

◆ DraggingOverCenterPanel()

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

Definition at line 520 of file inventory.c.

◆ DraggingOverHandsPanel()

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

Definition at line 366 of file inventory.c.

◆ DraggingOverLeftPanel()

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

Definition at line 510 of file inventory.c.

◆ DraggingOverRightPanel()

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

Definition at line 515 of file inventory.c.

◆ EnableMicromanagement()

void EnableMicromanagement ( )

Definition at line 1044 of file inventory.c.

◆ GetFocusedArea()

Container GetFocusedArea ( )

Definition at line 1296 of file inventory.c.

◆ GetProperControllerStickAngle()

protected int GetProperControllerStickAngle ( int  angle)

Definition at line 303 of file inventory.c.

◆ GetStringVariant()

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!!

Definition at line 1452 of file inventory.c.

◆ Init()

void Init ( )

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

Definition at line 1104 of file inventory.c.

◆ InitInputWrapperData()

void InitInputWrapperData ( )

Definition at line 145 of file inventory.c.

◆ Inventory()

void Inventory ( LayoutHolder  parent)

Definition at line 76 of file inventory.c.

◆ InventoryMovementButtonTickHandler()

void InventoryMovementButtonTickHandler ( float  timeslice)

Definition at line 1596 of file inventory.c.

◆ LoadPlayerAttachmentIndexes()

protected void LoadPlayerAttachmentIndexes ( )

Definition at line 215 of file inventory.c.

◆ MoveFocusByArea()

void MoveFocusByArea ( int  direction)

Shifts between vicinity-hands-player.

Definition at line 1519 of file inventory.c.

◆ MoveFocusByContainer()

void MoveFocusByContainer ( int  direction)

Shifts between containers vertically.

Definition at line 1478 of file inventory.c.

◆ OnCenterPanelDropReceived()

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

Definition at line 415 of file inventory.c.

◆ OnHandsPanelDropReceived()

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

Definition at line 372 of file inventory.c.

◆ OnHide()

override void OnHide ( )

Definition at line 1169 of file inventory.c.

◆ OnInputDeviceChanged()

protected void OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)

Definition at line 167 of file inventory.c.

◆ OnInputPresetChanged()

protected void OnInputPresetChanged ( )

Definition at line 160 of file inventory.c.

◆ OnLeftPanelDropReceived()

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

Definition at line 377 of file inventory.c.

◆ OnRightPanelDropReceived()

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

Definition at line 382 of file inventory.c.

◆ OnShow()

override void OnShow ( )

Definition at line 1131 of file inventory.c.

◆ Refresh()

override void Refresh ( )

Definition at line 1206 of file inventory.c.

◆ RefreshQuickbar()

void RefreshQuickbar ( )

Definition at line 1216 of file inventory.c.

◆ Reset()

void Reset ( )

Definition at line 1106 of file inventory.c.

◆ ResetFocusedContainers()

void ResetFocusedContainers ( )

Definition at line 1113 of file inventory.c.

◆ Serialize()

void Serialize ( )

Definition at line 193 of file inventory.c.

◆ SetLayoutName()

override void SetLayoutName ( )

Definition at line 1078 of file inventory.c.

◆ TimerEnd()

void TimerEnd ( )

Definition at line 330 of file inventory.c.

◆ Update()

void Update ( float  timeslice)

Definition at line 590 of file inventory.c.

◆ UpdateConsoleToolbar()

void UpdateConsoleToolbar ( )

Definition at line 1329 of file inventory.c.

◆ UpdateInterval()

override void UpdateInterval ( )

Definition at line 672 of file inventory.c.

◆ UpdateSpecialtyMeter()

void UpdateSpecialtyMeter ( )

Definition at line 1186 of file inventory.c.

Variable Documentation

◆ BT_REPEAT_DELAY

const float BT_REPEAT_DELAY = 0.35

Definition at line 61 of file inventory.c.

◆ BT_REPEAT_TIME

const float BT_REPEAT_TIME = 0.09

Definition at line 62 of file inventory.c.

◆ BT_THRESHOLD_VALUE

const float BT_THRESHOLD_VALUE = 0.8

Definition at line 63 of file inventory.c.

◆ INV_MOV_DOWN

const int INV_MOV_DOWN = 3

Definition at line 67 of file inventory.c.

◆ INV_MOV_LEFT

const int INV_MOV_LEFT = 0

Definition at line 64 of file inventory.c.

◆ INV_MOV_RIGHT

const int INV_MOV_RIGHT = 1

Definition at line 65 of file inventory.c.

◆ INV_MOV_UP

const int INV_MOV_UP = 2

Definition at line 66 of file inventory.c.

◆ m_BottomConsoleToolbar

protected Widget m_BottomConsoleToolbar

Definition at line 40 of file inventory.c.

◆ m_BottomConsoleToolbarRichText

protected RichTextWidget m_BottomConsoleToolbarRichText

Definition at line 41 of file inventory.c.

◆ m_ContextMenu

protected ref ContextMenu m_ContextMenu

Definition at line 43 of file inventory.c.

◆ m_ControllerAngle

protected int m_ControllerAngle

Definition at line 52 of file inventory.c.

◆ m_ControllerRightStickTimer

protected ref Timer m_ControllerRightStickTimer

Definition at line 55 of file inventory.c.

◆ m_ControllerRightStickTimerEnd

protected bool m_ControllerRightStickTimerEnd = true

Definition at line 54 of file inventory.c.

◆ m_ControllerTilt

protected int m_ControllerTilt

Definition at line 53 of file inventory.c.

◆ m_HadFastTransferred

protected bool m_HadFastTransferred

Definition at line 46 of file inventory.c.

◆ m_HadInspected

protected bool m_HadInspected

Definition at line 47 of file inventory.c.

◆ m_HandsArea

protected ref HandsArea m_HandsArea

Definition at line 30 of file inventory.c.

◆ m_HoldingQB

protected bool m_HoldingQB

Definition at line 57 of file inventory.c.

◆ m_InpInp

UAInput m_InpInp = null

Definition at line 671 of file inventory.c.

◆ m_InvInputActive

int m_InvInputActive = 0

Definition at line 74 of file inventory.c.

◆ m_InvInputNames

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

Definition at line 68 of file inventory.c.

◆ m_InvInputTimes

protected ref array<float> m_InvInputTimes

Definition at line 70 of file inventory.c.

◆ m_InvInputWrappers

protected ref array<UAIDWrapper> m_InvInputWrappers

Definition at line 69 of file inventory.c.

◆ m_InvInputWrappersCount

protected int m_InvInputWrappersCount

Definition at line 71 of file inventory.c.

◆ m_InvUAInput

UAInput m_InvUAInput

Definition at line 73 of file inventory.c.

◆ m_LeftArea

enum Direction m_LeftArea

◆ m_NeedUpdateConsoleToolbar

protected bool m_NeedUpdateConsoleToolbar

Definition at line 48 of file inventory.c.

◆ m_PlayerPreview

protected ref PlayerPreview m_PlayerPreview

Definition at line 31 of file inventory.c.

◆ m_QBHoveredItems

protected InventoryItem m_QBHoveredItems

Definition at line 58 of file inventory.c.

◆ m_Quickbar

protected ref InventoryQuickbar m_Quickbar

Definition at line 32 of file inventory.c.

◆ m_QuickbarWidget

protected Widget m_QuickbarWidget

Definition at line 34 of file inventory.c.

◆ m_RightArea

protected ref RightArea m_RightArea

Definition at line 29 of file inventory.c.

◆ m_SensitivityThreshold

protected float m_SensitivityThreshold = 0.0

Definition at line 72 of file inventory.c.

◆ m_SpecializationIcon

protected Widget m_SpecializationIcon

Definition at line 36 of file inventory.c.

◆ m_SpecializationPanel

protected Widget m_SpecializationPanel

Definition at line 35 of file inventory.c.

◆ m_TopConsoleToolbarEquipment

protected Widget m_TopConsoleToolbarEquipment

Definition at line 39 of file inventory.c.

◆ m_TopConsoleToolbarHands

protected Widget m_TopConsoleToolbarHands

Definition at line 38 of file inventory.c.

◆ m_TopConsoleToolbarVicinity

protected Widget m_TopConsoleToolbarVicinity

Definition at line 37 of file inventory.c.