|
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 () |
|
ImageWidget | 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) |
|
◆ SlotsIcon()
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, WidgetEventHandler::RegisterOnDrag(), WidgetEventHandler::RegisterOnDrop(), WidgetEventHandler::RegisterOnMouseEnter(), WidgetEventHandler::RegisterOnMouseLeave(), SetActive(), ItemPreviewWidget::SetForceFlip(), and ItemPreviewWidget::SetForceFlipEnable().
◆ ~SlotsIcon()
◆ CheckHasItemSize()
void CheckHasItemSize |
( |
| ) |
|
|
inlineprivate |
◆ CheckHasQuantity()
void CheckHasQuantity |
( |
| ) |
|
|
inlineprivate |
◆ CheckHasTemperature()
void CheckHasTemperature |
( |
| ) |
|
|
inlineprivate |
◆ CheckIsMagazine()
◆ CheckIsWeapon()
◆ Clear()
References ClearRemainSelected(), m_CursorWidget, m_EmptySelectedPanel, and m_SelectedPanel.
Referenced by Attachments::AttachmentRemoved(), AttachmentCategoriesRow::Init(), Attachments::InitAttachmentGrid(), ZombieContainer::InitGhostSlots(), PlayerContainer::ItemDetached(), ZombieContainer::ItemDetached(), Attachments::OnAttachmentReservationRelease(), PlayerContainer::OnAttachmentReservationRelease(), PlayerContainer::PlayerContainer(), AttachmentCategoriesRow::RefreshSlot(), PlayerContainer::SetPlayer(), and VicinitySlotsContainer::ShowItemsInContainers().
◆ ClearRemainSelected()
void ClearRemainSelected |
( |
| ) |
|
|
inlineprivate |
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(), ItemManager::SetWidgetDraggable(), and UpdateFlip().
Referenced by Clear(), Init(), and AttachmentCategoriesRow::RefreshSlot().
◆ GetAmmoIcon()
ImageWidget GetAmmoIcon |
( |
| ) |
|
|
inlineprivate |
◆ GetColorWidget()
◆ GetColWidget()
◆ GetContainer()
◆ GetCursorWidget()
◆ GetEmptySelectedPanel()
Widget GetEmptySelectedPanel |
( |
| ) |
|
|
inlineprivate |
◆ GetEntity()
References m_Obj.
Referenced by PlayerContainer::DraggingOver(), HandsContainer::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), AttachmentCategoriesRow::MouseClick(), PlayerContainer::MouseClick(), ZombieContainer::MouseClick(), ClosableContainer::MouseClick2(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), AttachmentCategoriesRow::RefreshSlot(), PlayerContainer::Select(), HandsContainer::TakeAsAttachment(), ClosableContainer::TakeAsAttachment(), ZombieContainer::ToggleContainer(), and Attachments::UpdateInterval().
◆ GetGhostSlot()
ImageWidget GetGhostSlot |
( |
| ) |
|
|
inlineprivate |
◆ GetItem()
◆ GetItemSizePanel()
◆ GetItemSizeWidget()
◆ GetMicromanagedPanel()
Widget GetMicromanagedPanel |
( |
| ) |
|
|
inlineprivate |
◆ GetMountedWidget()
◆ GetNormalHeight()
static int GetNormalHeight |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetNormalWidth()
static int GetNormalWidth |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetObject()
◆ GetOutOfReachWidget()
Widget GetOutOfReachWidget |
( |
| ) |
|
|
inlineprivate |
◆ GetPanelWidget()
References m_PanelWidget.
Referenced by AttachmentCategoriesSlotsContainer::AttachmentCategoriesSlotsContainer(), AttachmentCategoriesRow::Init(), Attachments::InitAttachmentGrid(), ZombieContainer::InitGhostSlots(), PlayerContainer::ItemAttached(), ZombieContainer::ItemAttached(), PlayerContainer::PlayerContainer(), VicinitySlotsContainer::RecomputeNumberOfContainers(), VicinitySlotsContainer::ShowItemsInContainers(), UpdateFlip(), Attachments::UpdateInterval(), and VicinitySlotsContainer::VicinitySlotsContainer().
◆ GetQuantityItem()
◆ GetQuantityPanel()
◆ GetQuantityProgress()
ProgressBarWidget GetQuantityProgress |
( |
| ) |
|
|
inlineprivate |
◆ GetQuantityStack()
◆ GetRadialIcon()
◆ GetRadialIconClosed()
Widget GetRadialIconClosed |
( |
| ) |
|
|
inlineprivate |
◆ GetRadialIconPanel()
◆ GetRender()
◆ GetReservedWidget()
◆ GetSelectedPanel()
◆ GetSlotDesc()
◆ GetSlotDisplayName()
◆ GetSlotID()
References m_SlotID.
Referenced by ClearRemainSelected(), HandsContainer::DraggingOverHeader(), AttachmentCategoriesRow::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), Attachments::GetFocusedSlot(), AttachmentCategoriesRow::GetFocusedSlot(), PlayerContainer::MouseClick(), ClosableContainer::MouseClick2(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), AttachmentCategoriesRow::RefreshSlot(), Attachments::Select(), AttachmentCategoriesRow::Select(), PlayerContainer::Select(), HandsContainer::TakeAsAttachment(), and ClosableContainer::TakeAsAttachment().
◆ GetSlotParent()
◆ Init()
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(), ItemManager::SetWidgetDraggable(), and UpdateFlip().
Referenced by Attachments::AttachmentAdded(), PlayerContainer::ItemAttached(), ZombieContainer::ItemAttached(), Attachments::OnAttachmentReservationSet(), PlayerContainer::OnAttachmentReservationSet(), AttachmentCategoriesRow::RefreshSlot(), and VicinitySlotsContainer::ShowItemsInContainers().
◆ IsFocused()
◆ IsOutOfReach()
References m_MountedWidget, and m_OutOfReachWidget.
Referenced by AttachmentCategoriesRow::CanCombine(), AttachmentCategoriesRow::Combine(), AttachmentCategoriesRow::DoubleClick(), AttachmentCategoriesRow::IsItemActive(), AttachmentCategoriesRow::IsItemWithQuantityActive(), AttachmentCategoriesRow::MouseClick(), MouseEnter(), Attachments::Select(), AttachmentCategoriesRow::Select(), VicinitySlotsContainer::Select(), ZombieContainer::Select(), Attachments::SelectItem(), SlotsContainer::SelectItem(), AttachmentCategoriesRow::TransferItem(), and AttachmentCategoriesRow::TransferItemToVicinity().
◆ IsReserved()
References m_Reserved.
Referenced by ClosableContainer::DoubleClick(), PlayerContainer::DoubleClick(), PlayerContainer::DraggingOver(), ClosableContainer::DraggingOverHeader(), SlotsContainer::GetFocusedItem(), PlayerContainer::ItemAttached(), PlayerContainer::MouseClick(), ClosableContainer::MouseClick2(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), Attachments::Select(), PlayerContainer::Select(), SlotsContainer::SelectItem(), ClosableContainer::TakeAsAttachment(), and Attachments::UpdateInterval().
◆ IsVisible()
override bool IsVisible |
( |
| ) |
|
|
inlineprivate |
◆ MouseEnter()
◆ MouseEnterGhostSlot()
◆ MouseLeave()
◆ MouseLeaveGhostSlot()
◆ OnIconDrag()
References GetGame(), ItemManager::GetInstance(), CGame::GetInventoryItemSize(), ItemManager::GetLeftDropzone(), GetPlayer(), ItemManager::GetRightDropzone(), ItemManager::HideDropzones(), m_ColWidget, m_CursorWidget, m_IsDragged, m_Item, m_ItemPreview, m_Obj, m_Parent, ItemManager::SetDraggedItem(), ItemPreviewWidget::SetForceFlipEnable(), ItemManager::SetIsDragging(), and y.
◆ OnIconDrop()
◆ Refresh()
override void Refresh |
( |
| ) |
|
|
inlineprivate |
◆ RefreshMuzzleIcon()
void RefreshMuzzleIcon |
( |
| ) |
|
|
inlineprivate |
◆ SetActive()
override void SetActive |
( |
bool |
active | ) |
|
|
inlineprivate |
◆ SetContainer()
◆ SetItemPreview()
◆ SetItemSize()
◆ SetLayoutName()
override void SetLayoutName |
( |
| ) |
|
|
inlineprivate |
◆ SetQuantity()
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 SetSlotDesc |
( |
string |
text | ) |
|
|
inlineprivate |
◆ SetSlotDisplayName()
void SetSlotDisplayName |
( |
string |
text | ) |
|
|
inlineprivate |
◆ SetSlotID()
void SetSlotID |
( |
int |
slot_ID | ) |
|
|
inlineprivate |
◆ SetSlotParent()
◆ SetTemperature()
◆ UpdateFlip()
void UpdateFlip |
( |
bool |
flipped | ) |
|
|
inlineprivate |
◆ UpdateInterval()
override void UpdateInterval |
( |
| ) |
|
|
inlineprivate |
References m_HasItemSize, m_HasQuantity, m_HasTemperature, m_IsWeapon, m_Item, RefreshMuzzleIcon(), SetItemSize(), SetQuantity(), and SetTemperature().
Referenced by VicinitySlotsContainer::ShowItemsInContainers(), Attachments::UpdateInterval(), AttachmentCategoriesContainer::UpdateInterval(), and PlayerContainer::UpdateInterval().
◆ m_AmmoIcon
protected ImageWidget m_AmmoIcon |
|
private |
◆ m_AmmoIcons
protected ref array<ImageWidget> m_AmmoIcons |
|
private |
◆ m_ColorWidget
protected Widget m_ColorWidget |
|
private |
◆ m_ColWidget
◆ m_Container
◆ m_CurrQuantity
protected float m_CurrQuantity = -1 |
|
private |
◆ m_CursorWidget
protected Widget m_CursorWidget |
|
private |
◆ m_EmptySelectedPanel
protected Widget m_EmptySelectedPanel |
|
private |
◆ m_GhostSlot
protected ImageWidget m_GhostSlot |
|
private |
◆ m_HasItemSize
protected bool m_HasItemSize = false |
|
private |
◆ m_HasQuantity
protected bool m_HasQuantity = false |
|
private |
◆ m_HasTemperature
protected bool m_HasTemperature = false |
|
private |
◆ m_IsDragged
protected bool m_IsDragged = false |
|
private |
◆ m_IsMagazine
protected bool m_IsMagazine = false |
|
private |
◆ m_IsWeapon
protected bool m_IsWeapon = false |
|
private |
◆ m_Item
◆ m_ItemPreview
◆ m_ItemSizePanel
protected Widget m_ItemSizePanel |
|
private |
◆ m_ItemSizeWidget
◆ m_MicromanagedPanel
protected Widget m_MicromanagedPanel |
|
private |
◆ m_MountedWidget
protected Widget m_MountedWidget |
|
private |
◆ m_NormalHeight
protected int m_NormalHeight |
|
staticprivate |
◆ m_NormalWidth
protected int m_NormalWidth |
|
staticprivate |
◆ m_Obj
Referenced by CheckHasItemSize(), CheckIsMagazine(), CheckIsWeapon(), ClearRemainSelected(), GetEntity(), GetObject(), Init(), OnIconDrag(), SetItemPreview(), SetItemSize(), SetTemperature(), SlotsIcon(), and ~SlotsIcon().
◆ m_OutOfReachWidget
protected Widget m_OutOfReachWidget |
|
private |
◆ m_PanelWidget
protected Widget m_PanelWidget |
|
private |
◆ m_QuantityItem
◆ m_QuantityPanel
protected Widget m_QuantityPanel |
|
private |
◆ m_QuantityProgress
protected ProgressBarWidget m_QuantityProgress |
|
private |
◆ m_QuantityStack
protected Widget m_QuantityStack |
|
private |
◆ m_RadialIcon
◆ m_RadialIconClosed
protected Widget m_RadialIconClosed |
|
private |
◆ m_RadialIconPanel
protected Widget m_RadialIconPanel |
|
private |
◆ m_Reserved
protected bool m_Reserved |
|
private |
◆ m_ReservedWidget
protected Widget m_ReservedWidget |
|
private |
◆ m_SelectedPanel
protected Widget m_SelectedPanel |
|
private |
◆ m_SlotDesc
◆ m_SlotDisplayName
protected string m_SlotDisplayName |
|
private |
◆ m_SlotID
◆ m_SlotParent
The documentation for this class was generated from the following file:
- P:/scripts/5_Mission/GUI/InventoryNew/ContainedItems/SlotsIcon.c