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

Private Member Functions

void AttachmentCategoriesSlotsContainer (LayoutHolder parent, int index)
 
override bool IsDisplayable ()
 
override void SetLayoutName ()
 
SlotsContainer GetSlotsContainer ()
 
override EntityAI GetFocusedItem ()
 
int GetParentID ()
 
int GetFocusedID ()
 
void ExpandCollapseContainer (bool expand)
 
override bool SelectItem ()
 
override bool Select ()
 
override bool Combine ()
 
override bool TransferItemToVicinity ()
 
override bool TransferItem ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override bool CanCombine ()
 
override bool CanCombineAmmo ()
 
override bool IsEmpty ()
 
override bool IsItemActive ()
 
override bool IsItemWithQuantityActive ()
 
string GetAttachmentCategory (string config_path_attachment_categories, int i)
 
string GetIconName (string config_path_attachment_categories, string attachment_category)
 
- 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 SlotsContainer m_ItemsCont
 
- 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 AttachmentCategoriesSlotsContainer.c.

Constructor & Destructor Documentation

◆ AttachmentCategoriesSlotsContainer()

void AttachmentCategoriesSlotsContainer::AttachmentCategoriesSlotsContainer ( LayoutHolder parent,
int index )
inlineprivate

Definition at line 5 of file AttachmentCategoriesSlotsContainer.c.

6 {
8 m_Body.Insert(m_ItemsCont);
9 m_ItemsCont.GetMainWidget().SetUserID(index);
10
11 for (int k = 0; k < ITEMS_IN_ROW; k++)
12 {
13 //WidgetEventHandler.GetInstance().RegisterOnDropReceived( m_ItemsCont.GetSlotIcon( k ).GetMainWidget(), m_Parent, "OnDropReceivedFromHeader" );
14 //WidgetEventHandler.GetInstance().RegisterOnDropReceived( m_ItemsCont.GetSlotIcon( k ).GetPanelWidget(), m_Parent, "OnDropReceivedFromHeader" );
15
16 WidgetEventHandler.GetInstance().RegisterOnDraggingOver(m_ItemsCont.GetSlotIcon(k).GetMainWidget(), m_Parent, "DraggingOverHeader");
17 WidgetEventHandler.GetInstance().RegisterOnDraggingOver(m_ItemsCont.GetSlotIcon(k).GetPanelWidget(), m_Parent, "DraggingOverHeader");
18
19 WidgetEventHandler.GetInstance().RegisterOnMouseButtonDown(m_ItemsCont.GetSlotIcon(k).GetMainWidget(), m_Parent, "MouseClick");
20 WidgetEventHandler.GetInstance().RegisterOnMouseButtonDown(m_ItemsCont.GetSlotIcon(k).GetPanelWidget(), m_Parent, "MouseClick");
21
22 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_ItemsCont.GetSlotIcon(k).GetMainWidget(), m_ItemsCont.GetSlotIcon(k), "MouseEnterGhostSlot");
23 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_ItemsCont.GetSlotIcon(k).GetMainWidget(), m_ItemsCont.GetSlotIcon(k), "MouseLeaveGhostSlot");
24
25 m_ItemsCont.GetSlotIcon(k).GetMainWidget().SetUserID(k);
26 m_ItemsCont.GetSlotIcon(k).GetPanelWidget().SetUserID(k);
27 }
28 }
const int ITEMS_IN_ROW
Definition Attachments.c:1
Widget m_Parent
Definition SizeToChild.c:86
static WidgetEventHandler GetInstance()

References WidgetEventHandler::GetInstance(), ITEMS_IN_ROW, m_ItemsCont, and m_Parent.

Member Function Documentation

◆ CanCombine()

override bool AttachmentCategoriesSlotsContainer::CanCombine ( )
inlineprivate

Definition at line 107 of file AttachmentCategoriesSlotsContainer.c.

108 {
109 return false;
110 }

◆ CanCombineAmmo()

override bool AttachmentCategoriesSlotsContainer::CanCombineAmmo ( )
inlineprivate

Definition at line 112 of file AttachmentCategoriesSlotsContainer.c.

113 {
114 return false;
115 }

◆ Combine()

override bool AttachmentCategoriesSlotsContainer::Combine ( )
inlineprivate

Definition at line 82 of file AttachmentCategoriesSlotsContainer.c.

83 {
84 return false;
85 }

◆ EquipItem()

override bool AttachmentCategoriesSlotsContainer::EquipItem ( )
inlineprivate

Definition at line 102 of file AttachmentCategoriesSlotsContainer.c.

103 {
104 return false;
105 }

◆ ExpandCollapseContainer()

void AttachmentCategoriesSlotsContainer::ExpandCollapseContainer ( bool expand)
inlineprivate

Definition at line 66 of file AttachmentCategoriesSlotsContainer.c.

67 {
68 m_ItemsCont.GetFocusedSlotsIcon().GetRadialIcon().Show(expand);
69 m_ItemsCont.GetFocusedSlotsIcon().GetRadialIconClosed().Show(!expand);
70 }

References m_ItemsCont.

◆ GetAttachmentCategory()

string AttachmentCategoriesSlotsContainer::GetAttachmentCategory ( string config_path_attachment_categories,
int i )
inlineprivate

Definition at line 132 of file AttachmentCategoriesSlotsContainer.c.

133 {
134 string attachment_category;
136 return attachment_category;
137 }
proto native CGame GetGame()

References GetGame().

◆ GetFocusedID()

int AttachmentCategoriesSlotsContainer::GetFocusedID ( )
inlineprivate

Definition at line 61 of file AttachmentCategoriesSlotsContainer.c.

62 {
63 return m_ItemsCont.GetFocusedSlotsIcon().GetMainWidget().GetUserID();
64 }

References m_ItemsCont.

◆ GetFocusedItem()

override EntityAI AttachmentCategoriesSlotsContainer::GetFocusedItem ( )
inlineprivate

Definition at line 51 of file AttachmentCategoriesSlotsContainer.c.

52 {
53 return m_ItemsCont.GetFocusedSlotsIcon().GetRender().GetItem();
54 }

References m_ItemsCont.

◆ GetIconName()

string AttachmentCategoriesSlotsContainer::GetIconName ( string config_path_attachment_categories,
string attachment_category )
inlineprivate

Definition at line 139 of file AttachmentCategoriesSlotsContainer.c.

140 {
142 string icon_name;
143 GetGame().ConfigGetText(icon_path, icon_name);
144 return icon_name;
145 }

References GetGame().

◆ GetParentID()

int AttachmentCategoriesSlotsContainer::GetParentID ( )
inlineprivate

Definition at line 56 of file AttachmentCategoriesSlotsContainer.c.

57 {
58 return m_ItemsCont.GetMainWidget().GetUserID();
59 }

References m_ItemsCont.

◆ GetSlotsContainer()

SlotsContainer AttachmentCategoriesSlotsContainer::GetSlotsContainer ( )
inlineprivate

Definition at line 46 of file AttachmentCategoriesSlotsContainer.c.

47 {
48 return m_ItemsCont;
49 }

References m_ItemsCont.

◆ IsDisplayable()

override bool AttachmentCategoriesSlotsContainer::IsDisplayable ( )
inlineprivate

Definition at line 30 of file AttachmentCategoriesSlotsContainer.c.

31 {
32 for (int i = 0; i < m_Body.Count(); i++)
33 {
34 LayoutHolder c = m_Body[i];
35 if (c && c.IsDisplayable())
36 return true;
37 }
38 return false;
39 }

◆ IsEmpty()

override bool AttachmentCategoriesSlotsContainer::IsEmpty ( )
inlineprivate

Definition at line 117 of file AttachmentCategoriesSlotsContainer.c.

118 {
119 return false;
120 }

◆ IsItemActive()

override bool AttachmentCategoriesSlotsContainer::IsItemActive ( )
inlineprivate

Definition at line 122 of file AttachmentCategoriesSlotsContainer.c.

123 {
124 return false;
125 }

◆ IsItemWithQuantityActive()

override bool AttachmentCategoriesSlotsContainer::IsItemWithQuantityActive ( )
inlineprivate

Definition at line 127 of file AttachmentCategoriesSlotsContainer.c.

128 {
129 return false;
130 }

◆ Select()

override bool AttachmentCategoriesSlotsContainer::Select ( )
inlineprivate

Definition at line 77 of file AttachmentCategoriesSlotsContainer.c.

78 {
79 return false;
80 }

◆ SelectItem()

override bool AttachmentCategoriesSlotsContainer::SelectItem ( )
inlineprivate

Definition at line 72 of file AttachmentCategoriesSlotsContainer.c.

73 {
74 return false;
75 }

◆ SetLayoutName()

override void AttachmentCategoriesSlotsContainer::SetLayoutName ( )
inlineprivate

Definition at line 41 of file AttachmentCategoriesSlotsContainer.c.

42 {
43 m_LayoutName = WidgetLayoutName.Container;
44 }
const string Container

References WidgetLayoutName::Container.

◆ SplitItem()

override bool AttachmentCategoriesSlotsContainer::SplitItem ( )
inlineprivate

Definition at line 97 of file AttachmentCategoriesSlotsContainer.c.

98 {
99 return false;
100 }

◆ TransferItem()

override bool AttachmentCategoriesSlotsContainer::TransferItem ( )
inlineprivate

Definition at line 92 of file AttachmentCategoriesSlotsContainer.c.

93 {
94 return false;
95 }

◆ TransferItemToVicinity()

override bool AttachmentCategoriesSlotsContainer::TransferItemToVicinity ( )
inlineprivate

Definition at line 87 of file AttachmentCategoriesSlotsContainer.c.

88 {
89 return false;
90 }

Member Data Documentation

◆ m_ItemsCont

ref SlotsContainer AttachmentCategoriesSlotsContainer::m_ItemsCont
private

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