Dayz Explorer 1.28.160049
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 ()
 
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 ()
 

Protected Attributes

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

Detailed Description

Definition at line 1 of file icon.c.

Constructor & Destructor Documentation

◆ Icon()

void Icon::Icon ( LayoutHolder parent,
bool hands_icon = false )
protected

Definition at line 42 of file icon.c.

◆ ~Icon()

void Icon::~Icon ( )
protected

Definition at line 66 of file icon.c.

Member Function Documentation

◆ CheckHasQuantity()

void Icon::CheckHasQuantity ( )
protected

Definition at line 1641 of file icon.c.

◆ CheckHasQuantityEx()

void Icon::CheckHasQuantityEx ( bool refresh = true)
protected

Definition at line 1630 of file icon.c.

◆ CheckHasTemperature()

void Icon::CheckHasTemperature ( )
protected

Definition at line 1622 of file icon.c.

◆ CheckIsMagazine()

void Icon::CheckIsMagazine ( )
protected

Definition at line 1617 of file icon.c.

◆ CheckIsMagazineEx()

void Icon::CheckIsMagazineEx ( bool refresh = true)
protected

Definition at line 1579 of file icon.c.

◆ CheckIsWeapon()

void Icon::CheckIsWeapon ( )
protected

Definition at line 1505 of file icon.c.

◆ Combine()

void Icon::Combine ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 704 of file icon.c.

◆ CombineItems()

bool Icon::CombineItems ( EntityAI entity1,
EntityAI entity2 )
protected

Definition at line 731 of file icon.c.

◆ CreateWhiteBackground()

void Icon::CreateWhiteBackground ( )
protected

Definition at line 1117 of file icon.c.

◆ DestroyWhiteBackground()

void Icon::DestroyWhiteBackground ( )
protected

Definition at line 1090 of file icon.c.

◆ DoubleClick()

void Icon::DoubleClick ( Widget w,
int x,
int y,
int button )
protected

Definition at line 159 of file icon.c.

◆ DraggingOver()

void Icon::DraggingOver ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 369 of file icon.c.

◆ DraggingOverCombine()

void Icon::DraggingOverCombine ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 315 of file icon.c.

◆ DraggingOverSwap()

void Icon::DraggingOverSwap ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 259 of file icon.c.

◆ DropReceivedFromBackground()

void Icon::DropReceivedFromBackground ( Widget w,
int x,
int y,
Widget reciever )
protected

Definition at line 1182 of file icon.c.

◆ DropReceivedFromMain()

void Icon::DropReceivedFromMain ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 887 of file icon.c.

◆ FlagAction()

bool Icon::FlagAction ( EntityAI entity1,
EntityAI entity2,
int combinationFlags )
protected

Definition at line 737 of file icon.c.

◆ FullScreen()

void Icon::FullScreen ( )
protected

Definition at line 1244 of file icon.c.

◆ GetCargoPos()

int Icon::GetCargoPos ( )
protected

Definition at line 1079 of file icon.c.

◆ GetCursorWidget()

Widget Icon::GetCursorWidget ( )
protected

Definition at line 88 of file icon.c.

◆ GetMicromanagedPanel()

Widget Icon::GetMicromanagedPanel ( )
protected

Definition at line 93 of file icon.c.

◆ GetObject()

Object Icon::GetObject ( )
protected

Definition at line 1266 of file icon.c.

◆ GetPosX()

int Icon::GetPosX ( )
protected

Definition at line 1666 of file icon.c.

◆ GetPosY()

int Icon::GetPosY ( )
protected

Definition at line 1671 of file icon.c.

◆ GetRelevantInventoryAction()

int Icon::GetRelevantInventoryAction ( int relevantActions)
protected

Definition at line 143 of file icon.c.

◆ GetSelectedWidget()

Widget Icon::GetSelectedWidget ( )
protected

Definition at line 83 of file icon.c.

◆ GetSizeX()

int Icon::GetSizeX ( )
protected

Definition at line 1676 of file icon.c.

◆ GetSizeY()

int Icon::GetSizeY ( )
protected

Definition at line 1681 of file icon.c.

◆ GetSort()

int Icon::GetSort ( )
protected

Definition at line 1377 of file icon.c.

◆ Init()

void Icon::Init ( EntityAI obj)
protected

Definition at line 1500 of file icon.c.

◆ InitEx()

void Icon::InitEx ( EntityAI obj,
bool refresh = true )
protected

Definition at line 1447 of file icon.c.

◆ InitLock()

void Icon::InitLock ( EntityAI parent,
EntityAI obj,
int x_pos,
int y_pos,
bool flip )
protected

Definition at line 1426 of file icon.c.

◆ IsDragged()

bool Icon::IsDragged ( )
protected

Definition at line 98 of file icon.c.

◆ MouseClick()

void Icon::MouseClick ( Widget w,
int x,
int y,
int button )
protected

Definition at line 826 of file icon.c.

◆ MouseEnter()

bool Icon::MouseEnter ( Widget w,
int x,
int y )
protected

Definition at line 348 of file icon.c.

◆ MouseLeave()

bool Icon::MouseLeave ( Widget w,
Widget s,
int x,
int y )
protected

Definition at line 359 of file icon.c.

◆ OnDraggingOverBackground()

void Icon::OnDraggingOverBackground ( Widget w,
int x,
int y,
Widget reciever )
protected

Definition at line 1147 of file icon.c.

◆ OnPerformCombination()

void Icon::OnPerformCombination ( int combinationFlags)
protected

Definition at line 454 of file icon.c.

◆ OnPerformRecipe()

void Icon::OnPerformRecipe ( int id)
protected

Definition at line 695 of file icon.c.

◆ PerformCombination()

bool Icon::PerformCombination ( EntityAI selectedEntity,
EntityAI targetEntity,
int combinationFlag,
InventoryLocation ilSwapDst = null )
protected

Definition at line 518 of file icon.c.

◆ Refresh()

override void Icon::Refresh ( )
protected

Definition at line 1216 of file icon.c.

◆ RefreshIconPos()

void Icon::RefreshIconPos ( )
protected

Definition at line 1238 of file icon.c.

◆ RefreshMuzzleIcon()

void Icon::RefreshMuzzleIcon ( )
protected

Definition at line 1271 of file icon.c.

◆ RefreshPos()

void Icon::RefreshPos ( int row,
int column )
protected

Definition at line 1255 of file icon.c.

◆ RefreshQuickbar()

void Icon::RefreshQuickbar ( )
protected

Definition at line 149 of file icon.c.

◆ RevertToOriginalFlip()

void Icon::RevertToOriginalFlip ( )
protected

Definition at line 1199 of file icon.c.

◆ SetActive()

override void Icon::SetActive ( bool active)
protected

Definition at line 103 of file icon.c.

◆ SetCargoPos()

void Icon::SetCargoPos ( int x)
protected

Definition at line 1084 of file icon.c.

◆ SetItemPreview()

void Icon::SetItemPreview ( )
protected

Definition at line 1390 of file icon.c.

◆ SetItemPreviewEx()

void Icon::SetItemPreviewEx ( bool refresh = true)
protected

Definition at line 1382 of file icon.c.

◆ SetItemSize()

void Icon::SetItemSize ( )
protected

Definition at line 1408 of file icon.c.

◆ SetItemSizeEx()

void Icon::SetItemSizeEx ( bool refresh = true)
protected

Definition at line 1395 of file icon.c.

◆ SetLayoutName()

override void Icon::SetLayoutName ( )
protected

Definition at line 1040 of file icon.c.

◆ SetParentWidget()

override void Icon::SetParentWidget ( )
protected

Definition at line 120 of file icon.c.

◆ SetPos() [1/2]

void Icon::SetPos ( )
protected

Definition at line 1720 of file icon.c.

◆ SetPos() [2/2]

void Icon::SetPos ( int x,
int y )
protected

Definition at line 1073 of file icon.c.

◆ SetPosEx()

void Icon::SetPosEx ( bool refresh = true)
protected

Definition at line 1686 of file icon.c.

◆ SetPosX()

void Icon::SetPosX ( int x)
protected

Definition at line 1646 of file icon.c.

◆ SetPosY()

void Icon::SetPosY ( int y)
protected

Definition at line 1651 of file icon.c.

◆ SetQuantity()

void Icon::SetQuantity ( )
protected

Definition at line 1322 of file icon.c.

◆ SetSize() [1/2]

void Icon::SetSize ( )
protected

Definition at line 1725 of file icon.c.

◆ SetSize() [2/2]

void Icon::SetSize ( int x,
int y )
protected

Definition at line 1067 of file icon.c.

◆ SetSizeX()

void Icon::SetSizeX ( int x)
protected

Definition at line 1656 of file icon.c.

◆ SetSizeY()

void Icon::SetSizeY ( int y)
protected

Definition at line 1661 of file icon.c.

◆ SetSort()

void Icon::SetSort ( int index)
protected

Definition at line 1371 of file icon.c.

◆ SetTemperature()

void Icon::SetTemperature ( )
protected

Definition at line 1233 of file icon.c.

◆ ShowActionMenuCombine()

void Icon::ShowActionMenuCombine ( EntityAI entity1,
EntityAI entity2,
int combinationFlags,
Widget w,
bool color_test )
protected

Definition at line 616 of file icon.c.

◆ Swap()

void Icon::Swap ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 976 of file icon.c.

◆ ToRefresh()

void Icon::ToRefresh ( Icon icon,
Icon icon2 )
protected

Definition at line 1034 of file icon.c.

◆ UpdateFlip()

void Icon::UpdateFlip ( bool flipped)
protected

Definition at line 1413 of file icon.c.

◆ UpdateFrameColor()

void Icon::UpdateFrameColor ( EntityAI selectedEntity,
EntityAI targetEntity,
int combinationFlag,
Widget w,
InventoryLocation il = null )
protected

Definition at line 568 of file icon.c.

◆ UpdateInterval()

override void Icon::UpdateInterval ( )
protected

Definition at line 1755 of file icon.c.

Member Data Documentation

◆ m_AmmoIcons

ref array<ImageWidget> Icon::m_AmmoIcons
protected

Definition at line 39 of file icon.c.

◆ m_AmmoTypeIcon

ImageWidget Icon::m_AmmoTypeIcon
protected

Definition at line 40 of file icon.c.

◆ m_CargoPos

int Icon::m_CargoPos
protected

Definition at line 18 of file icon.c.

◆ m_ColorWidget

Widget Icon::m_ColorWidget
protected

Definition at line 26 of file icon.c.

◆ m_CurrQuantity

float Icon::m_CurrQuantity = -1
protected

Definition at line 13 of file icon.c.

◆ m_CursorWidget

Widget Icon::m_CursorWidget
protected

Definition at line 29 of file icon.c.

◆ m_HandsIcon

bool Icon::m_HandsIcon
protected

Definition at line 17 of file icon.c.

◆ m_HasQuantity

bool Icon::m_HasQuantity = false
protected

Definition at line 12 of file icon.c.

◆ m_HasTemperature

bool Icon::m_HasTemperature = false
protected

Definition at line 11 of file icon.c.

◆ m_IsDragged

bool Icon::m_IsDragged
protected

Definition at line 19 of file icon.c.

◆ m_IsMagazine

bool Icon::m_IsMagazine = false
protected

Definition at line 10 of file icon.c.

◆ m_IsWeapon

bool Icon::m_IsWeapon = false
protected

Definition at line 9 of file icon.c.

◆ m_Item

ItemBase Icon::m_Item
protected

Definition at line 16 of file icon.c.

◆ m_ItemPreview

ItemPreviewWidget Icon::m_ItemPreview
protected

Definition at line 24 of file icon.c.

◆ m_ItemSizePanel

Widget Icon::m_ItemSizePanel
protected

Definition at line 36 of file icon.c.

◆ m_ItemSizeWidget

TextWidget Icon::m_ItemSizeWidget
protected

Definition at line 37 of file icon.c.

◆ m_Lock

EntityAI Icon::m_Lock
protected

Definition at line 8 of file icon.c.

◆ m_MicromanagedPanel

Widget Icon::m_MicromanagedPanel
protected

Definition at line 28 of file icon.c.

◆ m_Obj

EntityAI Icon::m_Obj
protected

Definition at line 15 of file icon.c.

◆ m_PosX

int Icon::m_PosX
protected

Definition at line 5 of file icon.c.

◆ m_PosY

int Icon::m_PosY
protected

Definition at line 6 of file icon.c.

◆ m_PreviousFlipOrientation

bool Icon::m_PreviousFlipOrientation
protected

Definition at line 20 of file icon.c.

◆ m_QuantityItem

TextWidget Icon::m_QuantityItem
protected

Definition at line 32 of file icon.c.

◆ m_QuantityPanel

Widget Icon::m_QuantityPanel
protected

Definition at line 31 of file icon.c.

◆ m_QuantityProgress

ProgressBarWidget Icon::m_QuantityProgress
protected

Definition at line 33 of file icon.c.

◆ m_QuantityStack

Widget Icon::m_QuantityStack
protected

Definition at line 34 of file icon.c.

◆ m_SelectedPanel

Widget Icon::m_SelectedPanel
protected

Definition at line 27 of file icon.c.

◆ m_SizeX

int Icon::m_SizeX
protected

Definition at line 3 of file icon.c.

◆ m_SizeY

int Icon::m_SizeY
protected

Definition at line 4 of file icon.c.

◆ NUMBER_OF_TIMERS

const int Icon::NUMBER_OF_TIMERS = 2
protected

Definition at line 22 of file icon.c.


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