Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
LayoutHolder Class Reference
Inheritance diagram for LayoutHolder:
CargoContainerRow Header Icon PlayerPreview SlotsIcon ClosableHeader CollapsibleHeader HandsHeader

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 1 of file container.c.

Member Function Documentation

◆ AddItemToQuickbarRadial()

bool LayoutHolder::AddItemToQuickbarRadial ( EntityAI itemToAssign)
protected

Definition at line 689 of file container.c.

◆ CanAddToQuickbarEx()

bool LayoutHolder::CanAddToQuickbarEx ( EntityAI focusedEntity)
protected

Definition at line 672 of file container.c.

◆ CanCombine()

bool LayoutHolder::CanCombine ( )
protected

Definition at line 635 of file container.c.

◆ CanCombineAmmo()

bool LayoutHolder::CanCombineAmmo ( )
protected

Definition at line 665 of file container.c.

◆ CanCombineEx()

bool LayoutHolder::CanCombineEx ( EntityAI focusedEntity)
protected

Definition at line 649 of file container.c.

◆ CanDrop()

bool LayoutHolder::CanDrop ( )
protected

Definition at line 484 of file container.c.

◆ CanDropEx()

bool LayoutHolder::CanDropEx ( EntityAI focusedEntity)
protected

Definition at line 499 of file container.c.

◆ CanEquip()

bool LayoutHolder::CanEquip ( )
protected

Definition at line 560 of file container.c.

◆ CanEquipEx()

bool LayoutHolder::CanEquipEx ( EntityAI focusedEntity)
protected

Definition at line 574 of file container.c.

◆ CanOpenCloseContainer()

bool LayoutHolder::CanOpenCloseContainer ( )
protected

Definition at line 433 of file container.c.

◆ CanOpenCloseContainerEx()

bool LayoutHolder::CanOpenCloseContainerEx ( EntityAI focusedEntity)
protected

Definition at line 450 of file container.c.

◆ CanSplit()

bool LayoutHolder::CanSplit ( )
protected

Definition at line 455 of file container.c.

◆ CanSplitEx()

bool LayoutHolder::CanSplitEx ( EntityAI focusedEntity)
protected

Definition at line 469 of file container.c.

◆ CanSwapOrTakeToHands()

bool LayoutHolder::CanSwapOrTakeToHands ( )
protected

Definition at line 516 of file container.c.

◆ CanSwapOrTakeToHandsEx()

bool LayoutHolder::CanSwapOrTakeToHandsEx ( EntityAI focusedEntity)
protected

Definition at line 530 of file container.c.

◆ CanTakeToInventory()

bool LayoutHolder::CanTakeToInventory ( )
protected

Definition at line 608 of file container.c.

◆ CanTakeToInventoryEx()

bool LayoutHolder::CanTakeToInventoryEx ( EntityAI focusedEntity)
protected

Definition at line 622 of file container.c.

◆ CheckHeaderDragability()

void LayoutHolder::CheckHeaderDragability ( )
protected

◆ CheckScrollbarVisibility() [1/2]

void LayoutHolder::CheckScrollbarVisibility ( )
protected

Definition at line 204 of file container.c.

◆ CheckScrollbarVisibility() [2/2]

void LayoutHolder::CheckScrollbarVisibility ( ScrollWidget sw)
protected

Definition at line 221 of file container.c.

◆ Close()

void LayoutHolder::Close ( )
protected

Definition at line 242 of file container.c.

◆ Combine()

bool LayoutHolder::Combine ( )
protected

Definition at line 366 of file container.c.

◆ Container()

void LayoutHolder::Container ( LayoutHolder parent)
protected

Definition at line 35 of file container.c.

◆ Count()

int LayoutHolder::Count ( )
protected

Definition at line 338 of file container.c.

◆ DraggingOver()

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

◆ DraggingOverHeader()

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

◆ EquipItem()

bool LayoutHolder::EquipItem ( )
protected

Definition at line 410 of file container.c.

◆ ExpandCollapseContainer()

void LayoutHolder::ExpandCollapseContainer ( )
protected

Definition at line 1312 of file container.c.

◆ Get()

LayoutHolder LayoutHolder::Get ( int x)
protected

Definition at line 1246 of file container.c.

◆ GetActiveIndex()

int LayoutHolder::GetActiveIndex ( )
protected

Definition at line 82 of file container.c.

◆ GetColumnCount()

int LayoutHolder::GetColumnCount ( )
protected

Definition at line 748 of file container.c.

◆ GetContainer()

Container LayoutHolder::GetContainer ( int index)
protected

Definition at line 57 of file container.c.

◆ GetFocusedColumn()

int LayoutHolder::GetFocusedColumn ( )
protected

Definition at line 758 of file container.c.

◆ GetFocusedContainer()

Container LayoutHolder::GetFocusedContainer ( )
protected

Definition at line 48 of file container.c.

◆ GetFocusedContainerEntity()

EntityAI LayoutHolder::GetFocusedContainerEntity ( )
protected

Definition at line 740 of file container.c.

◆ GetFocusedContainerHeight()

float LayoutHolder::GetFocusedContainerHeight ( bool contents = false)
protected

Definition at line 284 of file container.c.

◆ GetFocusedContainerYPos()

float LayoutHolder::GetFocusedContainerYPos ( bool contents = false)
protected

Definition at line 305 of file container.c.

◆ GetFocusedContainerYScreenPos()

float LayoutHolder::GetFocusedContainerYScreenPos ( bool contents = false)
protected

Definition at line 316 of file container.c.

◆ GetFocusedItem()

EntityAI LayoutHolder::GetFocusedItem ( )
protected

Definition at line 731 of file container.c.

◆ GetFocusedSlotsIcon()

SlotsIcon LayoutHolder::GetFocusedSlotsIcon ( )
protected

Definition at line 72 of file container.c.

◆ GetHeader()

Header LayoutHolder::GetHeader ( )
protected

◆ GetScrollWidget()

ScrollWidget LayoutHolder::GetScrollWidget ( )
protected

Definition at line 97 of file container.c.

◆ GetSlotsScrollWidget()

ScrollWidget LayoutHolder::GetSlotsScrollWidget ( )
protected

Definition at line 92 of file container.c.

◆ HideContent()

void LayoutHolder::HideContent ( bool force_hide = false)
protected

Definition at line 1274 of file container.c.

◆ Insert()

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

Definition at line 1201 of file container.c.

◆ InspectItem()

bool LayoutHolder::InspectItem ( )
protected

Definition at line 387 of file container.c.

◆ IsEmpty()

bool LayoutHolder::IsEmpty ( )
protected

Definition at line 712 of file container.c.

◆ IsFirstContainerFocused()

bool LayoutHolder::IsFirstContainerFocused ( )
protected

Definition at line 936 of file container.c.

◆ IsFirstIndex()

bool LayoutHolder::IsFirstIndex ( )
protected

Definition at line 931 of file container.c.

◆ IsItemActive()

bool LayoutHolder::IsItemActive ( )
protected

Definition at line 717 of file container.c.

◆ IsItemWithQuantityActive()

bool LayoutHolder::IsItemWithQuantityActive ( )
protected

Definition at line 724 of file container.c.

◆ IsLastContainerFocused()

bool LayoutHolder::IsLastContainerFocused ( )
protected

Definition at line 941 of file container.c.

◆ IsLastIndex()

bool LayoutHolder::IsLastIndex ( )
protected

Definition at line 926 of file container.c.

◆ IsOpened()

bool LayoutHolder::IsOpened ( )
protected

Definition at line 248 of file container.c.

◆ MoveGridCursor()

void LayoutHolder::MoveGridCursor ( int direction)
protected

Definition at line 134 of file container.c.

◆ OnDropReceivedFromHeader()

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

◆ OnSelectButton()

bool LayoutHolder::OnSelectButton ( )
protected

Definition at line 357 of file container.c.

◆ Open()

void LayoutHolder::Open ( )
protected

Definition at line 236 of file container.c.

◆ RecomputeOpenedContainers()

void LayoutHolder::RecomputeOpenedContainers ( )
protected

Definition at line 1148 of file container.c.

◆ Refresh()

override void LayoutHolder::Refresh ( )
protected

Definition at line 1251 of file container.c.

◆ Remove()

void LayoutHolder::Remove ( LayoutHolder container)
protected

Definition at line 1216 of file container.c.

◆ ResetFocusedContainer()

void LayoutHolder::ResetFocusedContainer ( )
protected

Definition at line 946 of file container.c.

◆ ScrollToActiveContainer() [1/2]

void LayoutHolder::ScrollToActiveContainer ( )
protected

Definition at line 158 of file container.c.

◆ ScrollToActiveContainer() [2/2]

void LayoutHolder::ScrollToActiveContainer ( ScrollWidget sw)
protected

Definition at line 175 of file container.c.

◆ Select()

bool LayoutHolder::Select ( )
protected

Definition at line 350 of file container.c.

◆ SelectItem()

bool LayoutHolder::SelectItem ( )
protected

Definition at line 343 of file container.c.

◆ SetActive()

override void LayoutHolder::SetActive ( bool active)
protected

Definition at line 853 of file container.c.

◆ SetActiveIndex()

void LayoutHolder::SetActiveIndex ( int index)
protected

Definition at line 87 of file container.c.

◆ SetColumnCount()

void LayoutHolder::SetColumnCount ( int count)
protected

Definition at line 753 of file container.c.

◆ SetDefaultFocus()

void LayoutHolder::SetDefaultFocus ( bool while_micromanagment_mode = false)
protected

Definition at line 115 of file container.c.

◆ SetFirstActive()

override void LayoutHolder::SetFirstActive ( )
protected

Definition at line 823 of file container.c.

◆ SetFocusedColumn()

void LayoutHolder::SetFocusedColumn ( int column)
protected

Definition at line 763 of file container.c.

◆ SetFocusedContainer()

void LayoutHolder::SetFocusedContainer ( Container cont)
protected

Definition at line 67 of file container.c.

◆ SetForceShow()

void LayoutHolder::SetForceShow ( bool value)
protected

Definition at line 1302 of file container.c.

◆ SetHeader()

void LayoutHolder::SetHeader ( Header header)
protected

◆ SetLastActive()

override void LayoutHolder::SetLastActive ( )
protected

Definition at line 779 of file container.c.

◆ SetLastFocus()

void LayoutHolder::SetLastFocus ( )
protected

Definition at line 120 of file container.c.

◆ SetLayoutName()

override void LayoutHolder::SetLayoutName ( )
protected

Definition at line 1196 of file container.c.

◆ SetNextActive()

void LayoutHolder::SetNextActive ( )
protected

Definition at line 956 of file container.c.

◆ SetNextLeftActive()

void LayoutHolder::SetNextLeftActive ( )
protected

Definition at line 1042 of file container.c.

◆ SetNextRightActive()

void LayoutHolder::SetNextRightActive ( )
protected

Definition at line 1028 of file container.c.

◆ SetOpenForSlotIcon()

void LayoutHolder::SetOpenForSlotIcon ( bool open,
SlotsIcon icon = null )
protected

Definition at line 253 of file container.c.

◆ SetPreviousActive()

void LayoutHolder::SetPreviousActive ( bool force = false)
protected

Definition at line 992 of file container.c.

◆ SetSameLevelNextActive()

void LayoutHolder::SetSameLevelNextActive ( )
protected

Definition at line 1056 of file container.c.

◆ SetSameLevelPreviousActive()

void LayoutHolder::SetSameLevelPreviousActive ( )
protected

Definition at line 1101 of file container.c.

◆ SetSlotIcon()

void LayoutHolder::SetSlotIcon ( SlotsIcon icon)
protected

Definition at line 110 of file container.c.

◆ ShowContent()

void LayoutHolder::ShowContent ( bool force_show = false)
protected

Definition at line 1287 of file container.c.

◆ SplitItem()

bool LayoutHolder::SplitItem ( )
protected

Definition at line 394 of file container.c.

◆ Toggle()

void LayoutHolder::Toggle ( )
protected

Definition at line 271 of file container.c.

◆ TransferItem()

bool LayoutHolder::TransferItem ( )
protected

Definition at line 380 of file container.c.

◆ TransferItemToVicinity()

bool LayoutHolder::TransferItemToVicinity ( )
protected

Definition at line 373 of file container.c.

◆ Unfocus()

void LayoutHolder::Unfocus ( )
protected

Definition at line 130 of file container.c.

◆ UnfocusAll()

void LayoutHolder::UnfocusAll ( )
protected

Definition at line 901 of file container.c.

◆ UnfocusGrid()

void LayoutHolder::UnfocusGrid ( )
protected

Definition at line 917 of file container.c.

◆ UpdateBodySpacers()

void LayoutHolder::UpdateBodySpacers ( )
protected

Definition at line 1260 of file container.c.

◆ UpdateInterval()

override void LayoutHolder::UpdateInterval ( )
protected

Definition at line 768 of file container.c.

◆ UpdateRadialIcon()

void LayoutHolder::UpdateRadialIcon ( )
protected

Definition at line 102 of file container.c.

◆ UpdateSelectionIcons()

override void LayoutHolder::UpdateSelectionIcons ( )
protected

Definition at line 1307 of file container.c.

◆ UpdateSpacer()

void LayoutHolder::UpdateSpacer ( )
protected

Member Data Documentation

◆ ITEMS_IN_ROW

const int LayoutHolder::ITEMS_IN_ROW = 8
protected

Definition at line 10 of file container.c.

◆ m_ActiveIndex

int LayoutHolder::m_ActiveIndex = 0
protected

Definition at line 5 of file container.c.

◆ m_Body

ref array<ref LayoutHolder> LayoutHolder::m_Body
protected

Definition at line 3 of file container.c.

◆ m_Closed

bool LayoutHolder::m_Closed
protected

Definition at line 7 of file container.c.

◆ m_ColumnCount

int LayoutHolder::m_ColumnCount
protected

Definition at line 13 of file container.c.

◆ m_Entity

EntityAI LayoutHolder::m_Entity
protected

Definition at line 20 of file container.c.

◆ m_FocusedColumn

int LayoutHolder::m_FocusedColumn = 0
protected

Definition at line 15 of file container.c.

◆ m_FocusedContainer

Container LayoutHolder::m_FocusedContainer
protected

Definition at line 8 of file container.c.

◆ m_ForcedHide

bool LayoutHolder::m_ForcedHide
protected

Definition at line 16 of file container.c.

◆ m_ForcedShow

bool LayoutHolder::m_ForcedShow
protected

Definition at line 17 of file container.c.

◆ m_LastIndex

bool LayoutHolder::m_LastIndex
protected

Definition at line 6 of file container.c.

◆ m_OpenedContainers

ref array<LayoutHolder> LayoutHolder::m_OpenedContainers
protected

Definition at line 4 of file container.c.

◆ m_PrevAlpha

float LayoutHolder::m_PrevAlpha
protected

Definition at line 9 of file container.c.

◆ m_SlotIcon

SlotsIcon LayoutHolder::m_SlotIcon
protected

Definition at line 19 of file container.c.

◆ SORT_ATTACHMENTS_NEXT_OFFSET

const int LayoutHolder::SORT_ATTACHMENTS_NEXT_OFFSET = 2
protected

Definition at line 24 of file container.c.

◆ SORT_ATTACHMENTS_OWN

const int LayoutHolder::SORT_ATTACHMENTS_OWN = 1
protected

Definition at line 22 of file container.c.

◆ SORT_CARGO_NEXT_OFFSET

const int LayoutHolder::SORT_CARGO_NEXT_OFFSET = 3
protected

Definition at line 25 of file container.c.

◆ SORT_CARGO_OWN

const int LayoutHolder::SORT_CARGO_OWN = 2
protected

Definition at line 23 of file container.c.


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