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

Protected Member Functions

void SlotsIcon (LayoutHolder parent, Widget root, int index, EntityAI slot_parent)
 
override bool IsVisible ()
 
void SetSlotParent (EntityAI parent)
 
void SetContainer (Container container)
 
void SetSlotDisplayName (string text)
 
Container GetContainer ()
 
string GetSlotDisplayName ()
 
void SetSlotDesc (string text)
 
string GetSlotDesc ()
 
void ~SlotsIcon ()
 
EntityAI GetSlotParent ()
 
int GetSlotID ()
 
void SetSlotID (int slot_ID)
 
bool IsReserved ()
 
Widget GetPanelWidget ()
 
Widget GetCursorWidget ()
 
Widget GetColWidget ()
 
Widget GetReservedWidget ()
 
Widget GetMountedWidget ()
 
ItemPreviewWidget GetRender ()
 
ImageWidget GetGhostSlot ()
 
Widget GetColorWidget ()
 
Widget GetSelectedPanel ()
 
Widget GetEmptySelectedPanel ()
 
Widget GetMicromanagedPanel ()
 
Widget GetQuantityPanel ()
 
Widget GetOutOfReachWidget ()
 
TextWidget GetQuantityItem ()
 
ProgressBarWidget GetQuantityProgress ()
 
Widget GetQuantityStack ()
 
Widget GetItemSizePanel ()
 
TextWidget GetItemSizeWidget ()
 
Widget GetAmmoIcon ()
 
Widget GetRadialIconPanel ()
 
Widget GetRadialIconClosed ()
 
Widget GetRadialIcon ()
 
bool IsFocused ()
 
override void SetActive (bool active)
 
override void SetLayoutName ()
 
override void Refresh ()
 
void SetTemperature ()
 
Object GetObject ()
 
EntityAI GetEntity ()
 
ItemBase GetItem ()
 
void RefreshMuzzleIcon ()
 
void SetQuantity ()
 
void SetItemPreview ()
 
void SetItemSize ()
 
void UpdateFlip (bool flipped)
 
void Init (EntityAI obj, bool reservation=false)
 
void ClearRemainSelected ()
 
void Clear ()
 
void CheckIsWeapon ()
 
void CheckIsMagazine ()
 
void CheckHasTemperature ()
 
void CheckHasQuantity ()
 
void CheckHasItemSize ()
 
bool IsOutOfReach ()
 
bool MouseEnter (Widget w, int x, int y)
 
bool MouseEnterGhostSlot (Widget w, int x, int y)
 
bool MouseLeave (Widget w, Widget s, int x, int y)
 
bool MouseLeaveGhostSlot (Widget w, Widget s, int x, int y)
 
override void UpdateInterval ()
 
void OnIconDrag (Widget w)
 
void OnIconDrop (Widget w)
 

Static Protected Member Functions

static int GetNormalWidth ()
 
static int GetNormalHeight ()
 

Protected Attributes

bool m_IsWeapon = false
 
bool m_IsMagazine = false
 
bool m_HasTemperature = false
 
bool m_HasQuantity = false
 
bool m_HasItemSize = false
 
float m_CurrQuantity = -1
 
EntityAI m_Obj
 
ItemBase m_Item
 
EntityAI m_SlotParent
 
Container m_Container
 
int m_SlotID
 
bool m_IsDragged = false
 
Widget m_PanelWidget
 
Widget m_CursorWidget
 
Widget m_ColWidget
 
Widget m_MountedWidget
 
Widget m_OutOfReachWidget
 
Widget m_ReservedWidget
 
ItemPreviewWidget m_ItemPreview
 
ImageWidget m_GhostSlot
 
Widget m_ColorWidget
 
Widget m_SelectedPanel
 
Widget m_EmptySelectedPanel
 
Widget m_MicromanagedPanel
 
Widget m_QuantityPanel
 
TextWidget m_QuantityItem
 
ProgressBarWidget m_QuantityProgress
 
Widget m_QuantityStack
 
string m_SlotDisplayName
 
string m_SlotDesc
 
Widget m_ItemSizePanel
 
TextWidget m_ItemSizeWidget
 
Widget m_AmmoIcon
 
Widget m_RadialIconPanel
 
Widget m_RadialIconClosed
 
Widget m_RadialIcon
 
bool m_Reserved
 

Static Protected Attributes

static int m_NormalWidth
 
static int m_NormalHeight
 

Additional Inherited Members

- Private Member Functions inherited from LayoutHolder
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 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 CheckScrollbarVisibility ()
 
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 ()
 
- Private Attributes inherited from LayoutHolder
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 SlotsIcon.c.

Constructor & Destructor Documentation

◆ SlotsIcon()

void SlotsIcon::SlotsIcon ( LayoutHolder parent,
Widget root,
int index,
EntityAI slot_parent )
inlineprotected

Definition at line 55 of file SlotsIcon.c.

56 {
57 m_MainWidget = root;
58
59 m_PanelWidget = m_MainWidget.FindAnyWidget("PanelWidget" + index);
60
61 m_CursorWidget = m_MainWidget.FindAnyWidget("Cursor" + index);
62 m_ColWidget = m_MainWidget.FindAnyWidget("Col" + index);
63 m_MountedWidget = m_MainWidget.FindAnyWidget("Mounted" + index);
64 m_OutOfReachWidget = m_MainWidget.FindAnyWidget("OutOfReach" + index);
65
66 m_ItemPreview = ItemPreviewWidget.Cast(m_MainWidget.FindAnyWidget("Render" + index));
69
70 m_GhostSlot = ImageWidget.Cast(m_MainWidget.FindAnyWidget("GhostSlot" + index));
71
72 m_ColorWidget = m_MainWidget.FindAnyWidget("Color" + index);
73 m_SelectedPanel = m_MainWidget.FindAnyWidget("Selected" + index);
74 m_EmptySelectedPanel = m_MainWidget.FindAnyWidget("EmptySelected" + index);
75 m_MicromanagedPanel = m_MainWidget.FindAnyWidget("Micromanaged" + index);
76
77 m_QuantityPanel = m_MainWidget.FindAnyWidget("QuantityPanel" + index);
78 m_QuantityItem = TextWidget.Cast(m_MainWidget.FindAnyWidget("Quantity" + index));
79 m_QuantityProgress = ProgressBarWidget.Cast(m_MainWidget.FindAnyWidget("QuantityBar" + index));
80 m_QuantityStack = m_MainWidget.FindAnyWidget("QuantityStackPanel" + index);
81
82 m_ItemSizePanel = m_MainWidget.FindAnyWidget("ItemSizePanel" + index);
83 m_ItemSizeWidget = TextWidget.Cast(m_MainWidget.FindAnyWidget("ItemSize" + index));
84
85 m_AmmoIcon = m_MainWidget.FindAnyWidget("AmmoIcon" + index);
86
87 m_RadialIconPanel = m_MainWidget.FindAnyWidget("RadialIconPanel" + index);
88 m_RadialIconClosed = m_MainWidget.FindAnyWidget("RadialIconClosed" + index);
89 m_RadialIcon = m_MainWidget.FindAnyWidget("RadialIcon" + index);
90
91 m_ReservedWidget = Widget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/reserved_icon.layout", m_MainWidget));
92 m_ReservedWidget.Show(false);
93
94 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_PanelWidget, this, "MouseEnter");
95 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_PanelWidget, this, "MouseLeave");
96
97 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_GhostSlot, this, "MouseEnterGhostSlot");
98 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_GhostSlot, this, "MouseLeaveGhostSlot");
99
100 WidgetEventHandler.GetInstance().RegisterOnMouseEnter(m_RadialIconPanel, this, "MouseEnterCategory");
101 WidgetEventHandler.GetInstance().RegisterOnMouseLeave(m_RadialIconPanel, this, "MouseLeaveCategory");
102
103 WidgetEventHandler.GetInstance().RegisterOnDrag(m_PanelWidget, this, "OnIconDrag");
104 WidgetEventHandler.GetInstance().RegisterOnDrop(m_PanelWidget, this, "OnIconDrop");
105
106 //WidgetEventHandler.GetInstance().RegisterOnMouseEnter( m_ReservedWidget, this, "MouseEnter" );
107 //WidgetEventHandler.GetInstance().RegisterOnMouseLeave( m_ReservedWidget, this, "MouseLeave" );
108
109 m_Reserved = false;
110 m_SlotID = -1;
111 m_Item = null;
112 m_Obj = null;
114
116
117 m_PanelWidget.SetUserData(this);
118 m_ItemPreview.SetUserData(this);
119 m_GhostSlot.SetUserData(this);
120 m_MainWidget.SetUserData(this);
121
122 float w, h;
123 root.GetSize(w, h);
124
127
128 SetActive(false);
129 }
void SetActive()
Definition TrapBase.c:409
proto native void SetForceFlipEnable(bool enable)
proto native void SetForceFlip(bool value)
Widget m_OutOfReachWidget
Definition SlotsIcon.c:25
Widget m_ColWidget
Definition SlotsIcon.c:23
static int m_NormalWidth
Definition SlotsIcon.c:3
Widget m_CursorWidget
Definition SlotsIcon.c:22
Container m_Container
Definition SlotsIcon.c:16
ItemBase m_Item
Definition SlotsIcon.c:14
static int m_NormalHeight
Definition SlotsIcon.c:4
TextWidget m_ItemSizeWidget
Definition SlotsIcon.c:45
ProgressBarWidget m_QuantityProgress
Definition SlotsIcon.c:38
Widget m_MicromanagedPanel
Definition SlotsIcon.c:34
Widget m_ReservedWidget
Definition SlotsIcon.c:26
Widget m_SelectedPanel
Definition SlotsIcon.c:32
Widget m_RadialIcon
Definition SlotsIcon.c:51
EntityAI m_SlotParent
Definition SlotsIcon.c:15
ItemPreviewWidget m_ItemPreview
Definition SlotsIcon.c:28
Widget m_RadialIconPanel
Definition SlotsIcon.c:49
EntityAI m_Obj
Definition SlotsIcon.c:13
Widget m_QuantityPanel
Definition SlotsIcon.c:36
Widget m_RadialIconClosed
Definition SlotsIcon.c:50
Widget m_AmmoIcon
Definition SlotsIcon.c:47
ImageWidget m_GhostSlot
Definition SlotsIcon.c:29
Widget m_QuantityStack
Definition SlotsIcon.c:39
int m_SlotID
Definition SlotsIcon.c:17
Widget m_EmptySelectedPanel
Definition SlotsIcon.c:33
Widget m_MountedWidget
Definition SlotsIcon.c:24
TextWidget m_QuantityItem
Definition SlotsIcon.c:37
Widget m_PanelWidget
Definition SlotsIcon.c:20
Widget m_ColorWidget
Definition SlotsIcon.c:31
Widget m_ItemSizePanel
Definition SlotsIcon.c:44
bool m_Reserved
Definition SlotsIcon.c:53
static WidgetEventHandler GetInstance()
proto native CGame GetGame()

References GetGame(), WidgetEventHandler::GetInstance(), m_AmmoIcon, m_ColorWidget, m_ColWidget, m_Container, m_CursorWidget, m_EmptySelectedPanel, m_GhostSlot, m_Item, m_ItemPreview, m_ItemSizePanel, m_ItemSizeWidget, m_MicromanagedPanel, m_MountedWidget, m_NormalHeight, m_NormalWidth, m_Obj, m_OutOfReachWidget, m_PanelWidget, m_QuantityItem, m_QuantityPanel, m_QuantityProgress, m_QuantityStack, m_RadialIcon, m_RadialIconClosed, m_RadialIconPanel, m_Reserved, m_ReservedWidget, m_SelectedPanel, m_SlotID, m_SlotParent, SetActive(), ItemPreviewWidget::SetForceFlip(), and ItemPreviewWidget::SetForceFlipEnable().

◆ ~SlotsIcon()

void SlotsIcon::~SlotsIcon ( )
inlineprotected

Definition at line 171 of file SlotsIcon.c.

172 {
173 if (m_IsDragged)
174 {
175 m_IsDragged = false;
176 ItemManager.GetInstance().HideDropzones();
177 ItemManager.GetInstance().SetIsDragging(false);
178 }
179
180 if (m_Obj)
181 {
182 m_Obj.GetOnItemFlipped().Remove(UpdateFlip);
183 m_Obj.GetOnViewIndexChanged().Remove(SetItemPreview);
184 }
185 }
static ItemManager GetInstance()
void UpdateFlip(bool flipped)
Definition SlotsIcon.c:458
bool m_IsDragged
Definition SlotsIcon.c:18
void SetItemPreview()
Definition SlotsIcon.c:438

References ItemManager::GetInstance(), m_IsDragged, m_Obj, SetItemPreview(), and UpdateFlip().

Member Function Documentation

◆ CheckHasItemSize()

void SlotsIcon::CheckHasItemSize ( )
inlineprotected

Definition at line 614 of file SlotsIcon.c.

615 {
616#ifdef PLATFORM_CONSOLE
617 string config = "CfgVehicles " + m_Obj.GetType() + " GUIInventoryAttachmentsProps";
618 m_HasItemSize = (InventoryItem.Cast(m_Obj) && !GetGame().ConfigIsExisting(config));
619#else
620 m_HasItemSize = false;
621#endif
622 }
bool m_HasItemSize
Definition SlotsIcon.c:10

References GetGame(), m_HasItemSize, and m_Obj.

Referenced by Init().

◆ CheckHasQuantity()

void SlotsIcon::CheckHasQuantity ( )
inlineprotected

Definition at line 604 of file SlotsIcon.c.

605 {
606 if (m_Item)
607 {
609 if (m_HasQuantity)
610 m_QuantityPanel.Show(true);
611 }
612 }
static int HasItemQuantity(notnull EntityAI item)
bool m_HasQuantity
Definition SlotsIcon.c:9
const int QUANTITY_HIDDEN
Definition constants.c:482

References QuantityConversions::HasItemQuantity(), m_HasQuantity, m_Item, m_QuantityPanel, and QUANTITY_HIDDEN.

Referenced by Init().

◆ CheckHasTemperature()

void SlotsIcon::CheckHasTemperature ( )
inlineprotected

Definition at line 598 of file SlotsIcon.c.

599 {
600 if (m_Item)
601 m_HasTemperature = (m_Item.GetTemperatureMax() != 0 && m_Item.GetTemperatureMin() != 0);
602 }
bool m_HasTemperature
Definition SlotsIcon.c:8

References m_HasTemperature, and m_Item.

Referenced by Init().

◆ CheckIsMagazine()

void SlotsIcon::CheckIsMagazine ( )
inlineprotected

Definition at line 593 of file SlotsIcon.c.

594 {
595 m_IsMagazine = (Magazine.Cast(m_Obj) != null);
596 }
bool m_IsMagazine
Definition SlotsIcon.c:7

References m_IsMagazine, and m_Obj.

Referenced by Init().

◆ CheckIsWeapon()

void SlotsIcon::CheckIsWeapon ( )
inlineprotected

Definition at line 588 of file SlotsIcon.c.

589 {
590 m_IsWeapon = (Weapon_Base.Cast(m_Obj) != null);
591 }
bool m_IsWeapon
Definition SlotsIcon.c:6

References m_IsWeapon, and m_Obj.

Referenced by Init().

◆ Clear()

void SlotsIcon::Clear ( )
inlineprotected

Definition at line 577 of file SlotsIcon.c.

578 {
579#ifdef PLATFORM_CONSOLE
580 m_SelectedPanel.Show(false);
581#endif
582 m_CursorWidget.Show(false);
583 m_EmptySelectedPanel.Show(false);
584
586 }
void ClearRemainSelected()
Definition SlotsIcon.c:514

References ClearRemainSelected(), m_CursorWidget, m_EmptySelectedPanel, and m_SelectedPanel.

◆ ClearRemainSelected()

void SlotsIcon::ClearRemainSelected ( )
inlineprotected

Definition at line 514 of file SlotsIcon.c.

515 {
516 if (m_IsDragged)
517 {
520 ItemManager.GetInstance().SetWidgetDraggable(a, false);
521 }
522 if (m_Obj)
523 {
524 m_Obj.GetOnItemFlipped().Remove(UpdateFlip);
525 m_Obj.GetOnViewIndexChanged().Remove(SetItemPreview);
526 HideOwnedTooltip();
527 }
528
529 m_Obj = null;
530 m_Item = null;
532
533 m_ItemPreview.Show(false);
535
536 m_CurrQuantity = -1;
537 m_IsWeapon = false;
538 m_IsMagazine = false;
539 m_HasTemperature = false;
540 m_HasQuantity = false;
541 m_HasItemSize = false;
542
543 m_GhostSlot.Show(true);
544 m_AmmoIcon.Show(false);
545 m_PanelWidget.Show(false);
546 m_RadialIconPanel.Show(false);
547
548 m_QuantityPanel.Show(false);
549 if (GetSlotID() != -1)
550 {
552 if (stack_max > 1)
553 {
554 m_QuantityPanel.Show(true);
555 m_QuantityItem.SetText(string.Format("0/%1", stack_max.ToString()));
556 m_QuantityStack.Show(true);
557 m_QuantityProgress.Show(false);
558 m_PanelWidget.Show(true);
559 m_ItemPreview.Show(true);
560 }
561 }
562
563 m_ColWidget.Show(false);
564 m_MountedWidget.Show(false);
565 m_OutOfReachWidget.Show(false);
566 m_ReservedWidget.Show(false);
567
568 if (m_ItemSizePanel)
569 m_ItemSizePanel.Show(false);
570
571 if (m_ColorWidget)
572 m_ColorWidget.Show(false);
573
574 Refresh();
575 }
provides access to slot configuration
static proto native int GetStackMaxForSlotId(int slot_Id)
proto native void SetItem(EntityAI object)
override void Refresh()
Definition SlotsIcon.c:347
void OnIconDrop(Widget w)
Definition SlotsIcon.c:736
float m_CurrQuantity
Definition SlotsIcon.c:11
int GetSlotID()
Definition SlotsIcon.c:192
proto native Widget CancelWidgetDragging()

References CancelWidgetDragging(), ItemManager::GetInstance(), GetSlotID(), InventorySlots::GetStackMaxForSlotId(), m_AmmoIcon, m_ColorWidget, m_ColWidget, m_Container, m_CurrQuantity, m_GhostSlot, m_HasItemSize, m_HasQuantity, m_HasTemperature, m_IsDragged, m_IsMagazine, m_IsWeapon, m_Item, m_ItemPreview, m_ItemSizePanel, m_MountedWidget, m_Obj, m_OutOfReachWidget, m_PanelWidget, m_QuantityItem, m_QuantityPanel, m_QuantityProgress, m_QuantityStack, m_RadialIconPanel, m_ReservedWidget, OnIconDrop(), Refresh(), ItemPreviewWidget::SetItem(), SetItemPreview(), and UpdateFlip().

Referenced by Clear(), and Init().

◆ GetAmmoIcon()

Widget SlotsIcon::GetAmmoIcon ( )
inlineprotected

Definition at line 297 of file SlotsIcon.c.

298 {
299 return m_AmmoIcon;
300 }

References m_AmmoIcon.

◆ GetColorWidget()

Widget SlotsIcon::GetColorWidget ( )
inlineprotected

Definition at line 242 of file SlotsIcon.c.

243 {
244 return m_ColorWidget;
245 }

References m_ColorWidget.

◆ GetColWidget()

Widget SlotsIcon::GetColWidget ( )
inlineprotected

Definition at line 217 of file SlotsIcon.c.

218 {
219 return m_ColWidget;
220 }

References m_ColWidget.

◆ GetContainer()

Container SlotsIcon::GetContainer ( )
inlineprotected

Definition at line 151 of file SlotsIcon.c.

152 {
153 return m_Container;
154 }

References m_Container.

◆ GetCursorWidget()

Widget SlotsIcon::GetCursorWidget ( )
inlineprotected

Definition at line 212 of file SlotsIcon.c.

213 {
214 return m_CursorWidget;
215 }

References m_CursorWidget.

Referenced by IsFocused().

◆ GetEmptySelectedPanel()

Widget SlotsIcon::GetEmptySelectedPanel ( )
inlineprotected

Definition at line 252 of file SlotsIcon.c.

253 {
255 }

References m_EmptySelectedPanel.

◆ GetEntity()

EntityAI SlotsIcon::GetEntity ( )
inlineprotected

Definition at line 367 of file SlotsIcon.c.

368 {
369 return EntityAI.Cast(m_Obj);
370 }

References m_Obj.

◆ GetGhostSlot()

ImageWidget SlotsIcon::GetGhostSlot ( )
inlineprotected

Definition at line 237 of file SlotsIcon.c.

238 {
239 return m_GhostSlot;
240 }

References m_GhostSlot.

◆ GetItem()

ItemBase SlotsIcon::GetItem ( )
inlineprotected

Definition at line 372 of file SlotsIcon.c.

373 {
374 return m_Item;
375 }

References m_Item.

◆ GetItemSizePanel()

Widget SlotsIcon::GetItemSizePanel ( )
inlineprotected

Definition at line 287 of file SlotsIcon.c.

288 {
289 return m_ItemSizePanel;
290 }

References m_ItemSizePanel.

◆ GetItemSizeWidget()

TextWidget SlotsIcon::GetItemSizeWidget ( )
inlineprotected

Definition at line 292 of file SlotsIcon.c.

293 {
294 return m_ItemSizeWidget;
295 }

References m_ItemSizeWidget.

◆ GetMicromanagedPanel()

Widget SlotsIcon::GetMicromanagedPanel ( )
inlineprotected

Definition at line 257 of file SlotsIcon.c.

258 {
259 return m_MicromanagedPanel;
260 }

References m_MicromanagedPanel.

◆ GetMountedWidget()

Widget SlotsIcon::GetMountedWidget ( )
inlineprotected

Definition at line 227 of file SlotsIcon.c.

228 {
229 return m_MountedWidget;
230 }

References m_MountedWidget.

◆ GetNormalHeight()

static int SlotsIcon::GetNormalHeight ( )
inlinestaticprotected

Definition at line 755 of file SlotsIcon.c.

756 {
757 return m_NormalHeight;
758 }

References m_NormalHeight.

Referenced by ItemManager::CalculateTooltipSlotPosition().

◆ GetNormalWidth()

static int SlotsIcon::GetNormalWidth ( )
inlinestaticprotected

Definition at line 750 of file SlotsIcon.c.

751 {
752 return m_NormalWidth;
753 }

References m_NormalWidth.

Referenced by ItemManager::CalculateTooltipSlotPosition().

◆ GetObject()

Object SlotsIcon::GetObject ( )
inlineprotected

Definition at line 362 of file SlotsIcon.c.

363 {
364 return m_Obj;
365 }

References m_Obj.

Referenced by AttachmentCategoriesContainer::Close(), RefreshMuzzleIcon(), and SetActive().

◆ GetOutOfReachWidget()

Widget SlotsIcon::GetOutOfReachWidget ( )
inlineprotected

Definition at line 267 of file SlotsIcon.c.

268 {
269 return m_OutOfReachWidget;
270 }

References m_OutOfReachWidget.

◆ GetPanelWidget()

Widget SlotsIcon::GetPanelWidget ( )
inlineprotected

Definition at line 207 of file SlotsIcon.c.

208 {
209 return m_PanelWidget;
210 }

References m_PanelWidget.

Referenced by UpdateFlip().

◆ GetQuantityItem()

TextWidget SlotsIcon::GetQuantityItem ( )
inlineprotected

Definition at line 272 of file SlotsIcon.c.

273 {
274 return m_QuantityItem;
275 }

References m_QuantityItem.

◆ GetQuantityPanel()

Widget SlotsIcon::GetQuantityPanel ( )
inlineprotected

Definition at line 262 of file SlotsIcon.c.

263 {
264 return m_QuantityPanel;
265 }

References m_QuantityPanel.

◆ GetQuantityProgress()

ProgressBarWidget SlotsIcon::GetQuantityProgress ( )
inlineprotected

Definition at line 277 of file SlotsIcon.c.

278 {
279 return m_QuantityProgress;
280 }

References m_QuantityProgress.

◆ GetQuantityStack()

Widget SlotsIcon::GetQuantityStack ( )
inlineprotected

Definition at line 282 of file SlotsIcon.c.

283 {
284 return m_QuantityStack;
285 }

References m_QuantityStack.

◆ GetRadialIcon()

Widget SlotsIcon::GetRadialIcon ( )
inlineprotected

Definition at line 312 of file SlotsIcon.c.

313 {
314 return m_RadialIcon;
315 }

References m_RadialIcon.

◆ GetRadialIconClosed()

Widget SlotsIcon::GetRadialIconClosed ( )
inlineprotected

Definition at line 307 of file SlotsIcon.c.

308 {
309 return m_RadialIconClosed;
310 }

References m_RadialIconClosed.

◆ GetRadialIconPanel()

Widget SlotsIcon::GetRadialIconPanel ( )
inlineprotected

Definition at line 302 of file SlotsIcon.c.

303 {
304 return m_RadialIconPanel;
305 }

References m_RadialIconPanel.

Referenced by LayoutHolder::UpdateRadialIcon().

◆ GetRender()

ItemPreviewWidget SlotsIcon::GetRender ( )
inlineprotected

Definition at line 232 of file SlotsIcon.c.

233 {
234 return m_ItemPreview;
235 }

References m_ItemPreview.

◆ GetReservedWidget()

Widget SlotsIcon::GetReservedWidget ( )
inlineprotected

Definition at line 222 of file SlotsIcon.c.

223 {
224 return m_ReservedWidget;
225 }

References m_ReservedWidget.

◆ GetSelectedPanel()

Widget SlotsIcon::GetSelectedPanel ( )
inlineprotected

Definition at line 247 of file SlotsIcon.c.

248 {
249 return m_SelectedPanel;
250 }

References m_SelectedPanel.

◆ GetSlotDesc()

string SlotsIcon::GetSlotDesc ( )
inlineprotected

Definition at line 166 of file SlotsIcon.c.

167 {
168 return m_SlotDesc;
169 }
string m_SlotDesc
Definition SlotsIcon.c:42

References m_SlotDesc.

◆ GetSlotDisplayName()

string SlotsIcon::GetSlotDisplayName ( )
inlineprotected

Definition at line 156 of file SlotsIcon.c.

157 {
158 return m_SlotDisplayName;
159 }
string m_SlotDisplayName
Definition SlotsIcon.c:41

References m_SlotDisplayName.

◆ GetSlotID()

int SlotsIcon::GetSlotID ( )
inlineprotected

Definition at line 192 of file SlotsIcon.c.

193 {
194 return m_SlotID;
195 }

References m_SlotID.

Referenced by ClearRemainSelected().

◆ GetSlotParent()

EntityAI SlotsIcon::GetSlotParent ( )
inlineprotected

Definition at line 187 of file SlotsIcon.c.

188 {
189 return m_SlotParent;
190 }

References m_SlotParent.

◆ Init()

void SlotsIcon::Init ( EntityAI obj,
bool reservation = false )
inlineprotected

Definition at line 468 of file SlotsIcon.c.

469 {
470 if (m_Obj != obj)
471 {
473 m_Obj = obj;
474 m_Item = ItemBase.Cast(m_Obj);
475 m_Obj.GetOnItemFlipped().Insert(UpdateFlip);
476 m_Obj.GetOnViewIndexChanged().Insert(SetItemPreview);
479
480 if (reservation)
481 {
482 ItemManager.GetInstance().SetWidgetDraggable(m_PanelWidget, false);
483
484 m_IsWeapon = false;
485 m_IsMagazine = false;
486 m_HasTemperature = false;
487 m_HasQuantity = false;
488 m_HasItemSize = false;
489 }
490 else
491 {
497 }
498
500
502
503 m_GhostSlot.Show(false);
504 m_PanelWidget.Show(true);
505
506 Refresh();
507#ifdef PLATFORM_CONSOLE
508 if (IsFocused())
509 Inventory.GetInstance().UpdateConsoleToolbar();
510#endif
511 }
512 }
void Inventory(LayoutHolder parent)
Definition Inventory.c:76
bool IsFocused()
Definition SlotsIcon.c:317
void CheckIsMagazine()
Definition SlotsIcon.c:593
void CheckHasTemperature()
Definition SlotsIcon.c:598
void CheckHasItemSize()
Definition SlotsIcon.c:614
void CheckIsWeapon()
Definition SlotsIcon.c:588
void CheckHasQuantity()
Definition SlotsIcon.c:604

References CheckHasItemSize(), CheckHasQuantity(), CheckHasTemperature(), CheckIsMagazine(), CheckIsWeapon(), ClearRemainSelected(), ItemManager::GetInstance(), Inventory(), IsFocused(), m_Container, m_GhostSlot, m_HasItemSize, m_HasQuantity, m_HasTemperature, m_IsMagazine, m_IsWeapon, m_Item, m_Obj, m_PanelWidget, m_Reserved, m_ReservedWidget, Refresh(), SetItemPreview(), and UpdateFlip().

◆ IsFocused()

bool SlotsIcon::IsFocused ( )
inlineprotected

Definition at line 317 of file SlotsIcon.c.

318 {
319 return GetCursorWidget().IsVisible();
320 }
Widget GetCursorWidget()
Definition SlotsIcon.c:212

References GetCursorWidget().

Referenced by Init().

◆ IsOutOfReach()

bool SlotsIcon::IsOutOfReach ( )
inlineprotected

Definition at line 624 of file SlotsIcon.c.

625 {
626 bool oot = (m_OutOfReachWidget.IsVisible() || m_MountedWidget.IsVisible());
627 return oot;
628 }

References m_MountedWidget, and m_OutOfReachWidget.

Referenced by MouseEnter().

◆ IsReserved()

bool SlotsIcon::IsReserved ( )
inlineprotected

Definition at line 202 of file SlotsIcon.c.

203 {
204 return m_Reserved;
205 }

References m_Reserved.

◆ IsVisible()

override bool SlotsIcon::IsVisible ( )
inlineprotected

Definition at line 131 of file SlotsIcon.c.

132 {
133 return m_MainWidget.IsVisible();
134 }

Referenced by AttachmentCategoriesContainer::OnHide().

◆ MouseEnter()

bool SlotsIcon::MouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 630 of file SlotsIcon.c.

631 {
632 if (m_Reserved)
633 return MouseEnterGhostSlot(w, x, y);
634
635 PrepareOwnedTooltip(m_Item, x, y);
637 m_CursorWidget.Show(true);
638 return true;
639 }
Icon x
Icon y
bool IsOutOfReach()
Definition SlotsIcon.c:624
bool MouseEnterGhostSlot(Widget w, int x, int y)
Definition SlotsIcon.c:641
proto native Widget GetDragWidget()

References GetDragWidget(), IsOutOfReach(), m_CursorWidget, m_Item, m_PanelWidget, m_Reserved, MouseEnterGhostSlot(), x, and y.

◆ MouseEnterGhostSlot()

bool SlotsIcon::MouseEnterGhostSlot ( Widget w,
int x,
int y )
inlineprotected

Definition at line 641 of file SlotsIcon.c.

642 {
643 float pos_x, pos_y;
644 m_MainWidget.GetScreenPos(pos_x, pos_y);
645
646 x = pos_x;
647 y = pos_y;
648
649 PrepareOwnedSlotsTooltip(m_MainWidget, m_SlotDisplayName, m_SlotDesc, x, y);
651 m_EmptySelectedPanel.Show(true);
652
653
654 return true;
655 }

References GetDragWidget(), m_EmptySelectedPanel, m_PanelWidget, m_SlotDesc, m_SlotDisplayName, x, and y.

Referenced by MouseEnter().

◆ MouseLeave()

bool SlotsIcon::MouseLeave ( Widget w,
Widget s,
int x,
int y )
inlineprotected

Definition at line 657 of file SlotsIcon.c.

658 {
659 if (m_Reserved)
660 return MouseLeaveGhostSlot(w, s, x, y);
661
662 HideOwnedTooltip();
664 m_CursorWidget.Show(false);
665 return true;
666 }
bool MouseLeaveGhostSlot(Widget w, Widget s, int x, int y)
Definition SlotsIcon.c:668

References GetDragWidget(), m_CursorWidget, m_PanelWidget, m_Reserved, MouseLeaveGhostSlot(), x, and y.

◆ MouseLeaveGhostSlot()

bool SlotsIcon::MouseLeaveGhostSlot ( Widget w,
Widget s,
int x,
int y )
inlineprotected

Definition at line 668 of file SlotsIcon.c.

669 {
670 HideOwnedSlotsTooltip();
671
673 m_EmptySelectedPanel.Show(false);
674
675 return true;
676 }

References GetDragWidget(), m_EmptySelectedPanel, and m_PanelWidget.

Referenced by MouseLeave().

◆ OnIconDrag()

void SlotsIcon::OnIconDrag ( Widget w)
inlineprotected

Definition at line 693 of file SlotsIcon.c.

694 {
695 if (!m_Obj || !w)
696 return;
697 ItemManager.GetInstance().HideDropzones();
698 if (m_Obj.GetHierarchyRootPlayer() == GetGame().GetPlayer())
699 ItemManager.GetInstance().GetRightDropzone().SetAlpha(1);
700 else
701 ItemManager.GetInstance().GetLeftDropzone().SetAlpha(1);
702
703 ItemManager.GetInstance().SetIsDragging(true);
704 int icon_x, icon_y;
705 float icon_size, y;
706 int m_sizeX, m_sizeY;
707
708 if (m_Item)
709 {
710 GetGame().GetInventoryItemSize(m_Item, icon_x, icon_y);
711
712 CargoContainer c_parent = CargoContainer.Cast(m_Parent);
714
715 if (GetRoot().m_MainWidget.FindAnyWidget("HandsPanel"))
716 GetRoot().m_MainWidget.FindAnyWidget("HandsPanel").GetScreenSize(icon_size, y);
717
718 icon_size = icon_size / 10;
719
720 w.SetFlags(WidgetFlags.EXACTSIZE);
722
723 if (!m_Item.GetInventory().GetFlipCargo())
724 w.SetSize(icon_x * icon_size, icon_y * icon_size);
725 else
726 w.SetSize(icon_y * icon_size, icon_x * icon_size);
727
728 m_ColWidget.Show(true);
729 m_CursorWidget.Show(true);
730
731 ItemManager.GetInstance().SetDraggedItem(m_Item);
732 }
733 m_IsDragged = true;
734 }
PlayerBase GetPlayer()
Widget m_Parent
Definition SizeToChild.c:86
WidgetFlags
Definition EnWidgets.c:58

References GetGame(), ItemManager::GetInstance(), GetPlayer(), m_ColWidget, m_CursorWidget, m_IsDragged, m_Item, m_ItemPreview, m_Obj, m_Parent, ItemPreviewWidget::SetForceFlipEnable(), and y.

◆ OnIconDrop()

void SlotsIcon::OnIconDrop ( Widget w)
inlineprotected

Definition at line 736 of file SlotsIcon.c.

737 {
738 m_IsDragged = false;
739 ItemManager.GetInstance().HideDropzones();
740 ItemManager.GetInstance().SetIsDragging(false);
741 w.ClearFlags(WidgetFlags.EXACTSIZE);
742 w.SetSize(1, 1);
743 m_ColWidget.Show(false);
744 m_CursorWidget.Show(false);
745 m_EmptySelectedPanel.Show(false);
746 m_CursorWidget.SetColor(ARGBF(1, 1, 1, 1));
748 }
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition proto.c:332

References ARGBF(), ItemManager::GetInstance(), m_ColWidget, m_CursorWidget, m_EmptySelectedPanel, m_IsDragged, m_ItemPreview, and ItemPreviewWidget::SetForceFlipEnable().

Referenced by ClearRemainSelected().

◆ Refresh()

override void SlotsIcon::Refresh ( )
inlineprotected

Definition at line 347 of file SlotsIcon.c.

348 {
351 if (m_IsWeapon)
353 if (m_HasQuantity)
354 SetQuantity();
355 }
void SetTemperature()
Definition SlotsIcon.c:357
void RefreshMuzzleIcon()
Definition SlotsIcon.c:377
void SetQuantity()
Definition SlotsIcon.c:393

References m_HasQuantity, m_HasTemperature, m_IsWeapon, RefreshMuzzleIcon(), SetQuantity(), and SetTemperature().

Referenced by ClearRemainSelected(), and Init().

◆ RefreshMuzzleIcon()

void SlotsIcon::RefreshMuzzleIcon ( )
inlineprotected

Definition at line 377 of file SlotsIcon.c.

378 {
380 if (wpn)
381 {
382 if (wpn.IsShowingChamberedBullet())
383 {
384 int mi = wpn.GetCurrentMuzzle();
385 m_AmmoIcon.Show(wpn.IsChamberFull(mi));
386
387 }
388 else
389 m_AmmoIcon.Show(false);
390 }
391 }
Object GetObject()
Definition SlotsIcon.c:362

References GetObject(), and m_AmmoIcon.

Referenced by Refresh(), and UpdateInterval().

◆ SetActive()

override void SlotsIcon::SetActive ( bool active)
inlineprotected

Definition at line 322 of file SlotsIcon.c.

323 {
324#ifdef PLATFORM_CONSOLE
325 super.SetActive(active);
326 float x, y;
327 if (active && GetObject())
328 {
329 GetMainWidget().GetScreenPos(x, y);
330 PrepareOwnedTooltip(EntityAI.Cast(GetObject()), x, y);
331 }
332 else if (active)
333 {
334 GetMainWidget().GetScreenPos(x, y);
335 PrepareOwnedSlotsTooltip(GetMainWidget(), m_SlotDisplayName, m_SlotDesc, x, y);
336 }
337
339#endif
340 }

References GetObject(), m_SelectedPanel, m_SlotDesc, m_SlotDisplayName, x, and y.

◆ SetContainer()

void SlotsIcon::SetContainer ( Container container)
inlineprotected

Definition at line 141 of file SlotsIcon.c.

142 {
144 }

References m_Container.

◆ SetItemPreview()

void SlotsIcon::SetItemPreview ( )
inlineprotected

Definition at line 438 of file SlotsIcon.c.

439 {
440 m_ItemPreview.Show(true);
443 m_ItemPreview.SetView(m_Obj.GetViewIndex());
444 }
proto native void SetView(int viewIndex)
proto native void SetModelOrientation(vector vOrientation)

References m_ItemPreview, m_Obj, ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetModelOrientation(), and ItemPreviewWidget::SetView().

Referenced by ClearRemainSelected(), Init(), and ~SlotsIcon().

◆ SetItemSize()

void SlotsIcon::SetItemSize ( )
inlineprotected

Definition at line 446 of file SlotsIcon.c.

447 {
448 if (m_HasItemSize)
449 {
450 int size_x, size_y;
451 GetGame().GetInventoryItemSize(InventoryItem.Cast(m_Obj), size_x, size_y);
452
453 m_ItemSizePanel.Show(true);
454 m_ItemSizeWidget.SetText((size_x * size_y).ToString());
455 }
456 }
proto string ToString()

References GetGame(), m_HasItemSize, m_ItemSizePanel, m_ItemSizeWidget, m_Obj, and ToString().

Referenced by UpdateInterval().

◆ SetLayoutName()

override void SlotsIcon::SetLayoutName ( )
inlineprotected

Definition at line 342 of file SlotsIcon.c.

343 {
344 m_LayoutName = "";
345 }

◆ SetQuantity()

void SlotsIcon::SetQuantity ( )
inlineprotected

Definition at line 393 of file SlotsIcon.c.

394 {
395 if (m_Item)
396 {
399 {
401
403 {
405
407 m_QuantityStack.Show(false);
408 else
409 {
410 m_QuantityItem.SetText(q_text);
411 m_QuantityStack.Show(true);
412 }
413
414 m_QuantityProgress.Show(false);
415 }
417 {
418 float progress_max = m_QuantityProgress.GetMax();
419 int max = m_Item.GetQuantityMax();
420 int count = m_Item.ConfigGetInt("count");
421 float quantity = m_CurrQuantity;
422
423 if (count > 0)
424 max = count;
425
426 if (max > 0)
427 {
428 float value = Math.Round((quantity / max) * 100);
429 m_QuantityProgress.SetCurrent(value);
430 }
431 m_QuantityStack.Show(false);
432 m_QuantityProgress.Show(true);
433 }
434 }
435 }
436 }
Definition EnMath.c:7
static float GetItemQuantity(InventoryItem item)
static float GetItemQuantityMax(InventoryItem item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
const int QUANTITY_PROGRESS
Definition constants.c:484
const int QUANTITY_COUNT
Definition constants.c:483
static proto float Round(float f)
Returns mathematical round of value.

References QuantityConversions::GetItemQuantity(), QuantityConversions::GetItemQuantityMax(), QuantityConversions::GetItemQuantityText(), QuantityConversions::HasItemQuantity(), m_CurrQuantity, m_Item, m_QuantityItem, m_QuantityProgress, m_QuantityStack, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, and Math::Round().

Referenced by Refresh(), and UpdateInterval().

◆ SetSlotDesc()

void SlotsIcon::SetSlotDesc ( string text)
inlineprotected

Definition at line 161 of file SlotsIcon.c.

162 {
164 }

References m_SlotDesc.

◆ SetSlotDisplayName()

void SlotsIcon::SetSlotDisplayName ( string text)
inlineprotected

Definition at line 146 of file SlotsIcon.c.

147 {
149 }

References m_SlotDisplayName.

◆ SetSlotID()

void SlotsIcon::SetSlotID ( int slot_ID)
inlineprotected

Definition at line 197 of file SlotsIcon.c.

198 {
200 }

References m_SlotID.

◆ SetSlotParent()

void SlotsIcon::SetSlotParent ( EntityAI parent)
inlineprotected

Definition at line 136 of file SlotsIcon.c.

137 {
138 m_SlotParent = parent;
139 }

References m_SlotParent.

◆ SetTemperature()

void SlotsIcon::SetTemperature ( )
inlineprotected

Definition at line 357 of file SlotsIcon.c.

358 {
359 ItemManager.GetInstance().SetIconTemperature(EntityAI.Cast(m_Obj), m_MainWidget);
360 }

References ItemManager::GetInstance(), and m_Obj.

Referenced by Refresh(), and UpdateInterval().

◆ UpdateFlip()

void SlotsIcon::UpdateFlip ( bool flipped)
inlineprotected

Definition at line 458 of file SlotsIcon.c.

459 {
460 if (!m_Reserved)
461 {
462 float x_content, y_content;
463 GetPanelWidget().GetScreenSize(x_content, y_content);
465 }
466 }
Widget GetPanelWidget()
Definition SlotsIcon.c:207

References GetPanelWidget(), and m_Reserved.

Referenced by ClearRemainSelected(), Init(), and ~SlotsIcon().

◆ UpdateInterval()

override void SlotsIcon::UpdateInterval ( )
inlineprotected

Definition at line 678 of file SlotsIcon.c.

679 {
680 if (m_Item)
681 {
684 if (m_IsWeapon)
686 if (m_HasQuantity)
687 SetQuantity();
688 if (m_HasItemSize)
689 SetItemSize();
690 }
691 }
void SetItemSize()
Definition SlotsIcon.c:446

References m_HasItemSize, m_HasQuantity, m_HasTemperature, m_IsWeapon, m_Item, RefreshMuzzleIcon(), SetItemSize(), SetQuantity(), and SetTemperature().

Member Data Documentation

◆ m_AmmoIcon

Widget SlotsIcon::m_AmmoIcon
protected

Definition at line 47 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetAmmoIcon(), RefreshMuzzleIcon(), and SlotsIcon().

◆ m_ColorWidget

Widget SlotsIcon::m_ColorWidget
protected

Definition at line 31 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetColorWidget(), and SlotsIcon().

◆ m_ColWidget

Widget SlotsIcon::m_ColWidget
protected

Definition at line 23 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetColWidget(), OnIconDrag(), OnIconDrop(), and SlotsIcon().

◆ m_Container

Container SlotsIcon::m_Container
protected

Definition at line 16 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetContainer(), Init(), SetContainer(), and SlotsIcon().

◆ m_CurrQuantity

float SlotsIcon::m_CurrQuantity = -1
protected

Definition at line 11 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), and SetQuantity().

◆ m_CursorWidget

Widget SlotsIcon::m_CursorWidget
protected

◆ m_EmptySelectedPanel

Widget SlotsIcon::m_EmptySelectedPanel
protected

◆ m_GhostSlot

ImageWidget SlotsIcon::m_GhostSlot
protected

Definition at line 29 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetGhostSlot(), Init(), and SlotsIcon().

◆ m_HasItemSize

bool SlotsIcon::m_HasItemSize = false
protected

Definition at line 10 of file SlotsIcon.c.

Referenced by CheckHasItemSize(), ClearRemainSelected(), Init(), SetItemSize(), and UpdateInterval().

◆ m_HasQuantity

bool SlotsIcon::m_HasQuantity = false
protected

Definition at line 9 of file SlotsIcon.c.

Referenced by CheckHasQuantity(), ClearRemainSelected(), Init(), Refresh(), and UpdateInterval().

◆ m_HasTemperature

bool SlotsIcon::m_HasTemperature = false
protected

Definition at line 8 of file SlotsIcon.c.

Referenced by CheckHasTemperature(), ClearRemainSelected(), Init(), Refresh(), and UpdateInterval().

◆ m_IsDragged

bool SlotsIcon::m_IsDragged = false
protected

Definition at line 18 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), OnIconDrag(), OnIconDrop(), and ~SlotsIcon().

◆ m_IsMagazine

bool SlotsIcon::m_IsMagazine = false
protected

Definition at line 7 of file SlotsIcon.c.

Referenced by CheckIsMagazine(), ClearRemainSelected(), and Init().

◆ m_IsWeapon

bool SlotsIcon::m_IsWeapon = false
protected

Definition at line 6 of file SlotsIcon.c.

Referenced by CheckIsWeapon(), ClearRemainSelected(), Init(), Refresh(), and UpdateInterval().

◆ m_Item

◆ m_ItemPreview

ItemPreviewWidget SlotsIcon::m_ItemPreview
protected

◆ m_ItemSizePanel

Widget SlotsIcon::m_ItemSizePanel
protected

Definition at line 44 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetItemSizePanel(), SetItemSize(), and SlotsIcon().

◆ m_ItemSizeWidget

TextWidget SlotsIcon::m_ItemSizeWidget
protected

Definition at line 45 of file SlotsIcon.c.

Referenced by GetItemSizeWidget(), SetItemSize(), and SlotsIcon().

◆ m_MicromanagedPanel

Widget SlotsIcon::m_MicromanagedPanel
protected

Definition at line 34 of file SlotsIcon.c.

Referenced by GetMicromanagedPanel(), and SlotsIcon().

◆ m_MountedWidget

Widget SlotsIcon::m_MountedWidget
protected

Definition at line 24 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetMountedWidget(), IsOutOfReach(), and SlotsIcon().

◆ m_NormalHeight

int SlotsIcon::m_NormalHeight
staticprotected

Definition at line 4 of file SlotsIcon.c.

Referenced by GetNormalHeight(), and SlotsIcon().

◆ m_NormalWidth

int SlotsIcon::m_NormalWidth
staticprotected

Definition at line 3 of file SlotsIcon.c.

Referenced by GetNormalWidth(), and SlotsIcon().

◆ m_Obj

◆ m_OutOfReachWidget

Widget SlotsIcon::m_OutOfReachWidget
protected

Definition at line 25 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetOutOfReachWidget(), IsOutOfReach(), and SlotsIcon().

◆ m_PanelWidget

Widget SlotsIcon::m_PanelWidget
protected

◆ m_QuantityItem

TextWidget SlotsIcon::m_QuantityItem
protected

Definition at line 37 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetQuantityItem(), SetQuantity(), and SlotsIcon().

◆ m_QuantityPanel

Widget SlotsIcon::m_QuantityPanel
protected

Definition at line 36 of file SlotsIcon.c.

Referenced by CheckHasQuantity(), ClearRemainSelected(), GetQuantityPanel(), and SlotsIcon().

◆ m_QuantityProgress

ProgressBarWidget SlotsIcon::m_QuantityProgress
protected

Definition at line 38 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetQuantityProgress(), SetQuantity(), and SlotsIcon().

◆ m_QuantityStack

Widget SlotsIcon::m_QuantityStack
protected

Definition at line 39 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetQuantityStack(), SetQuantity(), and SlotsIcon().

◆ m_RadialIcon

Widget SlotsIcon::m_RadialIcon
protected

Definition at line 51 of file SlotsIcon.c.

Referenced by GetRadialIcon(), and SlotsIcon().

◆ m_RadialIconClosed

Widget SlotsIcon::m_RadialIconClosed
protected

Definition at line 50 of file SlotsIcon.c.

Referenced by GetRadialIconClosed(), and SlotsIcon().

◆ m_RadialIconPanel

Widget SlotsIcon::m_RadialIconPanel
protected

Definition at line 49 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetRadialIconPanel(), and SlotsIcon().

◆ m_Reserved

bool SlotsIcon::m_Reserved
protected

Definition at line 53 of file SlotsIcon.c.

Referenced by Init(), IsReserved(), MouseEnter(), MouseLeave(), SlotsIcon(), and UpdateFlip().

◆ m_ReservedWidget

Widget SlotsIcon::m_ReservedWidget
protected

Definition at line 26 of file SlotsIcon.c.

Referenced by ClearRemainSelected(), GetReservedWidget(), Init(), and SlotsIcon().

◆ m_SelectedPanel

Widget SlotsIcon::m_SelectedPanel
protected

Definition at line 32 of file SlotsIcon.c.

Referenced by Clear(), GetSelectedPanel(), SetActive(), and SlotsIcon().

◆ m_SlotDesc

string SlotsIcon::m_SlotDesc
protected

Definition at line 42 of file SlotsIcon.c.

Referenced by GetSlotDesc(), MouseEnterGhostSlot(), SetActive(), and SetSlotDesc().

◆ m_SlotDisplayName

string SlotsIcon::m_SlotDisplayName
protected

Definition at line 41 of file SlotsIcon.c.

Referenced by GetSlotDisplayName(), MouseEnterGhostSlot(), SetActive(), and SetSlotDisplayName().

◆ m_SlotID

int SlotsIcon::m_SlotID
protected

Definition at line 17 of file SlotsIcon.c.

Referenced by GetSlotID(), SetSlotID(), and SlotsIcon().

◆ m_SlotParent

EntityAI SlotsIcon::m_SlotParent
protected

Definition at line 15 of file SlotsIcon.c.

Referenced by GetSlotParent(), SetSlotParent(), and SlotsIcon().


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