Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
VicinityContainer Class Reference
Inheritance diagram for VicinityContainer:
CollapsibleContainer

Protected Member Functions

void VicinityContainer (LayoutHolder parent, int sort=-1)
override bool CanOpenCloseContainerEx (EntityAI focusedEntity)
override void CollapseButtonOnMouseButtonDown (Widget w)
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
void DraggingOverIcon (Widget w, int x, int y, Widget receiver)
override void ExpandCollapseContainer ()
VicinitySlotsContainer GetVicinityIconsContainer ()
bool IsContainerWithCargoActive ()
bool IsItemWithAttachmentsActive ()
bool IsItemWithCategoriesActive ()
bool IsVicinityContainerIconsActive ()
override bool OnChildAdd (Widget w, Widget child)
override bool OnChildRemove (Widget w, Widget child)
void OnDropReceivedFromEmptySpace (Widget w, int x, int y, Widget receiver)
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
void OnDropReceivedFromIcon (Widget w, int x, int y, Widget receiver)
void OnLeftPanelDropReceived (Widget w, int x, int y, Widget receiver)
void ToggleContainer (notnull Container conta)
void ToggleContainer (Widget w, EntityAI item)
void TraverseShowedItems ()
void UpdateHeader (EntityAI entity, Container cont, PlayerBase player)
 Updates header dragability to be consistent with current 'icon' behaviour.
override void UpdateInterval ()

Protected Attributes

const float DISTANCE_TO_ENTITIES = 1.0
const float DISTANCE_TO_THE_REST = 0.5
const int ITEMS_PER_COLUMN_MAX = 8
ScrollWidget m_CargoScrollWidget
bool m_IsProcessing = false
const float VICINITY_CARGO_SCROLLER_HEIGHT_MAX = 0.87
const float VICINITY_CARGO_SCROLLER_HEIGHT_MID = 0.78
const float VICINITY_CARGO_SCROLLER_HEIGHT_MIN = 0.77

Private Attributes

ref map< CargoBase, ref Containerm_ShowedCargos = new map<CargoBase, ref Container>
ref array< EntityAIm_ShowedItemIcons = new array<EntityAI>
ref map< EntityAI, ref Containerm_ShowedItems = new map<EntityAI, ref Container>
ref map< int, ref Containerm_ShowedItemsIDs = new map<int, ref Container>
ref VicinitySlotsContainer m_VicinityIconsContainer
Private Attributes inherited from CollapsibleContainer
ref CollapsibleHeader m_CollapsibleHeader
bool m_Hidden

Additional Inherited Members

Private Member Functions inherited from CollapsibleContainer
void CollapsibleContainer (LayoutHolder parent, int sort=-1)
bool CanDisplayAnyCategory ()
void CollapseButtonOnMouseButtonDown (Widget w)
EntityAI GetEntity ()
override Header GetHeader ()
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
bool IsHidden ()
void LoadDefaultState ()
override bool OnChildAdd (Widget w, Widget child)
override bool OnChildRemove (Widget w, Widget child)
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
override void OnHide ()
override void OnShow ()
override void Refresh ()
override void Remove (LayoutHolder container)
void SetCollapsibleHeaderArrowState (bool open)
override void SetHeader (Header header)
override void SetLayoutName ()
override void Toggle ()
void UpdateCollapseButtons ()

Detailed Description

Definition at line 1 of file vicinitycontainer.c.

Constructor & Destructor Documentation

◆ VicinityContainer()

Member Function Documentation

◆ CanOpenCloseContainerEx()

override bool CanOpenCloseContainerEx ( EntityAI focusedEntity)
inlineprotected

◆ CollapseButtonOnMouseButtonDown()

override void CollapseButtonOnMouseButtonDown ( Widget w)
inlineprotected

◆ DraggingOverHeader()

◆ DraggingOverIcon()

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprotected

◆ GetVicinityIconsContainer()

VicinitySlotsContainer GetVicinityIconsContainer ( )
inlineprotected

Definition at line 61 of file vicinitycontainer.c.

References m_VicinityIconsContainer.

◆ IsContainerWithCargoActive()

bool IsContainerWithCargoActive ( )
inlineprotected

Definition at line 66 of file vicinitycontainer.c.

◆ IsItemWithAttachmentsActive()

bool IsItemWithAttachmentsActive ( )
inlineprotected

Definition at line 71 of file vicinitycontainer.c.

◆ IsItemWithCategoriesActive()

bool IsItemWithCategoriesActive ( )
inlineprotected

Definition at line 76 of file vicinitycontainer.c.

◆ IsVicinityContainerIconsActive()

bool IsVicinityContainerIconsActive ( )
inlineprotected

Definition at line 56 of file vicinitycontainer.c.

References m_VicinityIconsContainer.

◆ OnChildAdd()

override bool OnChildAdd ( Widget w,
Widget child )
inlineprotected

Definition at line 713 of file vicinitycontainer.c.

References m_Parent.

◆ OnChildRemove()

override bool OnChildRemove ( Widget w,
Widget child )
inlineprotected

Definition at line 700 of file vicinitycontainer.c.

References m_Parent, x, and y.

◆ OnDropReceivedFromEmptySpace()

void OnDropReceivedFromEmptySpace ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 285 of file vicinitycontainer.c.

References OnDropReceivedFromHeader(), x, and y.

◆ OnDropReceivedFromHeader()

◆ OnDropReceivedFromIcon()

◆ OnLeftPanelDropReceived()

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

Definition at line 280 of file vicinitycontainer.c.

References OnDropReceivedFromHeader(), x, and y.

◆ ToggleContainer() [1/2]

void ToggleContainer ( notnull Container conta)
inlineprotected

Definition at line 680 of file vicinitycontainer.c.

◆ ToggleContainer() [2/2]

void ToggleContainer ( Widget w,
EntityAI item )
inlineprotected

◆ TraverseShowedItems()

void TraverseShowedItems ( )
inlineprotected

◆ UpdateHeader()

void UpdateHeader ( EntityAI entity,
Container cont,
PlayerBase player )
inlineprotected

Updates header dragability to be consistent with current 'icon' behaviour.

Definition at line 730 of file vicinitycontainer.c.

References CancelWidgetDragging(), ItemManager::EvaluateContainerDragabilityDefault(), GetDragWidget(), Container::GetHeader(), ItemManager::GetInstance(), and ItemManager::SetWidgetDraggable().

Referenced by UpdateInterval().

◆ UpdateInterval()

Field Documentation

◆ DISTANCE_TO_ENTITIES

const float DISTANCE_TO_ENTITIES = 1.0
protected

Definition at line 14 of file vicinitycontainer.c.

◆ DISTANCE_TO_THE_REST

const float DISTANCE_TO_THE_REST = 0.5
protected

Definition at line 15 of file vicinitycontainer.c.

◆ ITEMS_PER_COLUMN_MAX

const int ITEMS_PER_COLUMN_MAX = 8
protected

Definition at line 17 of file vicinitycontainer.c.

Referenced by UpdateInterval().

◆ m_CargoScrollWidget

ScrollWidget m_CargoScrollWidget
protected

Definition at line 11 of file vicinitycontainer.c.

Referenced by VicinityContainer(), and UpdateInterval().

◆ m_IsProcessing

bool m_IsProcessing = false
protected

Definition at line 8 of file vicinitycontainer.c.

◆ m_ShowedCargos

ref map<CargoBase, ref Container> m_ShowedCargos = new map<CargoBase, ref Container>
private

Definition at line 7 of file vicinitycontainer.c.

Referenced by UpdateInterval().

◆ m_ShowedItemIcons

ref array<EntityAI> m_ShowedItemIcons = new array<EntityAI>
private

◆ m_ShowedItems

◆ m_ShowedItemsIDs

ref map<int, ref Container> m_ShowedItemsIDs = new map<int, ref Container>
private

Definition at line 5 of file vicinitycontainer.c.

Referenced by UpdateInterval().

◆ m_VicinityIconsContainer

ref VicinitySlotsContainer m_VicinityIconsContainer
private

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MAX

const float VICINITY_CARGO_SCROLLER_HEIGHT_MAX = 0.87
protected

Definition at line 20 of file vicinitycontainer.c.

Referenced by UpdateInterval().

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MID

const float VICINITY_CARGO_SCROLLER_HEIGHT_MID = 0.78
protected

Definition at line 19 of file vicinitycontainer.c.

Referenced by UpdateInterval().

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MIN

const float VICINITY_CARGO_SCROLLER_HEIGHT_MIN = 0.77
protected

Definition at line 18 of file vicinitycontainer.c.

Referenced by UpdateInterval().


The documentation for this class was generated from the following file: