DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
VicinityContainer Class Reference

Private Member Functions

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

Private Attributes

ref VicinitySlotsContainer m_VicinityIconsContainer
 
ref map< EntityAI, ref Containerm_ShowedItems = new map<EntityAI, ref Container>
 
ref map< int, ref Containerm_ShowedItemsIDs = new map<int, ref Container>
 
ref array< EntityAIm_ShowedItemIcons = new array<EntityAI>
 
ref map< CargoBase, ref Containerm_ShowedCargos = new map<CargoBase, ref Container>
 
protected bool m_IsProcessing = false
 
protected ScrollWidget m_CargoScrollWidget
 
const float DISTANCE_TO_ENTITIES = 1.0
 
const float DISTANCE_TO_THE_REST = 0.5
 
const int ITEMS_PER_COLUMN_MAX = 8
 
const float VICINITY_CARGO_SCROLLER_HEIGHT_MIN = 0.77
 
const float VICINITY_CARGO_SCROLLER_HEIGHT_MID = 0.78
 
const float VICINITY_CARGO_SCROLLER_HEIGHT_MAX = 0.87
 

Constructor & Destructor Documentation

◆ VicinityContainer()

Member Function Documentation

◆ CanOpenCloseContainerEx()

override bool CanOpenCloseContainerEx ( EntityAI  focusedEntity)
inlineprivate

◆ CollapseButtonOnMouseButtonDown()

override void CollapseButtonOnMouseButtonDown ( Widget  w)
inlineprivate

◆ DraggingOverHeader()

◆ DraggingOverIcon()

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprivate

◆ GetVicinityIconsContainer()

VicinitySlotsContainer GetVicinityIconsContainer ( )
inlineprivate

◆ IsContainerWithCargoActive()

bool IsContainerWithCargoActive ( )
inlineprivate

◆ IsItemWithAttachmentsActive()

bool IsItemWithAttachmentsActive ( )
inlineprivate

◆ IsItemWithCategoriesActive()

bool IsItemWithCategoriesActive ( )
inlineprivate

◆ IsVicinityContainerIconsActive()

bool IsVicinityContainerIconsActive ( )
inlineprivate

◆ OnChildAdd()

override bool OnChildAdd ( Widget  w,
Widget  child 
)
inlineprivate

References m_Parent.

◆ OnChildRemove()

override bool OnChildRemove ( Widget  w,
Widget  child 
)
inlineprivate

References m_Parent, x, and y.

◆ OnDropReceivedFromEmptySpace()

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

References OnDropReceivedFromHeader(), x, and y.

◆ OnDropReceivedFromHeader()

◆ OnDropReceivedFromIcon()

◆ OnLeftPanelDropReceived()

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

◆ ToggleContainer() [1/2]

void ToggleContainer ( notnull Container  conta)
inlineprivate

◆ ToggleContainer() [2/2]

void ToggleContainer ( Widget  w,
EntityAI  item 
)
inlineprivate

◆ TraverseShowedItems()

void TraverseShowedItems ( )
inlineprivate

◆ UpdateHeader()

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

◆ UpdateInterval()

Field Documentation

◆ DISTANCE_TO_ENTITIES

const float DISTANCE_TO_ENTITIES = 1.0
private

◆ DISTANCE_TO_THE_REST

const float DISTANCE_TO_THE_REST = 0.5
private

◆ ITEMS_PER_COLUMN_MAX

const int ITEMS_PER_COLUMN_MAX = 8
private

Referenced by UpdateInterval().

◆ m_CargoScrollWidget

protected ScrollWidget m_CargoScrollWidget
private

◆ m_IsProcessing

protected bool m_IsProcessing = false
private

◆ m_ShowedCargos

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

Referenced by UpdateInterval().

◆ m_ShowedItemIcons

◆ m_ShowedItems

◆ m_ShowedItemsIDs

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

Referenced by UpdateInterval().

◆ m_VicinityIconsContainer

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MAX

const float VICINITY_CARGO_SCROLLER_HEIGHT_MAX = 0.87
private

Referenced by UpdateInterval().

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MID

const float VICINITY_CARGO_SCROLLER_HEIGHT_MID = 0.78
private

Referenced by UpdateInterval().

◆ VICINITY_CARGO_SCROLLER_HEIGHT_MIN

const float VICINITY_CARGO_SCROLLER_HEIGHT_MIN = 0.77
private

Referenced by UpdateInterval().


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