Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
LayoutHolder Class Reference
Inheritance diagram for LayoutHolder:
CargoContainerRow Header Icon PlayerPreview SlotsIcon ClosableHeader CollapsibleHeader HandsHeader

Protected Member Functions

bool AddItemToQuickbarRadial (EntityAI itemToAssign)
bool CanAddToQuickbarEx (EntityAI focusedEntity)
bool CanCombine ()
bool CanCombineAmmo ()
bool CanCombineEx (EntityAI focusedEntity)
bool CanDrop ()
bool CanDropEx (EntityAI focusedEntity)
bool CanEquip ()
bool CanEquipEx (EntityAI focusedEntity)
bool CanOpenCloseContainer ()
bool CanOpenCloseContainerEx (EntityAI focusedEntity)
bool CanSplit ()
bool CanSplitEx (EntityAI focusedEntity)
bool CanSwapOrTakeToHands ()
bool CanSwapOrTakeToHandsEx (EntityAI focusedEntity)
bool CanTakeToInventory ()
bool CanTakeToInventoryEx (EntityAI focusedEntity)
void CheckHeaderDragability ()
void CheckScrollbarVisibility ()
void CheckScrollbarVisibility (ScrollWidget sw)
void Close ()
bool Combine ()
void Container (LayoutHolder parent)
int Count ()
void DraggingOver (Widget w, int x, int y, Widget receiver)
void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
bool EquipItem ()
void ExpandCollapseContainer ()
LayoutHolder Get (int x)
int GetActiveIndex ()
int GetColumnCount ()
Container GetContainer (int index)
int GetFocusedColumn ()
Container GetFocusedContainer ()
EntityAI GetFocusedContainerEntity ()
float GetFocusedContainerHeight (bool contents=false)
float GetFocusedContainerYPos (bool contents=false)
float GetFocusedContainerYScreenPos (bool contents=false)
EntityAI GetFocusedItem ()
SlotsIcon GetFocusedSlotsIcon ()
Header GetHeader ()
ScrollWidget GetScrollWidget ()
ScrollWidget GetSlotsScrollWidget ()
void HideContent (bool force_hide=false)
void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
bool InspectItem ()
bool IsEmpty ()
bool IsFirstContainerFocused ()
bool IsFirstIndex ()
bool IsItemActive ()
bool IsItemWithQuantityActive ()
bool IsLastContainerFocused ()
bool IsLastIndex ()
bool IsOpened ()
void MoveGridCursor (int direction)
void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
bool OnSelectButton ()
void Open ()
void RecomputeOpenedContainers ()
override void Refresh ()
void Remove (LayoutHolder container)
void ResetFocusedContainer ()
void ScrollToActiveContainer ()
void ScrollToActiveContainer (ScrollWidget sw)
bool Select ()
bool SelectItem ()
override void SetActive (bool active)
void SetActiveIndex (int index)
void SetColumnCount (int count)
void SetDefaultFocus (bool while_micromanagment_mode=false)
override void SetFirstActive ()
void SetFocusedColumn (int column)
void SetFocusedContainer (Container cont)
void SetForceShow (bool value)
void SetHeader (Header header)
override void SetLastActive ()
void SetLastFocus ()
override void SetLayoutName ()
void SetNextActive ()
void SetNextLeftActive ()
void SetNextRightActive ()
void SetOpenForSlotIcon (bool open, SlotsIcon icon=null)
void SetPreviousActive (bool force=false)
void SetSameLevelNextActive ()
void SetSameLevelPreviousActive ()
void SetSlotIcon (SlotsIcon icon)
void ShowContent (bool force_show=false)
bool SplitItem ()
void Toggle ()
bool TransferItem ()
bool TransferItemToVicinity ()
void Unfocus ()
void UnfocusAll ()
void UnfocusGrid ()
void UpdateBodySpacers ()
override void UpdateInterval ()
void UpdateRadialIcon ()
override void UpdateSelectionIcons ()
void UpdateSpacer ()

Protected Attributes

const int ITEMS_IN_ROW = 8
int m_ActiveIndex = 0
ref array< ref LayoutHolderm_Body
bool m_Closed
int m_ColumnCount
EntityAI m_Entity
int m_FocusedColumn = 0
Container m_FocusedContainer
bool m_ForcedHide
bool m_ForcedShow
bool m_LastIndex
ref array< LayoutHolderm_OpenedContainers
float m_PrevAlpha
SlotsIcon m_SlotIcon
const int SORT_ATTACHMENTS_NEXT_OFFSET = 2
const int SORT_ATTACHMENTS_OWN = 1
const int SORT_CARGO_NEXT_OFFSET = 3
const int SORT_CARGO_OWN = 2

Detailed Description

Definition at line 1 of file container.c.

Member Function Documentation

◆ AddItemToQuickbarRadial()

bool AddItemToQuickbarRadial ( EntityAI itemToAssign)
inlineprotected

Definition at line 689 of file container.c.

References CanAddToQuickbarEx(), g_Game, MENU_INVENTORY, and MENU_RADIAL_QUICKBAR.

◆ CanAddToQuickbarEx()

bool CanAddToQuickbarEx ( EntityAI focusedEntity)
inlineprotected

◆ CanCombine()

bool CanCombine ( )
inlineprotected

Definition at line 635 of file container.c.

References CanCombineEx(), GetFocusedContainer(), and Container::GetFocusedItem().

◆ CanCombineAmmo()

bool CanCombineAmmo ( )
inlineprotected

Definition at line 665 of file container.c.

References GetFocusedContainer().

◆ CanCombineEx()

bool CanCombineEx ( EntityAI focusedEntity)
inlineprotected

◆ CanDrop()

bool CanDrop ( )
inlineprotected

Definition at line 484 of file container.c.

References CanDropEx(), GetFocusedContainer(), and Container::GetFocusedItem().

◆ CanDropEx()

bool CanDropEx ( EntityAI focusedEntity)
inlineprotected

Definition at line 499 of file container.c.

References g_Game, ItemManager::GetInstance(), and ItemManager::IsMicromanagmentMode().

Referenced by CanDrop().

◆ CanEquip()

bool CanEquip ( )
inlineprotected

Definition at line 560 of file container.c.

References CanEquipEx(), GetFocusedContainer(), and Container::GetFocusedItem().

Referenced by EquipItem().

◆ CanEquipEx()

bool CanEquipEx ( EntityAI focusedEntity)
inlineprotected

◆ CanOpenCloseContainer()

◆ CanOpenCloseContainerEx()

bool CanOpenCloseContainerEx ( EntityAI focusedEntity)
inlineprotected

Definition at line 450 of file container.c.

Referenced by CanOpenCloseContainer().

◆ CanSplit()

bool CanSplit ( )
inlineprotected

Definition at line 455 of file container.c.

References CanSplitEx(), GetFocusedContainer(), and Container::GetFocusedItem().

Referenced by SplitItem().

◆ CanSplitEx()

bool CanSplitEx ( EntityAI focusedEntity)
inlineprotected

◆ CanSwapOrTakeToHands()

bool CanSwapOrTakeToHands ( )
inlineprotected

◆ CanSwapOrTakeToHandsEx()

bool CanSwapOrTakeToHandsEx ( EntityAI focusedEntity)
inlineprotected

◆ CanTakeToInventory()

bool CanTakeToInventory ( )
inlineprotected

◆ CanTakeToInventoryEx()

bool CanTakeToInventoryEx ( EntityAI focusedEntity)
inlineprotected

Definition at line 622 of file container.c.

References g_Game, ItemManager::GetInstance(), and ItemManager::IsMicromanagmentMode().

Referenced by CanTakeToInventory().

◆ CheckHeaderDragability()

void CheckHeaderDragability ( )
protected

◆ CheckScrollbarVisibility() [1/2]

void CheckScrollbarVisibility ( )
inlineprotected

◆ CheckScrollbarVisibility() [2/2]

void CheckScrollbarVisibility ( ScrollWidget sw)
inlineprotected

Definition at line 221 of file container.c.

◆ Close()

void Close ( )
inlineprotected

Definition at line 242 of file container.c.

References m_Closed, and UpdateSelectionIcons().

◆ Combine()

bool Combine ( )
inlineprotected

Definition at line 366 of file container.c.

References GetFocusedContainer().

◆ Container()

◆ Count()

int Count ( )
inlineprotected

Definition at line 338 of file container.c.

References m_Body.

◆ DraggingOver()

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

References x, and y.

◆ DraggingOverHeader()

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

References x, and y.

◆ EquipItem()

bool EquipItem ( )
inlineprotected

Definition at line 410 of file container.c.

References CanEquip(), g_Game, GetFocusedContainer(), and Container::GetFocusedItem().

◆ ExpandCollapseContainer()

void ExpandCollapseContainer ( )
inlineprotected

Definition at line 1312 of file container.c.

◆ Get()

LayoutHolder Get ( int x)
inlineprotected

Definition at line 1246 of file container.c.

References m_Body, and x.

Referenced by Container::Get().

◆ GetActiveIndex()

int GetActiveIndex ( )
inlineprotected

Definition at line 82 of file container.c.

References m_ActiveIndex.

◆ GetColumnCount()

int GetColumnCount ( )
inlineprotected

Definition at line 748 of file container.c.

References m_ColumnCount.

◆ GetContainer()

Container GetContainer ( int index)
inlineprotected

Definition at line 57 of file container.c.

References Container(), and m_Body.

◆ GetFocusedColumn()

int GetFocusedColumn ( )
inlineprotected

Definition at line 758 of file container.c.

References m_FocusedColumn.

◆ GetFocusedContainer()

◆ GetFocusedContainerEntity()

EntityAI GetFocusedContainerEntity ( )
inlineprotected

Definition at line 740 of file container.c.

References GetFocusedContainer().

◆ GetFocusedContainerHeight()

float GetFocusedContainerHeight ( bool contents = false)
inlineprotected

Definition at line 284 of file container.c.

References GetFocusedContainer(), Container::GetHeader(), m_ActiveIndex, x, and y.

◆ GetFocusedContainerYPos()

float GetFocusedContainerYPos ( bool contents = false)
inlineprotected

Definition at line 305 of file container.c.

References GetFocusedContainer(), x, and y.

◆ GetFocusedContainerYScreenPos()

float GetFocusedContainerYScreenPos ( bool contents = false)
inlineprotected

Definition at line 316 of file container.c.

References GetFocusedContainer(), Container::GetHeader(), m_ActiveIndex, x, and y.

◆ GetFocusedItem()

EntityAI GetFocusedItem ( )
inlineprotected

Definition at line 731 of file container.c.

References GetFocusedContainer().

◆ GetFocusedSlotsIcon()

SlotsIcon GetFocusedSlotsIcon ( )
inlineprotected

Definition at line 72 of file container.c.

References Container(), and GetFocusedContainer().

Referenced by SetSameLevelNextActive(), and SetSameLevelPreviousActive().

◆ GetHeader()

Header GetHeader ( )
protected

◆ GetScrollWidget()

ScrollWidget GetScrollWidget ( )
inlineprotected

Definition at line 97 of file container.c.

Referenced by CheckScrollbarVisibility(), and ScrollToActiveContainer().

◆ GetSlotsScrollWidget()

ScrollWidget GetSlotsScrollWidget ( )
inlineprotected

Definition at line 92 of file container.c.

Referenced by CheckScrollbarVisibility(), and ScrollToActiveContainer().

◆ HideContent()

void HideContent ( bool force_hide = false)
inlineprotected

Definition at line 1274 of file container.c.

References m_Body, and m_ForcedHide.

◆ Insert()

void Insert ( LayoutHolder container,
int pos = -1,
bool immedUpdate = true )
inlineprotected

Definition at line 1201 of file container.c.

References m_ActiveIndex, m_Body, and Container::Refresh().

◆ InspectItem()

bool InspectItem ( )
inlineprotected

Definition at line 387 of file container.c.

References GetFocusedContainer().

Referenced by Icon::MouseClick().

◆ IsEmpty()

bool IsEmpty ( )
inlineprotected

Definition at line 712 of file container.c.

References m_OpenedContainers.

◆ IsFirstContainerFocused()

bool IsFirstContainerFocused ( )
inlineprotected

Definition at line 936 of file container.c.

References m_ActiveIndex.

Referenced by SetPreviousActive(), and SetSameLevelPreviousActive().

◆ IsFirstIndex()

bool IsFirstIndex ( )
inlineprotected

Definition at line 931 of file container.c.

References m_ActiveIndex.

◆ IsItemActive()

bool IsItemActive ( )
inlineprotected

Definition at line 717 of file container.c.

References GetFocusedContainer().

◆ IsItemWithQuantityActive()

bool IsItemWithQuantityActive ( )
inlineprotected

Definition at line 724 of file container.c.

References GetFocusedContainer().

◆ IsLastContainerFocused()

bool IsLastContainerFocused ( )
inlineprotected

Definition at line 941 of file container.c.

References m_ActiveIndex, and m_OpenedContainers.

Referenced by SetNextActive(), and SetSameLevelNextActive().

◆ IsLastIndex()

bool IsLastIndex ( )
inlineprotected

Definition at line 926 of file container.c.

References m_ActiveIndex, and m_OpenedContainers.

◆ IsOpened()

bool IsOpened ( )
inlineprotected

Definition at line 248 of file container.c.

References m_Closed.

◆ MoveGridCursor()

◆ OnDropReceivedFromHeader()

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

References x, and y.

◆ OnSelectButton()

bool OnSelectButton ( )
inlineprotected

Definition at line 357 of file container.c.

References GetFocusedContainer().

◆ Open()

void Open ( )
inlineprotected

Definition at line 236 of file container.c.

References m_Closed, and UpdateSelectionIcons().

◆ RecomputeOpenedContainers()

void RecomputeOpenedContainers ( )
inlineprotected

◆ Refresh()

override void Refresh ( )
inlineprotected

Definition at line 1251 of file container.c.

References m_Body.

◆ Remove()

void Remove ( LayoutHolder container)
inlineprotected

◆ ResetFocusedContainer()

void ResetFocusedContainer ( )
inlineprotected

Definition at line 946 of file container.c.

References GetFocusedContainer(), and m_ActiveIndex.

◆ ScrollToActiveContainer() [1/2]

void ScrollToActiveContainer ( )
inlineprotected

◆ ScrollToActiveContainer() [2/2]

void ScrollToActiveContainer ( ScrollWidget sw)
inlineprotected

◆ Select()

bool Select ( )
inlineprotected

Definition at line 350 of file container.c.

References GetFocusedContainer().

◆ SelectItem()

bool SelectItem ( )
inlineprotected

Definition at line 343 of file container.c.

References GetFocusedContainer().

◆ SetActive()

◆ SetActiveIndex()

void SetActiveIndex ( int index)
inlineprotected

Definition at line 87 of file container.c.

References m_ActiveIndex.

◆ SetColumnCount()

void SetColumnCount ( int count)
inlineprotected

Definition at line 753 of file container.c.

References m_ColumnCount.

◆ SetDefaultFocus()

void SetDefaultFocus ( bool while_micromanagment_mode = false)
inlineprotected

Definition at line 115 of file container.c.

References m_ActiveIndex.

◆ SetFirstActive()

override void SetFirstActive ( )
inlineprotected

◆ SetFocusedColumn()

void SetFocusedColumn ( int column)
inlineprotected

Definition at line 763 of file container.c.

References m_FocusedColumn.

◆ SetFocusedContainer()

void SetFocusedContainer ( Container cont)
inlineprotected

Definition at line 67 of file container.c.

References Container(), and m_FocusedContainer.

◆ SetForceShow()

void SetForceShow ( bool value)
inlineprotected

Definition at line 1302 of file container.c.

References m_ForcedShow.

◆ SetHeader()

void SetHeader ( Header header)
protected

◆ SetLastActive()

override void SetLastActive ( )
inlineprotected

◆ SetLastFocus()

void SetLastFocus ( )
inlineprotected

Definition at line 120 of file container.c.

References m_ActiveIndex, m_FocusedColumn, and m_OpenedContainers.

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprotected

Definition at line 1196 of file container.c.

References WidgetLayoutName::Container.

Referenced by ScriptedWidgetEventHandler::LayoutHolder().

◆ SetNextActive()

◆ SetNextLeftActive()

void SetNextLeftActive ( )
inlineprotected

◆ SetNextRightActive()

void SetNextRightActive ( )
inlineprotected

◆ SetOpenForSlotIcon()

void SetOpenForSlotIcon ( bool open,
SlotsIcon icon = null )
inlineprotected

Definition at line 253 of file container.c.

References m_SlotIcon.

Referenced by Toggle().

◆ SetPreviousActive()

void SetPreviousActive ( bool force = false)
inlineprotected

◆ SetSameLevelNextActive()

◆ SetSameLevelPreviousActive()

◆ SetSlotIcon()

void SetSlotIcon ( SlotsIcon icon)
inlineprotected

Definition at line 110 of file container.c.

References m_SlotIcon.

◆ ShowContent()

void ShowContent ( bool force_show = false)
inlineprotected

Definition at line 1287 of file container.c.

References m_Body, and m_ForcedHide.

◆ SplitItem()

bool SplitItem ( )
inlineprotected

Definition at line 394 of file container.c.

References CanSplit(), GetFocusedContainer(), and Container::GetFocusedItem().

◆ Toggle()

void Toggle ( )
inlineprotected

Definition at line 271 of file container.c.

References Container::Close(), IsOpened(), Container::Open(), and SetOpenForSlotIcon().

◆ TransferItem()

bool TransferItem ( )
inlineprotected

Definition at line 380 of file container.c.

References GetFocusedContainer().

◆ TransferItemToVicinity()

bool TransferItemToVicinity ( )
inlineprotected

Definition at line 373 of file container.c.

References GetFocusedContainer().

◆ Unfocus()

void Unfocus ( )
inlineprotected

Definition at line 130 of file container.c.

◆ UnfocusAll()

void UnfocusAll ( )
inlineprotected

Definition at line 901 of file container.c.

References Count, Get(), SlotsIcon::GetCursorWidget(), and ITEMS_IN_ROW.

◆ UnfocusGrid()

void UnfocusGrid ( )
inlineprotected

Definition at line 917 of file container.c.

References GetFocusedContainer(), and m_FocusedColumn.

◆ UpdateBodySpacers()

void UpdateBodySpacers ( )
inlineprotected

Definition at line 1260 of file container.c.

References Container(), m_Body, and UpdateSpacer().

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

Definition at line 768 of file container.c.

References Container::CheckHeaderDragability(), and m_Body.

◆ UpdateRadialIcon()

void UpdateRadialIcon ( )
inlineprotected

Definition at line 102 of file container.c.

References m_SlotIcon.

◆ UpdateSelectionIcons()

override void UpdateSelectionIcons ( )
inlineprotected

Definition at line 1307 of file container.c.

References m_Parent.

Referenced by Close(), MoveGridCursor(), and Open().

◆ UpdateSpacer()

void UpdateSpacer ( )
protected

Referenced by UpdateBodySpacers().

Field Documentation

◆ ITEMS_IN_ROW

const int ITEMS_IN_ROW = 8
protected

Definition at line 10 of file container.c.

Referenced by UnfocusAll().

◆ m_ActiveIndex

◆ m_Body

◆ m_Closed

bool m_Closed
protected

Definition at line 7 of file container.c.

Referenced by Close(), IsOpened(), and Open().

◆ m_ColumnCount

int m_ColumnCount
protected

Definition at line 13 of file container.c.

Referenced by GetColumnCount(), and SetColumnCount().

◆ m_Entity

EntityAI m_Entity
protected

Definition at line 20 of file container.c.

◆ m_FocusedColumn

int m_FocusedColumn = 0
protected

Definition at line 15 of file container.c.

Referenced by GetFocusedColumn(), SetActive(), SetFocusedColumn(), SetLastFocus(), and UnfocusGrid().

◆ m_FocusedContainer

Container m_FocusedContainer
protected

Definition at line 8 of file container.c.

Referenced by SetFocusedContainer().

◆ m_ForcedHide

bool m_ForcedHide
protected

Definition at line 16 of file container.c.

Referenced by Container(), HideContent(), and ShowContent().

◆ m_ForcedShow

bool m_ForcedShow
protected

Definition at line 17 of file container.c.

Referenced by Container(), and SetForceShow().

◆ m_LastIndex

bool m_LastIndex
protected

Definition at line 6 of file container.c.

◆ m_OpenedContainers

◆ m_PrevAlpha

float m_PrevAlpha
protected

Definition at line 9 of file container.c.

Referenced by Container().

◆ m_SlotIcon

SlotsIcon m_SlotIcon
protected

Definition at line 19 of file container.c.

Referenced by Container(), SetOpenForSlotIcon(), SetSlotIcon(), and UpdateRadialIcon().

◆ SORT_ATTACHMENTS_NEXT_OFFSET

const int SORT_ATTACHMENTS_NEXT_OFFSET = 2
protected

Definition at line 24 of file container.c.

◆ SORT_ATTACHMENTS_OWN

const int SORT_ATTACHMENTS_OWN = 1
protected

Definition at line 22 of file container.c.

◆ SORT_CARGO_NEXT_OFFSET

const int SORT_CARGO_NEXT_OFFSET = 3
protected

Definition at line 25 of file container.c.

◆ SORT_CARGO_OWN

const int SORT_CARGO_OWN = 2
protected

Definition at line 23 of file container.c.


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/5_mission/gui/inventorynew/containers/container.c