Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Icon Class Reference
Inheritance diagram for Icon:
LayoutHolder

Protected Member Functions

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

Protected Attributes

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

Additional Inherited Members

Private Member Functions inherited from LayoutHolder
bool AddItemToQuickbarRadial (EntityAI itemToAssign)
bool CanAddToQuickbarEx (EntityAI focusedEntity)
bool CanCombine ()
bool CanCombineAmmo ()
bool CanCombineEx (EntityAI focusedEntity)
bool CanDrop ()
bool CanDropEx (EntityAI focusedEntity)
bool CanEquip ()
bool CanEquipEx (EntityAI focusedEntity)
bool CanOpenCloseContainer ()
bool CanOpenCloseContainerEx (EntityAI focusedEntity)
bool CanSplit ()
bool CanSplitEx (EntityAI focusedEntity)
bool CanSwapOrTakeToHands ()
bool CanSwapOrTakeToHandsEx (EntityAI focusedEntity)
bool CanTakeToInventory ()
bool CanTakeToInventoryEx (EntityAI focusedEntity)
void CheckHeaderDragability ()
void CheckScrollbarVisibility ()
void CheckScrollbarVisibility (ScrollWidget sw)
void Close ()
bool Combine ()
void Container (LayoutHolder parent)
int Count ()
void DraggingOver (Widget w, int x, int y, Widget receiver)
void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
bool EquipItem ()
void ExpandCollapseContainer ()
LayoutHolder Get (int x)
int GetActiveIndex ()
int GetColumnCount ()
Container GetContainer (int index)
int GetFocusedColumn ()
Container GetFocusedContainer ()
EntityAI GetFocusedContainerEntity ()
float GetFocusedContainerHeight (bool contents=false)
float GetFocusedContainerYPos (bool contents=false)
float GetFocusedContainerYScreenPos (bool contents=false)
EntityAI GetFocusedItem ()
SlotsIcon GetFocusedSlotsIcon ()
Header GetHeader ()
ScrollWidget GetScrollWidget ()
ScrollWidget GetSlotsScrollWidget ()
void HideContent (bool force_hide=false)
void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
bool InspectItem ()
bool IsEmpty ()
bool IsFirstContainerFocused ()
bool IsFirstIndex ()
bool IsItemActive ()
bool IsItemWithQuantityActive ()
bool IsLastContainerFocused ()
bool IsLastIndex ()
bool IsOpened ()
void MoveGridCursor (int direction)
void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
bool OnSelectButton ()
void Open ()
void RecomputeOpenedContainers ()
override void Refresh ()
void Remove (LayoutHolder container)
void ResetFocusedContainer ()
void ScrollToActiveContainer ()
void ScrollToActiveContainer (ScrollWidget sw)
bool Select ()
bool SelectItem ()
override void SetActive (bool active)
void SetActiveIndex (int index)
void SetColumnCount (int count)
void SetDefaultFocus (bool while_micromanagment_mode=false)
override void SetFirstActive ()
void SetFocusedColumn (int column)
void SetFocusedContainer (Container cont)
void SetForceShow (bool value)
void SetHeader (Header header)
override void SetLastActive ()
void SetLastFocus ()
override void SetLayoutName ()
void SetNextActive ()
void SetNextLeftActive ()
void SetNextRightActive ()
void SetOpenForSlotIcon (bool open, SlotsIcon icon=null)
void SetPreviousActive (bool force=false)
void SetSameLevelNextActive ()
void SetSameLevelPreviousActive ()
void SetSlotIcon (SlotsIcon icon)
void ShowContent (bool force_show=false)
bool SplitItem ()
void Toggle ()
bool TransferItem ()
bool TransferItemToVicinity ()
void Unfocus ()
void UnfocusAll ()
void UnfocusGrid ()
void UpdateBodySpacers ()
override void UpdateInterval ()
void UpdateRadialIcon ()
override void UpdateSelectionIcons ()
void UpdateSpacer ()
Private Attributes inherited from LayoutHolder
const int ITEMS_IN_ROW = 8
int m_ActiveIndex = 0
ref array< ref LayoutHolderm_Body
bool m_Closed
int m_ColumnCount
EntityAI m_Entity
int m_FocusedColumn = 0
Container m_FocusedContainer
bool m_ForcedHide
bool m_ForcedShow
bool m_LastIndex
ref array< LayoutHolderm_OpenedContainers
float m_PrevAlpha
SlotsIcon m_SlotIcon
const int SORT_ATTACHMENTS_NEXT_OFFSET = 2
const int SORT_ATTACHMENTS_OWN = 1
const int SORT_CARGO_NEXT_OFFSET = 3
const int SORT_CARGO_OWN = 2

Detailed Description

Definition at line 1 of file icon.c.

Constructor & Destructor Documentation

◆ Icon()

◆ ~Icon()

Member Function Documentation

◆ CheckHasQuantity()

void CheckHasQuantity ( )
inlineprotected

Definition at line 1641 of file icon.c.

References CheckHasQuantityEx().

◆ CheckHasQuantityEx()

void CheckHasQuantityEx ( bool refresh = true)
inlineprotected

◆ CheckHasTemperature()

void CheckHasTemperature ( )
inlineprotected

Definition at line 1622 of file icon.c.

References m_HasTemperature, and m_Item.

Referenced by InitEx().

◆ CheckIsMagazine()

void CheckIsMagazine ( )
inlineprotected

Definition at line 1617 of file icon.c.

References CheckIsMagazineEx().

◆ CheckIsMagazineEx()

void CheckIsMagazineEx ( bool refresh = true)
inlineprotected

Definition at line 1579 of file icon.c.

References m_AmmoTypeIcon, m_IsMagazine, and m_Obj.

Referenced by CheckIsMagazine(), and InitEx().

◆ CheckIsWeapon()

void CheckIsWeapon ( )
inlineprotected

Definition at line 1505 of file icon.c.

References g_Game, m_AmmoIcons, m_IsWeapon, and m_Obj.

Referenced by InitEx().

◆ Combine()

◆ CombineItems()

bool CombineItems ( EntityAI entity1,
EntityAI entity2 )
inlineprotected

◆ CreateWhiteBackground()

◆ DestroyWhiteBackground()

◆ DoubleClick()

◆ DraggingOver()

◆ DraggingOverCombine()

◆ DraggingOverSwap()

◆ DropReceivedFromBackground()

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

Definition at line 1182 of file icon.c.

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

◆ DropReceivedFromMain()

◆ FlagAction()

◆ FullScreen()

void FullScreen ( )
inlineprotected

Definition at line 1244 of file icon.c.

References ARGB(), m_ColorWidget, and m_IsDragged.

Referenced by DestroyWhiteBackground().

◆ GetCargoPos()

int GetCargoPos ( )
inlineprotected

Definition at line 1079 of file icon.c.

References m_CargoPos.

◆ GetCursorWidget()

Widget GetCursorWidget ( )
inlineprotected

Definition at line 88 of file icon.c.

References m_CursorWidget.

Referenced by AttachmentCategoriesRow::DropReceived(), and ItemManager::SetSelectedItemEx().

◆ GetMicromanagedPanel()

Widget GetMicromanagedPanel ( )
inlineprotected

Definition at line 93 of file icon.c.

References m_MicromanagedPanel.

Referenced by ItemManager::SetSelectedItemEx().

◆ GetObject()

◆ GetPosX()

int GetPosX ( )
inlineprotected

Definition at line 1666 of file icon.c.

References m_PosX.

Referenced by SetPosEx().

◆ GetPosY()

int GetPosY ( )
inlineprotected

Definition at line 1671 of file icon.c.

References m_PosY.

Referenced by SetPosEx().

◆ GetRelevantInventoryAction()

int GetRelevantInventoryAction ( int relevantActions)
inlineprotected

Definition at line 143 of file icon.c.

◆ GetSelectedWidget()

Widget GetSelectedWidget ( )
inlineprotected

Definition at line 83 of file icon.c.

References m_SelectedPanel.

◆ GetSizeX()

int GetSizeX ( )
inlineprotected

Definition at line 1676 of file icon.c.

References m_SizeX.

Referenced by CargoContainerRow::GetIconSize().

◆ GetSizeY()

int GetSizeY ( )
inlineprotected

Definition at line 1681 of file icon.c.

References m_SizeY.

Referenced by CargoContainerRow::GetIconSize().

◆ GetSort()

int GetSort ( )
inlineprotected

Definition at line 1377 of file icon.c.

◆ Init()

void Init ( EntityAI obj)
inlineprotected

Definition at line 1500 of file icon.c.

References InitEx().

◆ InitEx()

◆ InitLock()

◆ IsDragged()

bool IsDragged ( )
inlineprotected

Definition at line 98 of file icon.c.

References m_IsDragged.

◆ MouseClick()

◆ MouseEnter()

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

Definition at line 348 of file icon.c.

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

◆ MouseLeave()

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

Definition at line 359 of file icon.c.

References m_CursorWidget, m_IsDragged, x, and y.

◆ OnDraggingOverBackground()

◆ OnPerformCombination()

◆ OnPerformRecipe()

void OnPerformRecipe ( int id)
inlineprotected

Definition at line 695 of file icon.c.

References g_Game, Debug::Log(), and ToString().

◆ PerformCombination()

◆ Refresh()

◆ RefreshIconPos()

void RefreshIconPos ( )
inlineprotected

Definition at line 1238 of file icon.c.

References Refresh().

Referenced by RefreshPos().

◆ RefreshMuzzleIcon()

void RefreshMuzzleIcon ( )
inlineprotected

Definition at line 1271 of file icon.c.

References GetObject(), Weapon_Base::IsShowingChamberedBullet(), and m_AmmoIcons.

Referenced by Refresh(), and UpdateInterval().

◆ RefreshPos()

void RefreshPos ( int row,
int column )
inlineprotected

Definition at line 1255 of file icon.c.

References m_PosX, m_PosY, RefreshIconPos(), and SetPos().

Referenced by AttachmentCategoriesRow::DropReceived().

◆ RefreshQuickbar()

void RefreshQuickbar ( )
inlineprotected

Definition at line 149 of file icon.c.

References g_Game, InventoryMenu(), and MENU_INVENTORY.

Referenced by DoubleClick().

◆ RevertToOriginalFlip()

void RevertToOriginalFlip ( )
inlineprotected

Definition at line 1199 of file icon.c.

References g_Game, m_Item, m_PreviousFlipOrientation, and SetSize().

Referenced by ~Icon(), and DestroyWhiteBackground().

◆ SetActive()

override void SetActive ( bool active)
inlineprotected

◆ SetCargoPos()

void SetCargoPos ( int x)
inlineprotected

Definition at line 1084 of file icon.c.

References m_CargoPos, and x.

Referenced by Container::InitIconEx().

◆ SetItemPreview()

void SetItemPreview ( )
inlineprotected

Definition at line 1390 of file icon.c.

References SetItemPreviewEx().

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

◆ SetItemPreviewEx()

void SetItemPreviewEx ( bool refresh = true)
inlineprotected

Definition at line 1382 of file icon.c.

References m_ItemPreview, and m_Obj.

Referenced by InitEx(), and SetItemPreview().

◆ SetItemSize()

void SetItemSize ( )
inlineprotected

Definition at line 1408 of file icon.c.

References SetItemSizeEx().

◆ SetItemSizeEx()

void SetItemSizeEx ( bool refresh = true)
inlineprotected

Definition at line 1395 of file icon.c.

References g_Game, m_Item, m_ItemSizePanel, and m_ItemSizeWidget.

Referenced by InitEx(), and SetItemSize().

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprotected

◆ SetParentWidget()

override void SetParentWidget ( )
inlineprotected

Definition at line 120 of file icon.c.

References m_Parent, and m_ParentWidget.

◆ SetPos() [1/2]

void SetPos ( )
inlineprotected

Definition at line 1720 of file icon.c.

References SetPosEx().

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

◆ SetPos() [2/2]

void SetPos ( int x,
int y )
inlineprotected

Definition at line 1073 of file icon.c.

References m_PosX, m_PosY, x, and y.

◆ SetPosEx()

void SetPosEx ( bool refresh = true)
inlineprotected

Definition at line 1686 of file icon.c.

References HandsPreview::GetIconSize(), GetPosX(), GetPosY(), m_CargoPos, m_Parent, m_SizeX, and m_SizeY.

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

◆ SetPosX()

void SetPosX ( int x)
inlineprotected

Definition at line 1646 of file icon.c.

References m_PosX, and x.

Referenced by Container::InitIconEx().

◆ SetPosY()

void SetPosY ( int y)
inlineprotected

Definition at line 1651 of file icon.c.

References m_PosY, and y.

Referenced by Container::InitIconEx().

◆ SetQuantity()

◆ SetSize() [1/2]

void SetSize ( )
inlineprotected

Definition at line 1725 of file icon.c.

References HandsPreview::GetIconSize(), m_Parent, m_SizeX, and m_SizeY.

Referenced by CreateWhiteBackground(), RevertToOriginalFlip(), and UpdateFlip().

◆ SetSize() [2/2]

void SetSize ( int x,
int y )
inlineprotected

Definition at line 1067 of file icon.c.

References m_SizeX, m_SizeY, x, and y.

Referenced by Container::InitIconEx().

◆ SetSizeX()

void SetSizeX ( int x)
inlineprotected

Definition at line 1656 of file icon.c.

References m_SizeX, and x.

◆ SetSizeY()

void SetSizeY ( int y)
inlineprotected

Definition at line 1661 of file icon.c.

References m_SizeY, and y.

◆ SetSort()

void SetSort ( int index)
inlineprotected

Definition at line 1371 of file icon.c.

◆ SetTemperature()

void SetTemperature ( )
inlineprotected

◆ ShowActionMenuCombine()

◆ Swap()

◆ ToRefresh()

void ToRefresh ( Icon icon,
Icon icon2 )
inlineprotected

Definition at line 1034 of file icon.c.

References Icon(), and m_Parent.

◆ UpdateFlip()

void UpdateFlip ( bool flipped)
inlineprotected

Definition at line 1413 of file icon.c.

References g_Game, m_Item, and SetSize().

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

◆ UpdateFrameColor()

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

Field Documentation

◆ m_AmmoIcons

ref array<ImageWidget> m_AmmoIcons
protected

Definition at line 39 of file icon.c.

Referenced by CheckIsWeapon(), and RefreshMuzzleIcon().

◆ m_AmmoTypeIcon

ImageWidget m_AmmoTypeIcon
protected

Definition at line 40 of file icon.c.

Referenced by Icon(), and CheckIsMagazineEx().

◆ m_CargoPos

int m_CargoPos
protected

Definition at line 18 of file icon.c.

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

◆ m_ColorWidget

Widget m_ColorWidget
protected

Definition at line 26 of file icon.c.

Referenced by Icon(), CreateWhiteBackground(), DestroyWhiteBackground(), FullScreen(), and InitEx().

◆ m_CurrQuantity

float m_CurrQuantity = -1
protected

Definition at line 13 of file icon.c.

Referenced by SetQuantity().

◆ m_CursorWidget

Widget m_CursorWidget
protected

◆ m_HandsIcon

◆ m_HasQuantity

bool m_HasQuantity = false
protected

Definition at line 12 of file icon.c.

Referenced by CheckHasQuantityEx(), MouseClick(), Refresh(), and UpdateInterval().

◆ m_HasTemperature

bool m_HasTemperature = false
protected

Definition at line 11 of file icon.c.

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

◆ m_IsDragged

bool m_IsDragged
protected

◆ m_IsMagazine

bool m_IsMagazine = false
protected

Definition at line 10 of file icon.c.

Referenced by CheckIsMagazineEx().

◆ m_IsWeapon

bool m_IsWeapon = false
protected

Definition at line 9 of file icon.c.

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

◆ m_Item

◆ m_ItemPreview

ItemPreviewWidget m_ItemPreview
protected

◆ m_ItemSizePanel

Widget m_ItemSizePanel
protected

Definition at line 36 of file icon.c.

Referenced by Icon(), and SetItemSizeEx().

◆ m_ItemSizeWidget

TextWidget m_ItemSizeWidget
protected

Definition at line 37 of file icon.c.

Referenced by Icon(), and SetItemSizeEx().

◆ m_Lock

EntityAI m_Lock
protected

Definition at line 8 of file icon.c.

Referenced by DraggingOver(), DropReceivedFromMain(), InitEx(), InitLock(), and MouseClick().

◆ m_MicromanagedPanel

Widget m_MicromanagedPanel
protected

Definition at line 28 of file icon.c.

Referenced by Icon(), and GetMicromanagedPanel().

◆ m_Obj

◆ m_PosX

int m_PosX
protected

◆ m_PosY

int m_PosY
protected

◆ m_PreviousFlipOrientation

bool m_PreviousFlipOrientation
protected

Definition at line 20 of file icon.c.

Referenced by CreateWhiteBackground(), and RevertToOriginalFlip().

◆ m_QuantityItem

TextWidget m_QuantityItem
protected

Definition at line 32 of file icon.c.

Referenced by Icon(), and SetQuantity().

◆ m_QuantityPanel

Widget m_QuantityPanel
protected

Definition at line 31 of file icon.c.

Referenced by Icon(), and CheckHasQuantityEx().

◆ m_QuantityProgress

ProgressBarWidget m_QuantityProgress
protected

Definition at line 33 of file icon.c.

Referenced by Icon(), and SetQuantity().

◆ m_QuantityStack

Widget m_QuantityStack
protected

Definition at line 34 of file icon.c.

Referenced by Icon(), and SetQuantity().

◆ m_SelectedPanel

Widget m_SelectedPanel
protected

Definition at line 27 of file icon.c.

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

◆ m_SizeX

int m_SizeX
protected

Definition at line 3 of file icon.c.

Referenced by GetSizeX(), SetPosEx(), SetSize(), SetSize(), and SetSizeX().

◆ m_SizeY

int m_SizeY
protected

Definition at line 4 of file icon.c.

Referenced by GetSizeY(), SetPosEx(), SetSize(), SetSize(), and SetSizeY().

◆ NUMBER_OF_TIMERS

const int NUMBER_OF_TIMERS = 2
protected

Definition at line 22 of file icon.c.


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/5_mission/gui/inventorynew/containeditems/icon.c