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

Protected Member Functions

void AttachmentsWrapper (LayoutHolder parent)
 
void SetParent (Attachments atts)
 
override bool Select ()
 
override bool SelectItem ()
 
override bool Combine ()
 
override bool TransferItemToVicinity ()
 
override bool TransferItem ()
 
override bool InspectItem ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override bool CanEquip ()
 
override bool CanCombine ()
 
override bool CanCombineAmmo ()
 
override bool IsDisplayable ()
 
override bool IsItemActive ()
 
override bool IsItemWithQuantityActive ()
 
override void UpdateInterval ()
 
int GetFocusedSlot ()
 
void ShowFalseAttachmentsHeader (bool show)
 
void SetFalseAttachmentsHeaderText (string text)
 
TextWidget GetFalseHeaderTextWidget ()
 

Protected Attributes

Widget m_AttachmentsFalseHeader
 
RichTextWidget m_AttachmentsFalseHeaderText
 

Private Attributes

Attachments m_Attachments
 

Detailed Description

Definition at line 1 of file AttachmentsWrapper.c.

Constructor & Destructor Documentation

◆ AttachmentsWrapper()

void AttachmentsWrapper::AttachmentsWrapper ( LayoutHolder parent)
inlineprotected

Definition at line 7 of file AttachmentsWrapper.c.

8 {
9 m_AttachmentsFalseHeader = m_RootWidget.FindAnyWidget("attachmets_wrapper_header_spacer");
10 m_AttachmentsFalseHeaderText = RichTextWidget.Cast(m_AttachmentsFalseHeader.FindAnyWidget("TextWidget0"));
11 m_AttachmentsFalseHeader.Show(false);
12 }
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
RichTextWidget m_AttachmentsFalseHeaderText

References m_AttachmentsFalseHeader, m_AttachmentsFalseHeaderText, and m_RootWidget.

Member Function Documentation

◆ CanCombine()

override bool AttachmentsWrapper::CanCombine ( )
inlineprotected

Definition at line 68 of file AttachmentsWrapper.c.

69 {
71 }
bool CanCombine()

References Attachments::CanCombine(), and m_Attachments.

◆ CanCombineAmmo()

override bool AttachmentsWrapper::CanCombineAmmo ( )
inlineprotected

Definition at line 73 of file AttachmentsWrapper.c.

74 {
76 }
bool CanCombineAmmo()

References Attachments::CanCombineAmmo(), and m_Attachments.

◆ CanEquip()

override bool AttachmentsWrapper::CanEquip ( )
inlineprotected

Definition at line 63 of file AttachmentsWrapper.c.

64 {
65 return m_Attachments.CanEquip();
66 }
bool CanEquip()

References Attachments::CanEquip(), and m_Attachments.

◆ Combine()

override bool AttachmentsWrapper::Combine ( )
inlineprotected

Definition at line 29 of file AttachmentsWrapper.c.

30 {
31 return m_Attachments.Combine();
32 }
bool Combine()

References Attachments::Combine(), and m_Attachments.

◆ EquipItem()

override bool AttachmentsWrapper::EquipItem ( )
inlineprotected

Definition at line 58 of file AttachmentsWrapper.c.

59 {
60 return m_Attachments.EquipItem();
61 }
bool EquipItem()

References Attachments::EquipItem(), and m_Attachments.

◆ GetFalseHeaderTextWidget()

TextWidget AttachmentsWrapper::GetFalseHeaderTextWidget ( )
inlineprotected

Definition at line 114 of file AttachmentsWrapper.c.

115 {
117 }

References m_AttachmentsFalseHeaderText.

◆ GetFocusedSlot()

int AttachmentsWrapper::GetFocusedSlot ( )
inlineprotected

Definition at line 99 of file AttachmentsWrapper.c.

100 {
102 }
int GetFocusedSlot()

References Attachments::GetFocusedSlot(), and m_Attachments.

◆ InspectItem()

override bool AttachmentsWrapper::InspectItem ( )
inlineprotected

Definition at line 48 of file AttachmentsWrapper.c.

49 {
51 }
bool InspectItem()

References Attachments::InspectItem(), and m_Attachments.

◆ IsDisplayable()

override bool AttachmentsWrapper::IsDisplayable ( )
inlineprotected

Definition at line 78 of file AttachmentsWrapper.c.

79 {
80 return !IsEmpty();
81 }
override bool IsEmpty()

References Container::IsEmpty().

◆ IsItemActive()

override bool AttachmentsWrapper::IsItemActive ( )
inlineprotected

Definition at line 83 of file AttachmentsWrapper.c.

84 {
86 }
bool IsItemActive()
Definition Attachments.c:53

References Attachments::IsItemActive(), and m_Attachments.

◆ IsItemWithQuantityActive()

override bool AttachmentsWrapper::IsItemWithQuantityActive ( )
inlineprotected

Definition at line 88 of file AttachmentsWrapper.c.

89 {
91 }
bool IsItemWithQuantityActive()
Definition Attachments.c:61

References Attachments::IsItemWithQuantityActive(), and m_Attachments.

◆ Select()

override bool AttachmentsWrapper::Select ( )
inlineprotected

Definition at line 19 of file AttachmentsWrapper.c.

20 {
21 return m_Attachments.Select();
22 }
bool Select()

References m_Attachments, and Attachments::Select().

◆ SelectItem()

override bool AttachmentsWrapper::SelectItem ( )
inlineprotected

Definition at line 24 of file AttachmentsWrapper.c.

25 {
27 }
bool SelectItem()

References m_Attachments, and Attachments::SelectItem().

◆ SetFalseAttachmentsHeaderText()

void AttachmentsWrapper::SetFalseAttachmentsHeaderText ( string text)
inlineprotected

Definition at line 109 of file AttachmentsWrapper.c.

110 {
112 }

References m_AttachmentsFalseHeaderText.

◆ SetParent()

void AttachmentsWrapper::SetParent ( Attachments atts)
inlineprotected

Definition at line 14 of file AttachmentsWrapper.c.

15 {
17 }

References m_Attachments.

◆ ShowFalseAttachmentsHeader()

void AttachmentsWrapper::ShowFalseAttachmentsHeader ( bool show)
inlineprotected

Definition at line 104 of file AttachmentsWrapper.c.

105 {
106 m_AttachmentsFalseHeader.Show(show);
107 }

References m_AttachmentsFalseHeader.

◆ SplitItem()

override bool AttachmentsWrapper::SplitItem ( )
inlineprotected

Definition at line 53 of file AttachmentsWrapper.c.

54 {
55 return m_Attachments.SplitItem();
56 }
bool SplitItem()

References m_Attachments, and Attachments::SplitItem().

◆ TransferItem()

override bool AttachmentsWrapper::TransferItem ( )
inlineprotected

Definition at line 41 of file AttachmentsWrapper.c.

42 {
43 if (CanTakeToInventory())
45 return false;
46 }
bool TransferItem()

References m_Attachments, and Attachments::TransferItem().

◆ TransferItemToVicinity()

override bool AttachmentsWrapper::TransferItemToVicinity ( )
inlineprotected

Definition at line 34 of file AttachmentsWrapper.c.

35 {
36 if (CanDrop())
38 return false;
39 }
bool TransferItemToVicinity()

References m_Attachments, and Attachments::TransferItemToVicinity().

◆ UpdateInterval()

override void AttachmentsWrapper::UpdateInterval ( )
inlineprotected

Definition at line 93 of file AttachmentsWrapper.c.

94 {
95 super.UpdateInterval();
97 }
void UpdateInterval()

References m_Attachments, and Attachments::UpdateInterval().

Member Data Documentation

◆ m_Attachments

◆ m_AttachmentsFalseHeader

Widget AttachmentsWrapper::m_AttachmentsFalseHeader
protected

Definition at line 4 of file AttachmentsWrapper.c.

Referenced by AttachmentsWrapper(), and ShowFalseAttachmentsHeader().

◆ m_AttachmentsFalseHeaderText

RichTextWidget AttachmentsWrapper::m_AttachmentsFalseHeaderText
protected

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