DayZ 1.24
Loading...
Searching...
No Matches
AttachmentsGroupContainer Class Reference
Inheritance diagram for AttachmentsGroupContainer:
[legend]
Collaboration diagram for AttachmentsGroupContainer:
[legend]

Private Member Functions

override void SetLayoutName ()
 
override void SetHeader (Header header)
 
override Header GetHeader ()
 
void AttachmentsGroupContainer (LayoutHolder parent)
 
override void SetActive (bool active)
 
override void SetDefaultFocus (bool while_micromanagment_mode=false)
 
SlotsIcon GetSlotsIcon (int row, int column, bool include_invisible=true)
 
int GetRowCount (bool include_invisible=true)
 
int GetColumnCountForRow (int row, bool include_invisible=true)
 
override void SetNextActive ()
 
override void SetPreviousActive (bool force=false)
 
- Private Member Functions inherited from Container
void CargoContainer (LayoutHolder parent, bool is_attachment=false)
 
void ~CargoContainer ()
 
int GetCargoIndex ()
 
void AddedToCargoEx (EntityAI item, bool refresh=true)
 
void AddedToCargo (EntityAI item)
 
void RemovedFromCargo (EntityAI item)
 
void MovedInCargo (EntityAI item)
 
void SetLock (EntityAI item)
 
void ReleaseLock (EntityAI item)
 
override void SetLayoutName ()
 
void SetEntity (EntityAI item, int cargo_index=0, bool immedUpdate=true)
 
EntityAI GetEntity ()
 
void UpdateHeaderText ()
 
void InitGridHeight ()
 
void UpdateSize ()
 
float GetIconSize ()
 
float GetSpaceSize ()
 
int GetCargoCapacity ()
 
int GetMaxCargoCapacity ()
 
Icon GetIcon (EntityAI item)
 
Icon GetIcon (int index)
 
Icon GetFocusedIcon ()
 
override float GetFocusedContainerHeight (bool contents=false)
 
override float GetFocusedContainerYPos (bool contents=false)
 
override float GetFocusedContainerYScreenPos (bool contents=false)
 
void UpdateSelection ()
 
void UpdateRowVisibility (int count)
 
override void Refresh ()
 
void RefreshImpl ()
 
override void UpdateInterval ()
 
Icon InitIconEx (Icon icon, EntityAI item, int pos_x, int pos_y, bool refresh=true)
 
Icon InitIcon (Icon icon, EntityAI item, int pos_x, int pos_y)
 
bool HasItem (EntityAI item)
 
override bool TransferItemToVicinity ()
 
override void SetDefaultFocus (bool while_micromanagment_mode=false)
 
override void SetLastFocus ()
 
override void Unfocus ()
 
override void UnfocusAll ()
 
override void SetNextActive ()
 
override void SetPreviousActive (bool force=false)
 
override void SetNextRightActive ()
 
override void SetNextLeftActive ()
 
override EntityAI GetFocusedItem ()
 
override void SetLastActive ()
 
override void SetActive (bool active)
 
override bool IsItemActive ()
 
override bool IsItemWithQuantityActive ()
 
override bool IsEmpty ()
 
int GetRecipeCount (bool recipe_anywhere, ItemBase entity1, ItemBase entity2, PlayerBase player)
 
override bool CanCombineAmmo ()
 
override bool TransferItem ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override bool SelectItem ()
 
override bool Select ()
 
override bool Combine ()
 
void ShowFalseCargoHeader (bool show)
 
void SetAlternateFalseTextHeaderWidget (TextWidget w)
 
void ClosableContainer (LayoutHolder parent, int sort=-1)
 
override bool IsDisplayable ()
 
override void UpdateRadialIcon ()
 
void SetOpenState (bool state)
 
override Header GetHeader ()
 
override void Open ()
 
override void Close ()
 
override void SetLayoutName ()
 
override void OnShow ()
 
override LayoutHolder Get (int x)
 
override void Refresh ()
 
void CloseButtonOnMouseButtonDown ()
 
override float GetFocusedContainerHeight (bool contents=false)
 
override float GetFocusedContainerYPos (bool contents=false)
 
override float GetFocusedContainerYScreenPos (bool contents=false)
 
void MoveContainerUp (Widget cont)
 
void MoveContainerDown (Widget cont)
 
override void CheckHeaderDragability ()
 

Private Attributes

ref Header m_Header
 
- Private Attributes inherited from Container
const int ROWS_NUMBER_XBOX = 5
 
CargoBase m_Cargo
 
int m_CargoIndex = -1
 
int m_FocusedItemPosition = -1
 
ref array< ref CargoContainerRowm_Rows
 
ref array< ref Iconm_Icons
 
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedItemPositions
 
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedLockPositions
 
float m_IconSize
 
float m_SpaceSize
 
bool m_IsAttachment
 
TextWidget m_FalseHeaderTextWidget
 
TextWidget m_AlternateFalseHeaderTextWidget
 
Widget m_CargoHeader
 
Widget m_CargoContainer
 
Widget m_ItemsContainer
 
ref SizeToChild m_Resizer1
 
ref SizeToChild m_Resizer2
 
ref Timer m_ResizeTimer
 
ref ClosableHeader m_ClosableHeader
 
bool m_LockCargo
 

Detailed Description

Definition at line 1 of file AttachmentsGroupContainer.c.

Constructor & Destructor Documentation

◆ AttachmentsGroupContainer()

void AttachmentsGroupContainer::AttachmentsGroupContainer ( LayoutHolder parent)
inlineprivate

Definition at line 21 of file AttachmentsGroupContainer.c.

22 {
23 m_FocusedColumn = 0;
24 }

Member Function Documentation

◆ GetColumnCountForRow()

int AttachmentsGroupContainer::GetColumnCountForRow ( int row,
bool include_invisible = true )
inlineprivate

Definition at line 57 of file AttachmentsGroupContainer.c.

58 {
61 c = Container.Cast(m_Body[row]);
62 else
63 c = Container.Cast(m_OpenedContainers[row]);
64 return c.GetColumnCount();
65 }

◆ GetHeader()

override Header AttachmentsGroupContainer::GetHeader ( )
inlineprivate

Definition at line 16 of file AttachmentsGroupContainer.c.

17 {
18 return m_Header;
19 }

References m_Header.

◆ GetRowCount()

int AttachmentsGroupContainer::GetRowCount ( bool include_invisible = true)
inlineprivate

Definition at line 49 of file AttachmentsGroupContainer.c.

50 {
52 return m_Body.Count();
53 else
54 return m_OpenedContainers.Count();
55 }

◆ GetSlotsIcon()

SlotsIcon AttachmentsGroupContainer::GetSlotsIcon ( int row,
int column,
bool include_invisible = true )
inlineprivate

Definition at line 39 of file AttachmentsGroupContainer.c.

40 {
43 c = SlotsContainer.Cast(m_Body[row]);
44 else
45 c = SlotsContainer.Cast(m_OpenedContainers[row]);
46 return c.GetSlotIcon(column);
47 }

◆ SetActive()

override void AttachmentsGroupContainer::SetActive ( bool active)
inlineprivate

Definition at line 26 of file AttachmentsGroupContainer.c.

27 {
28 super.SetActive(active);
29 if (!active)
30 m_FocusedColumn = 0;
31 }

◆ SetDefaultFocus()

override void AttachmentsGroupContainer::SetDefaultFocus ( bool while_micromanagment_mode = false)
inlineprivate

Definition at line 33 of file AttachmentsGroupContainer.c.

34 {
35 super.SetDefaultFocus();
36 m_FocusedColumn = 0;
37 }

◆ SetHeader()

override void AttachmentsGroupContainer::SetHeader ( Header header)
inlineprivate

Definition at line 10 of file AttachmentsGroupContainer.c.

11 {
13 m_Header.GetMainWidget().SetFlags(WidgetFlags.IGNOREPOINTER);
14 }
WidgetFlags
Definition EnWidgets.c:58

References m_Header.

◆ SetLayoutName()

override void AttachmentsGroupContainer::SetLayoutName ( )
inlineprivate

◆ SetNextActive()

override void AttachmentsGroupContainer::SetNextActive ( )
inlineprivate

Definition at line 67 of file AttachmentsGroupContainer.c.

68 {
69 HideOwnedTooltip();
70 int visible_focus = 0;
71
73 if (m_OpenedContainers.Count())
74 active = SlotsContainer.Cast(m_OpenedContainers[m_ActiveIndex]);
75
76 if (active && active.IsActive())
77 {
78 visible_focus = active.GetVisibleFocus();
79 active.SetNextActive();
80 }
81 if (!active || !active.IsActive())
82 {
84 if (!IsLastContainerFocused())
85 {
86 m_ActiveIndex++;
87
88 //int visible_focus = active.GetVisibleFocus();
89
90 next = SlotsContainer.Cast(m_OpenedContainers[m_ActiveIndex]);
91 next.SetActive(true);
92 next.SetVisibleFocus(visible_focus);
93 }
94 else if (Container.Cast(GetParent()))
95 SetActive(false);
96 else
97 {
98 SetActive(false);
99 SetFirstActive();
100 }
101 }
102 }
void SetActive()
Definition TrapBase.c:409
proto native Widget GetParent()
Get parent of the Effect.
Definition Effect.c:389

References GetParent(), and SetActive().

◆ SetPreviousActive()

override void AttachmentsGroupContainer::SetPreviousActive ( bool force = false)
inlineprivate

Definition at line 104 of file AttachmentsGroupContainer.c.

105 {
106 HideOwnedTooltip();
107 int visible_focus = 0;
108
110 if (m_OpenedContainers.Count())
111 active = SlotsContainer.Cast(m_OpenedContainers[m_ActiveIndex]);
112
113 if (active && active.IsActive())
114 {
115 visible_focus = active.GetVisibleFocus();
116 active.SetPreviousActive();
117 }
118
119 if (!active || !active.IsActive())
120 {
122 if (!IsFirstContainerFocused())
123 {
124 m_ActiveIndex--;
125
126 prev = SlotsContainer.Cast(m_OpenedContainers[m_ActiveIndex]);
127 prev.SetActive(true);
128 prev.SetVisibleFocus(visible_focus);
129 }
130 else if (Container.Cast(GetParent()))
131 SetActive(false);
132 else
133 {
134 SetActive(false);
136 }
137 }
138 }
override void SetLastActive()

References GetParent(), SetActive(), and Container::SetLastActive().

Member Data Documentation

◆ m_Header

ref Header AttachmentsGroupContainer::m_Header
private

Definition at line 3 of file AttachmentsGroupContainer.c.

Referenced by GetHeader(), and SetHeader().


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