PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
SlotsIcon Class Reference

Private 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 ()
 
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)
 

Static Private Member Functions

static int GetNormalWidth ()
 
static int GetNormalHeight ()
 

Private Attributes

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

Static Private Attributes

static protected int m_NormalWidth
 
static protected int m_NormalHeight
 

Constructor & Destructor Documentation

◆ SlotsIcon()

◆ ~SlotsIcon()

Member Function Documentation

◆ CheckHasItemSize()

void CheckHasItemSize ( )
inlineprivate

References CGame::ConfigIsExisting(), GetGame(), m_HasItemSize, and m_Obj.

Referenced by Init().

◆ CheckHasQuantity()

void CheckHasQuantity ( )
inlineprivate

◆ CheckHasTemperature()

void CheckHasTemperature ( )
inlineprivate

References m_HasTemperature, and m_Item.

Referenced by Init().

◆ CheckIsMagazine()

void CheckIsMagazine ( )
inlineprivate

References m_IsMagazine, and m_Obj.

Referenced by Init().

◆ CheckIsWeapon()

void CheckIsWeapon ( )
inlineprivate

References m_AmmoIcon, m_AmmoIcons, m_IsWeapon, and m_Obj.

Referenced by Init().

◆ Clear()

◆ ClearRemainSelected()

◆ GetAmmoIcon()

ImageWidget GetAmmoIcon ( )
inlineprivate

References m_AmmoIcon.

◆ GetColorWidget()

Widget GetColorWidget ( )
inlineprivate

References m_ColorWidget.

◆ GetColWidget()

Widget GetColWidget ( )
inlineprivate

References m_ColWidget.

◆ GetContainer()

◆ GetCursorWidget()

Widget GetCursorWidget ( )
inlineprivate

◆ GetEmptySelectedPanel()

Widget GetEmptySelectedPanel ( )
inlineprivate

References m_EmptySelectedPanel.

◆ GetEntity()

◆ GetGhostSlot()

◆ GetItem()

ItemBase GetItem ( )
inlineprivate

References m_Item.

◆ GetItemSizePanel()

Widget GetItemSizePanel ( )
inlineprivate

References m_ItemSizePanel.

◆ GetItemSizeWidget()

TextWidget GetItemSizeWidget ( )
inlineprivate

References m_ItemSizeWidget.

◆ GetMicromanagedPanel()

Widget GetMicromanagedPanel ( )
inlineprivate

◆ GetMountedWidget()

Widget GetMountedWidget ( )
inlineprivate

◆ GetNormalHeight()

static int GetNormalHeight ( )
inlinestaticprivate

◆ GetNormalWidth()

static int GetNormalWidth ( )
inlinestaticprivate

◆ GetObject()

◆ GetOutOfReachWidget()

Widget GetOutOfReachWidget ( )
inlineprivate

◆ GetPanelWidget()

◆ GetQuantityItem()

TextWidget GetQuantityItem ( )
inlineprivate

References m_QuantityItem.

◆ GetQuantityPanel()

Widget GetQuantityPanel ( )
inlineprivate

References m_QuantityPanel.

◆ GetQuantityProgress()

ProgressBarWidget GetQuantityProgress ( )
inlineprivate

References m_QuantityProgress.

◆ GetQuantityStack()

Widget GetQuantityStack ( )
inlineprivate

References m_QuantityStack.

◆ GetRadialIcon()

◆ GetRadialIconClosed()

◆ GetRadialIconPanel()

◆ GetRender()

◆ GetReservedWidget()

Widget GetReservedWidget ( )
inlineprivate

References m_ReservedWidget.

◆ GetSelectedPanel()

◆ GetSlotDesc()

string GetSlotDesc ( )
inlineprivate

References m_SlotDesc.

Referenced by SlotsContainer::UpdateIcon().

◆ GetSlotDisplayName()

string GetSlotDisplayName ( )
inlineprivate

References m_SlotDisplayName.

Referenced by SlotsContainer::UpdateIcon().

◆ GetSlotID()

◆ GetSlotParent()

◆ Init()

◆ IsFocused()

bool IsFocused ( )
inlineprivate

References GetCursorWidget().

Referenced by Init().

◆ IsOutOfReach()

◆ IsReserved()

◆ IsVisible()

◆ MouseEnter()

bool MouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

◆ MouseEnterGhostSlot()

bool MouseEnterGhostSlot ( Widget  w,
int  x,
int  y 
)
inlineprivate

◆ MouseLeave()

bool MouseLeave ( Widget  w,
Widget  s,
int  x,
int  y 
)
inlineprivate

◆ MouseLeaveGhostSlot()

bool MouseLeaveGhostSlot ( Widget  w,
Widget  s,
int  x,
int  y 
)
inlineprivate

◆ OnIconDrag()

◆ OnIconDrop()

◆ Refresh()

◆ RefreshMuzzleIcon()

void RefreshMuzzleIcon ( )
inlineprivate

◆ SetActive()

override void SetActive ( bool  active)
inlineprivate

◆ SetContainer()

◆ SetItemPreview()

◆ SetItemSize()

void SetItemSize ( )
inlineprivate

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprivate

◆ SetQuantity()

◆ SetSlotDesc()

void SetSlotDesc ( string  text)
inlineprivate

References m_SlotDesc.

◆ SetSlotDisplayName()

◆ SetSlotID()

◆ SetSlotParent()

void SetSlotParent ( EntityAI  parent)
inlineprivate

References m_SlotParent.

Referenced by PlayerContainer::SetPlayer().

◆ SetTemperature()

void SetTemperature ( )
inlineprivate

◆ UpdateFlip()

void UpdateFlip ( bool  flipped)
inlineprivate

References GetPanelWidget(), and m_Reserved.

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

◆ UpdateInterval()

Field Documentation

◆ m_AmmoIcon

protected ImageWidget m_AmmoIcon
private

◆ m_AmmoIcons

protected ref array<ImageWidget> m_AmmoIcons
private

Referenced by CheckIsWeapon(), and RefreshMuzzleIcon().

◆ m_ColorWidget

protected Widget m_ColorWidget
private

◆ m_ColWidget

protected Widget m_ColWidget
private

◆ m_Container

protected Container m_Container
private

◆ m_CurrQuantity

protected float m_CurrQuantity = -1
private

Referenced by ClearRemainSelected(), and SetQuantity().

◆ 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

protected TextWidget m_ItemSizeWidget
private

◆ m_MicromanagedPanel

protected Widget m_MicromanagedPanel
private

Referenced by GetMicromanagedPanel(), and SlotsIcon().

◆ m_MountedWidget

protected Widget m_MountedWidget
private

◆ m_NormalHeight

protected int m_NormalHeight
staticprivate

Referenced by GetNormalHeight(), and SlotsIcon().

◆ m_NormalWidth

protected int m_NormalWidth
staticprivate

Referenced by GetNormalWidth(), and SlotsIcon().

◆ m_Obj

◆ m_OutOfReachWidget

protected Widget m_OutOfReachWidget
private

◆ m_PanelWidget

◆ m_QuantityItem

protected TextWidget m_QuantityItem
private

◆ m_QuantityPanel

protected Widget m_QuantityPanel
private

◆ m_QuantityProgress

protected ProgressBarWidget m_QuantityProgress
private

◆ m_QuantityStack

protected Widget m_QuantityStack
private

◆ m_RadialIcon

protected Widget m_RadialIcon
private

Referenced by GetRadialIcon(), and SlotsIcon().

◆ m_RadialIconClosed

protected Widget m_RadialIconClosed
private

Referenced by GetRadialIconClosed(), and SlotsIcon().

◆ 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

protected string m_SlotDesc
private

◆ m_SlotDisplayName

protected string m_SlotDisplayName
private

◆ m_SlotID

protected int m_SlotID
private

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

◆ m_SlotParent

protected EntityAI m_SlotParent
private

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