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

Private Member Functions

void Icon (LayoutHolder parent, bool hands_icon=false)
 
void ~Icon ()
 
Widget GetSelectedWidget ()
 
Widget GetCursorWidget ()
 
Widget GetMicromanagedPanel ()
 
bool IsDragged ()
 
override void SetActive (bool active)
 
override void SetParentWidget ()
 
int GetRelevantInventoryAction (int relevantActions)
 
void RefreshQuickbar ()
 
void DoubleClick (Widget w, int x, int y, int button)
 
void DraggingOverSwap (Widget w, int x, int y, Widget receiver)
 
void DraggingOverCombine (Widget w, int x, int y, Widget receiver)
 
bool MouseEnter (Widget w, int x, int y)
 
bool MouseLeave (Widget w, Widget s, int x, int y)
 
void DraggingOver (Widget w, int x, int y, Widget receiver)
 
void OnPerformCombination (int combinationFlags)
 
bool PerformCombination (EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, InventoryLocation ilSwapDst=null)
 
void UpdateFrameColor (EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, Widget w, InventoryLocation il=null)
 
void ShowActionMenuCombine (EntityAI entity1, EntityAI entity2, int combinationFlags, Widget w, bool color_test)
 
void OnPerformRecipe (int id)
 
void Combine (Widget w, int x, int y, Widget receiver)
 
bool CombineItems (EntityAI entity1, EntityAI entity2)
 
bool FlagAction (EntityAI entity1, EntityAI entity2, int combinationFlags)
 
void MouseClick (Widget w, int x, int y, int button)
 
void DropReceivedFromMain (Widget w, int x, int y, Widget receiver)
 
void Swap (Widget w, int x, int y, Widget receiver)
 
void ToRefresh (Icon icon, Icon icon2)
 
override void SetLayoutName ()
 
void SetSize (int x, int y)
 
void SetPos (int x, int y)
 
int GetCargoPos ()
 
void SetCargoPos (int x)
 
void DestroyWhiteBackground ()
 
void CreateWhiteBackground ()
 
void OnDraggingOverBackground (Widget w, int x, int y, Widget reciever)
 
void DropReceivedFromBackground (Widget w, int x, int y, Widget reciever)
 
void RevertToOriginalFlip ()
 
override void Refresh ()
 
void SetTemperature ()
 
void RefreshIconPos ()
 
void FullScreen ()
 
void RefreshPos (int row, int column)
 
Object GetObject ()
 
void RefreshMuzzleIcon ()
 
void SetQuantity ()
 
void SetSort (int index)
 
int GetSort ()
 
void SetItemPreviewEx (bool refresh=true)
 
void SetItemPreview ()
 
void SetItemSizeEx (bool refresh=true)
 
void SetItemSize ()
 
void UpdateFlip (bool flipped)
 
void InitLock (EntityAI parent, EntityAI obj, int x_pos, int y_pos, bool flip)
 
void InitEx (EntityAI obj, bool refresh=true)
 
void Init (EntityAI obj)
 
void CheckIsWeapon ()
 
void CheckIsMagazineEx (bool refresh=true)
 
void CheckIsMagazine ()
 
void CheckHasTemperature ()
 
void CheckHasQuantityEx (bool refresh=true)
 
void CheckHasQuantity ()
 
void SetPosX (int x)
 
void SetPosY (int y)
 
void SetSizeX (int x)
 
void SetSizeY (int y)
 
int GetPosX ()
 
int GetPosY ()
 
int GetSizeX ()
 
int GetSizeY ()
 
void SetPosEx (bool refresh=true)
 
void SetPos ()
 
void SetSize ()
 
override void UpdateInterval ()
 

Private Attributes

protected int m_SizeX
 
protected int m_SizeY
 
protected int m_PosX
 
protected int m_PosY
 
protected EntityAI m_Lock
 
protected bool m_IsWeapon = false
 
protected bool m_IsMagazine = false
 
protected bool m_HasTemperature = false
 
protected bool m_HasQuantity = false
 
protected float m_CurrQuantity = -1
 
protected EntityAI m_Obj
 
protected ItemBase m_Item
 
protected bool m_HandsIcon
 
protected int m_CargoPos
 
protected bool m_IsDragged
 
protected bool m_PreviousFlipOrientation
 
const int NUMBER_OF_TIMERS = 2
 
protected ItemPreviewWidget m_ItemPreview
 
protected Widget m_ColorWidget
 
protected Widget m_SelectedPanel
 
protected Widget m_MicromanagedPanel
 
protected Widget m_CursorWidget
 
protected Widget m_QuantityPanel
 
protected TextWidget m_QuantityItem
 
protected ProgressBarWidget m_QuantityProgress
 
protected Widget m_QuantityStack
 
protected Widget m_ItemSizePanel
 
protected TextWidget m_ItemSizeWidget
 
protected ref array< ImageWidget > m_AmmoIcons
 
protected ImageWidget m_AmmoTypeIcon
 

Constructor & Destructor Documentation

◆ Icon()

◆ ~Icon()

Member Function Documentation

◆ CheckHasQuantity()

void CheckHasQuantity ( )
inlineprivate

References CheckHasQuantityEx().

◆ CheckHasQuantityEx()

void CheckHasQuantityEx ( bool  refresh = true)
inlineprivate

◆ CheckHasTemperature()

void CheckHasTemperature ( )
inlineprivate

References m_HasTemperature, and m_Item.

Referenced by InitEx().

◆ CheckIsMagazine()

void CheckIsMagazine ( )
inlineprivate

References CheckIsMagazineEx().

◆ CheckIsMagazineEx()

void CheckIsMagazineEx ( bool  refresh = true)
inlineprivate

References m_AmmoTypeIcon, m_IsMagazine, and m_Obj.

Referenced by CheckIsMagazine(), and InitEx().

◆ CheckIsWeapon()

void CheckIsWeapon ( )
inlineprivate

◆ Combine()

◆ CombineItems()

◆ CreateWhiteBackground()

◆ DestroyWhiteBackground()

◆ DoubleClick()

◆ DraggingOver()

◆ DraggingOverCombine()

◆ DraggingOverSwap()

◆ DropReceivedFromBackground()

void DropReceivedFromBackground ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
inlineprivate

References m_Parent, m_PosX, m_PosY, and Pos().

◆ DropReceivedFromMain()

◆ FlagAction()

◆ FullScreen()

void FullScreen ( )
inlineprivate

◆ GetCargoPos()

int GetCargoPos ( )
inlineprivate

References m_CargoPos.

◆ GetCursorWidget()

Widget GetCursorWidget ( )
inlineprivate

◆ GetMicromanagedPanel()

Widget GetMicromanagedPanel ( )
inlineprivate

◆ GetObject()

◆ GetPosX()

int GetPosX ( )
inlineprivate

References m_PosX.

Referenced by SetPosEx().

◆ GetPosY()

int GetPosY ( )
inlineprivate

References m_PosY.

Referenced by SetPosEx().

◆ GetRelevantInventoryAction()

int GetRelevantInventoryAction ( int  relevantActions)
inlineprivate

◆ GetSelectedWidget()

Widget GetSelectedWidget ( )
inlineprivate

References m_SelectedPanel.

◆ GetSizeX()

int GetSizeX ( )
inlineprivate

References m_SizeX.

Referenced by CargoContainerRow::GetIconSize().

◆ GetSizeY()

int GetSizeY ( )
inlineprivate

References m_SizeY.

Referenced by CargoContainerRow::GetIconSize().

◆ GetSort()

int GetSort ( )
inlineprivate

◆ Init()

void Init ( EntityAI  obj)
inlineprivate

References InitEx().

Referenced by HandsPreview::CreateNewIcon().

◆ InitEx()

◆ InitLock()

◆ IsDragged()

bool IsDragged ( )
inlineprivate

References m_IsDragged.

Referenced by HandsPreview::UpdateInterval().

◆ MouseClick()

◆ MouseEnter()

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

References m_CursorWidget, m_IsDragged, m_Obj, x, and y.

◆ MouseLeave()

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

References m_CursorWidget, and m_IsDragged.

◆ OnDraggingOverBackground()

◆ OnPerformCombination()

◆ OnPerformRecipe()

void OnPerformRecipe ( int  id)
inlineprivate

◆ PerformCombination()

◆ Refresh()

◆ RefreshIconPos()

void RefreshIconPos ( )
inlineprivate

References Refresh().

Referenced by RefreshPos().

◆ RefreshMuzzleIcon()

void RefreshMuzzleIcon ( )
inlineprivate

◆ RefreshPos()

void RefreshPos ( int  row,
int  column 
)
inlineprivate

◆ RefreshQuickbar()

void RefreshQuickbar ( )
inlineprivate

References GetGame(), InventoryMenu(), and MENU_INVENTORY.

Referenced by DoubleClick().

◆ RevertToOriginalFlip()

void RevertToOriginalFlip ( )
inlineprivate

◆ SetActive()

◆ SetCargoPos()

void SetCargoPos ( int  x)
inlineprivate

References m_CargoPos, and x.

Referenced by Container::InitIconEx(), and Container::MovedInCargo().

◆ SetItemPreview()

void SetItemPreview ( )
inlineprivate

References SetItemPreviewEx().

Referenced by InitEx(), InitLock(), and ~Icon().

◆ SetItemPreviewEx()

void SetItemPreviewEx ( bool  refresh = true)
inlineprivate

◆ SetItemSize()

void SetItemSize ( )
inlineprivate

References SetItemSizeEx().

◆ SetItemSizeEx()

void SetItemSizeEx ( bool  refresh = true)
inlineprivate

◆ SetLayoutName()

◆ SetParentWidget()

override void SetParentWidget ( )
inlineprivate

References m_Parent, and m_ParentWidget.

◆ SetPos() [1/2]

void SetPos ( )
inlineprivate

References SetPosEx().

Referenced by InitLock(), Refresh(), and RefreshPos().

◆ SetPos() [2/2]

void SetPos ( int  x,
int  y 
)
inlineprivate

References m_PosX, m_PosY, x, and y.

◆ SetPosEx()

void SetPosEx ( bool  refresh = true)
inlineprivate

◆ SetPosX()

void SetPosX ( int  x)
inlineprivate

References m_PosX, and x.

Referenced by Container::InitIconEx().

◆ SetPosY()

void SetPosY ( int  y)
inlineprivate

References m_PosY, and y.

Referenced by Container::InitIconEx().

◆ SetQuantity()

◆ SetSize() [1/2]

void SetSize ( )
inlineprivate

◆ SetSize() [2/2]

void SetSize ( int  x,
int  y 
)
inlineprivate

References m_SizeX, m_SizeY, x, and y.

Referenced by Container::InitIconEx(), and Hud::SetCursorIconScale().

◆ SetSizeX()

void SetSizeX ( int  x)
inlineprivate

References m_SizeX, and x.

◆ SetSizeY()

void SetSizeY ( int  y)
inlineprivate

References m_SizeY, and y.

◆ SetSort()

void SetSort ( int  index)
inlineprivate

◆ SetTemperature()

◆ ShowActionMenuCombine()

◆ Swap()

◆ ToRefresh()

void ToRefresh ( Icon  icon,
Icon  icon2 
)
inlineprivate

References m_Parent.

◆ UpdateFlip()

void UpdateFlip ( bool  flipped)
inlineprivate

◆ UpdateFrameColor()

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprivate

Field Documentation

◆ m_AmmoIcons

protected ref array<ImageWidget> m_AmmoIcons
private

Referenced by CheckIsWeapon(), and RefreshMuzzleIcon().

◆ m_AmmoTypeIcon

protected ImageWidget m_AmmoTypeIcon
private

Referenced by CheckIsMagazineEx(), and Icon().

◆ m_CargoPos

protected int m_CargoPos
private

Referenced by GetCargoPos(), SetCargoPos(), and SetPosEx().

◆ m_ColorWidget

protected Widget m_ColorWidget
private

◆ m_CurrQuantity

protected float m_CurrQuantity = -1
private

Referenced by SetQuantity().

◆ m_CursorWidget

◆ m_HandsIcon

◆ m_HasQuantity

protected bool m_HasQuantity = false
private

◆ m_HasTemperature

protected bool m_HasTemperature = false
private

◆ m_IsDragged

◆ m_IsMagazine

protected bool m_IsMagazine = false
private

Referenced by CheckIsMagazineEx().

◆ m_IsWeapon

protected bool m_IsWeapon = false
private

◆ m_Item

◆ m_ItemPreview

◆ m_ItemSizePanel

protected Widget m_ItemSizePanel
private

Referenced by Icon(), and SetItemSizeEx().

◆ m_ItemSizeWidget

protected TextWidget m_ItemSizeWidget
private

Referenced by Icon(), and SetItemSizeEx().

◆ m_Lock

protected EntityAI m_Lock
private

◆ m_MicromanagedPanel

protected Widget m_MicromanagedPanel
private

Referenced by GetMicromanagedPanel(), and Icon().

◆ m_Obj

◆ m_PosX

◆ m_PosY

◆ m_PreviousFlipOrientation

protected bool m_PreviousFlipOrientation
private

◆ m_QuantityItem

protected TextWidget m_QuantityItem
private

Referenced by Icon(), and SetQuantity().

◆ m_QuantityPanel

protected Widget m_QuantityPanel
private

Referenced by CheckHasQuantityEx(), and Icon().

◆ m_QuantityProgress

protected ProgressBarWidget m_QuantityProgress
private

Referenced by Icon(), and SetQuantity().

◆ m_QuantityStack

protected Widget m_QuantityStack
private

Referenced by Icon(), and SetQuantity().

◆ m_SelectedPanel

protected Widget m_SelectedPanel
private

Referenced by GetSelectedWidget(), Icon(), and SetActive().

◆ m_SizeX

protected int m_SizeX
private

◆ m_SizeY

protected int m_SizeY
private

◆ NUMBER_OF_TIMERS

const int NUMBER_OF_TIMERS = 2
private

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