DayZ 1.24
Loading...
Searching...
No Matches
ItemManager Class Reference
Collaboration diagram for ItemManager:
[legend]

Protected Member Functions

void ItemManager (Widget root)
 
void SetItemMicromanagmentMode (bool item_micromanagment_mode)
 
bool IsMicromanagmentMode ()
 
HandsPreview GetHandsPreview ()
 
void SetHandsPreview (HandsPreview hansd_preview)
 
EntityAI GetSelectedItem ()
 
Container GetSelectedContainer ()
 
Widget GetSelectedWidget ()
 
SlotsIcon GetSelectedIcon ()
 
void SetSelectedItem (EntityAI selected_item, Container selected_container, Widget selected_widget, SlotsIcon selected_icon)
 
void SetSelectedItemEx (EntityAI selected_item, Container selected_container, LayoutHolder selected_icon)
 
void ClearDefaultOpenStates ()
 
void ClearDefaultHeaderOpenStates ()
 
void SetDefaultOpenState (string type, bool is_opened)
 
void SetDefaultHeaderOpenState (string type, bool is_opened)
 
void SetDefaultOpenStateHands (bool is_opened)
 
bool GetDefaultOpenStateHands ()
 
void SerializeDefaultHeaderOpenStates ()
 
void DeserializeDefaultHeaderOpenStates ()
 
void SerializeDefaultOpenStates ()
 
void DeserializeDefaultOpenStates ()
 
bool GetDefaultOpenState (string type)
 
bool GetDefaultHeaderOpenState (string type)
 
void HideDropzones ()
 
void ShowSourceDropzone (EntityAI item)
 
Widget GetLeftDropzone ()
 
Widget GetRightDropzone ()
 
Widget GetCenterDropzone ()
 
EntityAI GetHoveredItem ()
 
void SetDraggedItem (EntityAI dragged_item)
 
EntityAI GetDraggedItem ()
 
void SetDraggedIcon (Icon dragged_icon)
 
Icon GetDraggedIcon ()
 
void SetIsDragging (bool is_dragging)
 
bool IsDragging ()
 
void HideTooltip ()
 
void HideTooltipSlot ()
 
void SetTemperature (EntityAI item, Widget item_w)
 
void SetIconTemperature (EntityAI item, Widget item_w)
 
void PrepareTooltip (EntityAI item, int x=0, int y=0)
 
void PrepareSlotsTooltip (string name, string desc, int x=0, int y=0)
 position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly
 
void CalculateTooltipSlotPosition (int x=0, int y=0)
 
void UpdateTooltipSlotPosition ()
 
void SetTooltipWidget (Widget w)
 
bool EvaluateContainerDragabilityDefault (EntityAI entity)
 
void SetWidgetDraggable (Widget w, bool draggable)
 
void ShowTooltip ()
 
void ShowTooltipSlot ()
 

Static Protected Member Functions

static ItemManager GetInstance ()
 
static int GetItemHealthColor (int pHealthLevel)
 
static int GetItemHealthColor (EntityAI item, string zone="")
 
static int ColorFromFloat (float fraction)
 
static int GetChosenCombinationFlag (EntityAI selectedEntity, EntityAI targetEntity, int relevantFlags, out InventoryLocation dst=null)
 
static int GetCombinationFlags (EntityAI entity1, EntityAI entity2)
 
static int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
 

Protected Attributes

bool m_IsDragging
 
EntityAI m_HoveredItem
 
bool m_SlotInfoShown
 
EntityAI m_DraggedItem
 
Icon m_DraggedIcon
 
ref Widget m_TooltipWidget
 
ref Widget m_TooltipSlotWidget
 
ref Widget m_TooltipCategoryWidget
 
ItemPreviewWidget m_ItemPreviewWidget
 
Widget m_RootWidget
 
ref map< string, boolm_DefautOpenStates
 
ref map< string, boolm_DefautHeaderOpenStates
 
int m_HandsDefaultOpenState
 
ref Timer m_ToolTipTimer
 
ref Timer m_TooltipSlotTimer
 
EntityAI m_SelectedItem
 
Container m_SelectedContainer
 
Widget m_SelectedWidget
 
SlotsIcon m_SelectedIcon
 
LayoutHolder m_SelectedBaseIcon
 
HandsPreview m_HandsPreview
 
bool m_ItemMicromanagmentMode
 
Widget m_LeftDropzone
 
Widget m_CenterDropzone
 
Widget m_RightDropzone
 
int m_TooltipPosX
 
int m_TooltipPosY
 
Widget m_TooltipSourceWidget
 
const float TOOLTIP_DELAY = 0.25
 

Static Private Attributes

static ref ItemManager m_Instance
 

Detailed Description

Definition at line 1 of file ItemManager.c.

Constructor & Destructor Documentation

◆ ItemManager()

void ItemManager::ItemManager ( Widget root)
inlineprotected

Definition at line 44 of file ItemManager.c.

45 {
46 m_Instance = this;
50 m_SlotInfoShown = false;
51
52#ifdef PLATFORM_CONSOLE
53 m_TooltipWidget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_tooltip_xbox.layout", root);
54 m_TooltipSlotWidget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_tooltip_slot_xbox.layout", root);
55#else
56 m_TooltipWidget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_tooltip.layout", root);
57 m_TooltipSlotWidget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_tooltip_slot.layout", root);
58#endif
59 m_TooltipWidget.Show(false);
60 m_TooltipSlotWidget.Show(false);
61 }
static ref ItemManager m_Instance
Definition ItemManager.c:3
ref map< string, bool > m_DefautHeaderOpenStates
Definition ItemManager.c:15
ref map< string, bool > m_DefautOpenStates
Definition ItemManager.c:14
ref Widget m_TooltipSlotWidget
Definition ItemManager.c:10
ref Widget m_TooltipWidget
Definition ItemManager.c:9
bool m_SlotInfoShown
Definition ItemManager.c:6
Widget m_RootWidget
Definition ItemManager.c:13
proto native CGame GetGame()

References GetGame(), m_DefautHeaderOpenStates, m_DefautOpenStates, m_Instance, m_RootWidget, m_SlotInfoShown, m_TooltipSlotWidget, and m_TooltipWidget.

Member Function Documentation

◆ CalculateTooltipSlotPosition()

void ItemManager::CalculateTooltipSlotPosition ( int x = 0,
int y = 0 )
inlineprotected

Definition at line 562 of file ItemManager.c.

563 {
564 int screen_w, screen_h;
565 float w, h;
567 //m_TooltipSlotWidget.GetScreenSize(w,h);
568 m_TooltipSlotWidget.GetSize(w, h);
571 //minimal edge distance adjustments..
572 screen_w -= 10;
573 screen_h -= 10;
574
575#ifndef PLATFORM_CONSOLE
576 x += 5;
577 y += slot_normal_h + 5;
578#else
579 x += 5;
580 y += 15;
581#endif
583 while (scrollerWidget)
584 {
586 break;
587 else
588 scrollerWidget = scrollerWidget.GetParent();
589 }
590
591 int rightEdge = x + w;
592 if (rightEdge > screen_w)
593 x = screen_w - w;
594
595 int bottomEdge = y + h;
596 if (scrollerWidget)
597 {
599 scrollerWidget.GetScreenPos(scrollerX, scrollerY);
601
604 {
606 bottomEdge = y + h;
607 }
608 }
609 /*else
610 {
611 ErrorEx("No scroller widget! | m_TooltipSourceWidget: " + m_TooltipSourceWidget);
612 }*/
613
614 if (bottomEdge > screen_h) //should mostly never proc now
615 y = screen_h - h;
616
619 }
Icon x
Icon y
Widget m_TooltipSourceWidget
Definition ItemManager.c:36
int m_TooltipPosX
Definition ItemManager.c:34
int m_TooltipPosY
Definition ItemManager.c:35
static int GetNormalWidth()
Definition SlotsIcon.c:750
static int GetNormalHeight()
Definition SlotsIcon.c:755
proto void GetScreenSize(out int x, out int y)

References SlotsIcon::GetNormalHeight(), SlotsIcon::GetNormalWidth(), GetScreenSize(), m_TooltipPosX, m_TooltipPosY, m_TooltipSlotWidget, m_TooltipSourceWidget, x, and y.

Referenced by UpdateTooltipSlotPosition().

◆ ClearDefaultHeaderOpenStates()

void ItemManager::ClearDefaultHeaderOpenStates ( )
inlineprotected

Definition at line 156 of file ItemManager.c.

157 {
159 }

References m_DefautHeaderOpenStates.

Referenced by DeserializeDefaultHeaderOpenStates().

◆ ClearDefaultOpenStates()

void ItemManager::ClearDefaultOpenStates ( )
inlineprotected

Definition at line 151 of file ItemManager.c.

152 {
153 m_DefautOpenStates.Clear();
154 }

References m_DefautOpenStates.

Referenced by DeserializeDefaultOpenStates().

◆ ColorFromFloat()

static int ItemManager::ColorFromFloat ( float fraction)
inlinestaticprotected

Definition at line 427 of file ItemManager.c.

428 {
429 if (fraction > 1 || fraction < 0)
430 return 0x00FFFFFF;
431 else if (fraction > 0.80)
432 return Colors.COLOR_PRISTINE;
433 else if (fraction > 0.6)
434 return Colors.COLOR_WORN;
435 else if (fraction > 0.4)
436 return Colors.COLOR_DAMAGED;
437 else if (fraction > 0.2)
439 else
440 return Colors.COLOR_RUINED;
441 }
Definition Colors.c:4
const int COLOR_DAMAGED
Definition Colors.c:22
const int COLOR_BADLY_DAMAGED
Definition Colors.c:21
const int COLOR_PRISTINE
Definition Colors.c:24
const int COLOR_WORN
Definition Colors.c:23
const int COLOR_RUINED
Definition Colors.c:20

References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, and Colors::COLOR_WORN.

◆ DeserializeDefaultHeaderOpenStates()

void ItemManager::DeserializeDefaultHeaderOpenStates ( )
inlineprotected

Definition at line 202 of file ItemManager.c.

203 {
205
207 GetGame().GetProfileStringList("defaultHeaderOpenStates", serialized_types);
208
209 for (int i = 0; i < serialized_types.Count(); i++)
210 {
212 serialized_types.Get(i).Split(",", strs);
213 bool is_opened = strs.Get(1).ToInt();
215 }
216 }
void ClearDefaultHeaderOpenStates()
void SetDefaultHeaderOpenState(string type, bool is_opened)
array< string > TStringArray
Definition EnScript.c:666

References ClearDefaultHeaderOpenStates(), GetGame(), and SetDefaultHeaderOpenState().

◆ DeserializeDefaultOpenStates()

void ItemManager::DeserializeDefaultOpenStates ( )
inlineprotected

Definition at line 233 of file ItemManager.c.

234 {
236
238 GetGame().GetProfileStringList("defaultOpenStates", serialized_types);
239
240 for (int i = 0; i < serialized_types.Count(); i++)
241 {
243 serialized_types.Get(i).Split(",", strs);
244 bool is_opened = strs.Get(1).ToInt();
246 }
247 }
void ClearDefaultOpenStates()
void SetDefaultOpenState(string type, bool is_opened)

References ClearDefaultOpenStates(), GetGame(), and SetDefaultOpenState().

◆ EvaluateContainerDragabilityDefault()

bool ItemManager::EvaluateContainerDragabilityDefault ( EntityAI entity)
inlineprotected

Definition at line 633 of file ItemManager.c.

634 {
635 if (!ItemBase.Cast(entity))
636 return false;
637
638 bool draggable;
640 draggable = !player.GetInventory().HasInventoryReservation(entity, null) && !player.IsItemsToDelete();
641 draggable = draggable && entity.CanPutIntoHands(GetGame().GetPlayer());
642 draggable = draggable && entity.GetInventory().CanRemoveEntity();
643
644 return draggable;
645 }
PlayerBase GetPlayer()

References GetGame(), and GetPlayer().

◆ GetCenterDropzone()

Widget ItemManager::GetCenterDropzone ( )
inlineprotected

Definition at line 316 of file ItemManager.c.

317 {
318 if (!m_CenterDropzone)
319 m_CenterDropzone = m_RootWidget.FindAnyWidget("HandsPanel").FindAnyWidget("DropzoneX");
320 return m_CenterDropzone;
321 }
Widget m_CenterDropzone
Definition ItemManager.c:31

References m_CenterDropzone, and m_RootWidget.

Referenced by HideDropzones(), and ShowSourceDropzone().

◆ GetChosenCombinationFlag()

static int ItemManager::GetChosenCombinationFlag ( EntityAI selectedEntity,
EntityAI targetEntity,
int relevantFlags,
out InventoryLocation dst = null )
inlinestaticprotected

Definition at line 671 of file ItemManager.c.

672 {
674
677
680
681 //EntityAI itemInHands = m_player.GetHumanInventory().GetEntityInHands();
682 ActionManagerClient amc = ActionManagerClient.Cast(player.GetActionManager());
683
685 {
686 if (amc.CanPerformActionFromInventory(targetItem, selectedItem))
688 }
689
691 {
692 if (amc.CanSetActionFromInventory(targetItem, selectedItem))
694 }
695
697 {
698 if (targetEntity.CanBeCombined(selectedEntity))
700 }
701
703 {
704 if (targetEntity.GetInventory().CanAddAttachment(selectedEntity))
706 }
707
709 {
710 if (!targetEntity.GetInventory().HasEntityInInventory(selectedEntity) && targetEntity.GetInventory().CanAddEntityInCargo(selectedEntity, selectedEntity.GetInventory().GetFlipCargo()))
712 }
713
715 {
717 Weapon_Base wpn = Weapon_Base.Cast(targetEntity.GetHierarchyParent());
718 if (wpn && mag)
719 {
720 if (player.GetWeaponManager().CanSwapMagazine(wpn, Magazine.Cast(selectedEntity)))
722 }
723 }
724
726 {
729 }
730
732 {
735 }
736
738 }
script counterpart to engine's class Inventory
Definition Inventory.c:79
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
Definition Inventory.c:610
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
Definition Inventory.c:645

References InventoryCombinationFlags::ADD_AS_ATTACHMENT, InventoryCombinationFlags::ADD_AS_CARGO, GameInventory::CanForceSwapEntitiesEx(), GameInventory::CanSwapEntitiesEx(), InventoryCombinationFlags::COMBINE_QUANTITY2, InventoryCombinationFlags::FSWAP, GetGame(), GetPlayer(), InventoryCombinationFlags::NONE, InventoryCombinationFlags::PERFORM_ACTION, InventoryCombinationFlags::SET_ACTION, InventoryCombinationFlags::SWAP, and InventoryCombinationFlags::SWAP_MAGAZINE.

Referenced by Icon::Combine(), Icon::DraggingOver(), Icon::DraggingOverCombine(), Icon::DraggingOverSwap(), Icon::DropReceivedFromMain(), and Icon::Swap().

◆ GetCombinationFlags()

static int ItemManager::GetCombinationFlags ( EntityAI entity1,
EntityAI entity2 )
inlinestaticprotected

Definition at line 740 of file ItemManager.c.

741 {
742 int flags = 0;
744
745 if (!entity1 || !entity2)
746 return flags;
747
748 if (entity1.IsInherited(ItemBase) && entity2.IsInherited(ItemBase))
749 {
751 if (ent1.CanBeCombined(ItemBase.Cast(entity2))) flags = flags | InventoryCombinationFlags.COMBINE_QUANTITY2;
752 }
753
754 if (entity1.GetInventory().CanAddAttachment(entity2))
755 {
756 if (!entity1.IsInherited(ZombieBase) && !entity1.IsInherited(Car) && !entity2.IsInherited(ZombieBase) && !entity2.IsInherited(Car))
758 }
759 if (!entity1.GetInventory().HasEntityInInventory(entity2) && entity1.GetInventory().CanAddEntityInCargo(entity2, entity2.GetInventory().GetFlipCargo())) flags = flags | InventoryCombinationFlags.ADD_AS_CARGO;
760
761 if (entity1 == m_player.GetHumanInventory().GetEntityInHands() || entity2 == m_player.GetHumanInventory().GetEntityInHands())
762 {
764 Class.CastTo(amc, m_player.GetActionManager());
765 if (entity1 == m_player.GetHumanInventory().GetEntityInHands())
766 {
767 if (amc.CanPerformActionFromInventory(ItemBase.Cast(entity1), ItemBase.Cast(entity2)))
769 else if (amc.CanSetActionFromInventory(ItemBase.Cast(entity1), ItemBase.Cast(entity2)))
771 }
772 else
773 {
774 if (amc.CanPerformActionFromInventory(ItemBase.Cast(entity2), ItemBase.Cast(entity1)))
776 else if (amc.CanSetActionFromInventory(ItemBase.Cast(entity2), ItemBase.Cast(entity1)))
778 }
779 }
780 return flags;
781 }
DayZPlayer m_player
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References InventoryCombinationFlags::ADD_AS_ATTACHMENT, InventoryCombinationFlags::ADD_AS_CARGO, Class::CastTo(), InventoryCombinationFlags::COMBINE_QUANTITY2, GetGame(), GetPlayer(), m_player, InventoryCombinationFlags::PERFORM_ACTION, and InventoryCombinationFlags::SET_ACTION.

Referenced by Attachments::CanCombine(), LayoutHolder::CanCombineEx(), and Icon::CombineItems().

◆ GetDefaultHeaderOpenState()

bool ItemManager::GetDefaultHeaderOpenState ( string type)
inlineprotected

Definition at line 257 of file ItemManager.c.

258 {
259 if (m_DefautHeaderOpenStates.Contains(type))
260 return m_DefautHeaderOpenStates.Get(type);
261 else
262 return true;
263 }

References m_DefautHeaderOpenStates.

◆ GetDefaultOpenState()

bool ItemManager::GetDefaultOpenState ( string type)
inlineprotected

Definition at line 249 of file ItemManager.c.

250 {
251 if (m_DefautOpenStates.Contains(type))
252 return m_DefautOpenStates.Get(type);
253 else
254 return true;
255 }

References m_DefautOpenStates.

◆ GetDefaultOpenStateHands()

bool ItemManager::GetDefaultOpenStateHands ( )
inlineprotected

Definition at line 179 of file ItemManager.c.

180 {
181 string value;
182 GetGame().GetProfileString("defaultOpenStateHands", value);
185 }
int m_HandsDefaultOpenState
Definition ItemManager.c:16

References GetGame(), and m_HandsDefaultOpenState.

◆ GetDraggedIcon()

Icon ItemManager::GetDraggedIcon ( )
inlineprotected

Definition at line 343 of file ItemManager.c.

344 {
345 return m_DraggedIcon;
346 }
Icon m_DraggedIcon
Definition ItemManager.c:8

References m_DraggedIcon.

◆ GetDraggedItem()

EntityAI ItemManager::GetDraggedItem ( )
inlineprotected

Definition at line 333 of file ItemManager.c.

334 {
335 return m_DraggedItem;
336 }
EntityAI m_DraggedItem
Definition ItemManager.c:7

References m_DraggedItem.

◆ GetHandsPreview()

HandsPreview ItemManager::GetHandsPreview ( )
inlineprotected

Definition at line 74 of file ItemManager.c.

75 {
76 return m_HandsPreview;
77 }
HandsPreview m_HandsPreview
Definition ItemManager.c:26

References m_HandsPreview.

◆ GetHoveredItem()

EntityAI ItemManager::GetHoveredItem ( )
inlineprotected

Definition at line 323 of file ItemManager.c.

324 {
325 return m_HoveredItem;
326 }
EntityAI m_HoveredItem
Definition ItemManager.c:5

References m_HoveredItem.

◆ GetInstance()

static ItemManager ItemManager::GetInstance ( )
inlinestaticprotected

Definition at line 265 of file ItemManager.c.

266 {
267 return m_Instance;
268 }

References m_Instance.

Referenced by LayoutHolder::CanAddToQuickbarEx(), LayoutHolder::CanCombineEx(), LayoutHolder::CanDropEx(), LayoutHolder::CanEquipEx(), LayoutHolder::CanOpenCloseContainer(), LayoutHolder::CanSplitEx(), LayoutHolder::CanSwapOrTakeToHandsEx(), LayoutHolder::CanTakeToInventoryEx(), SlotsIcon::ClearRemainSelected(), Container::Close(), ClosableContainer::Close(), VicinityContainer::CollapseButtonOnMouseButtonDown(), Attachments::Combine(), PlayerContainer::Combine(), VicinitySlotsContainer::Combine(), Icon::Combine(), Icon::CreateWhiteBackground(), Deserialize(), Icon::DestroyWhiteBackground(), DisableMicromanagement(), Icon::DraggingOver(), ClosableContainer::DraggingOver(), PlayerContainer::DraggingOver(), DraggingOverCenterPanel(), ClosableContainer::DraggingOverGrid(), HandsContainer::DraggingOverGrid(), ClosableContainer::DraggingOverGrid(), HandsArea::DraggingOverHandsPanel(), DraggingOverHandsPanel(), HandsContainer::DraggingOverHeader(), AttachmentCategoriesContainer::DraggingOverHeader(), AttachmentCategoriesRow::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), PlayerContainer::DraggingOverHeader(), VicinityContainer::DraggingOverHeader(), VicinityContainer::DraggingOverIcon(), Icon::DraggingOverSwap(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), ClosableContainer::DropReceived(), Icon::DropReceivedFromMain(), EnableMicromanagement(), ColorManager::GetItemColor(), HandsContainer::HandsContainer(), ScriptedWidgetEventHandler::HideOwnedSlotsTooltip(), ScriptedWidgetEventHandler::HideOwnedTooltip(), Icon::Icon(), SlotsIcon::Init(), Icon::InitLock(), CollapsibleContainer::LoadDefaultState(), VicinitySlotsContainer::MouseButtonDown(), Icon::MouseClick(), AttachmentCategoriesRow::MouseClick(), PlayerContainer::MouseClick(), ZombieContainer::MouseClick(), HandsContainer::MouseClick2(), ClosableContainer::MouseClick2(), MoveFocusByArea(), Icon::OnDraggingOverBackground(), ClosableHeader::OnDragHeader(), ClosableHeader::OnDropHeader(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromIcon(), OnHide(), SlotsIcon::OnIconDrag(), SlotsIcon::OnIconDrop(), InventoryGridController::OnItemDrop(), InventoryGridController::OnItemDropReceived(), HandsContainer::OnSelectButton(), OnShow(), MissionBase::OnUpdate(), Container::Open(), ClosableContainer::Open(), ScriptedWidgetEventHandler::PrepareOwnedSlotsTooltip(), ScriptedWidgetEventHandler::PrepareOwnedTooltip(), AttachmentCategoriesRow::RefreshSlot(), Attachments::Select(), Container::Select(), HandsPreview::Select(), AttachmentCategoriesRow::Select(), PlayerContainer::Select(), VicinitySlotsContainer::Select(), ZombieContainer::Select(), Attachments::SelectItem(), Container::SelectItem(), HandsPreview::SelectItem(), SlotsContainer::SelectItem(), Serialize(), Container::SetOpenState(), Icon::SetTemperature(), SlotsIcon::SetTemperature(), Icon::ShowActionMenuCombine(), VicinitySlotsContainer::ShowItemsInContainers(), Icon::Swap(), HandsContainer::TakeAsAttachment(), ClosableContainer::TakeAsAttachment(), PlayerContainer::ToggleWidget(), UpdateConsoleToolbar(), Icon::UpdateFrameColor(), VicinityContainer::UpdateHeader(), Attachments::UpdateInterval(), HandsPreview::UpdateInterval(), ClosableContainer::UpdateInterval(), UpdateInterval(), IconsContainer::UpdateItemsTemperature(), Icon::~Icon(), and SlotsIcon::~SlotsIcon().

◆ GetItemHealthColor() [1/2]

static int ItemManager::GetItemHealthColor ( EntityAI item,
string zone = "" )
inlinestaticprotected

Definition at line 403 of file ItemManager.c.

404 {
405 if (item)
406 {
407 switch (item.GetHealthLevel(zone))
408 {
409 case -1:
410 break;
412 return Colors.COLOR_PRISTINE;
414 return Colors.COLOR_WORN;
416 return Colors.COLOR_DAMAGED;
420 return Colors.COLOR_RUINED;
421 }
422 }
423
424 return 0x00FFFFFF;
425 }
const int STATE_RUINED
Definition constants.c:757
const int STATE_WORN
Definition constants.c:760
const int STATE_DAMAGED
Definition constants.c:759
const int STATE_BADLY_DAMAGED
Definition constants.c:758
const int STATE_PRISTINE
Definition constants.c:761

References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.

◆ GetItemHealthColor() [2/2]

◆ GetLeftDropzone()

Widget ItemManager::GetLeftDropzone ( )
inlineprotected

Definition at line 301 of file ItemManager.c.

302 {
303 if (!m_LeftDropzone)
304 m_LeftDropzone = m_RootWidget.FindAnyWidget("LeftPanel").FindAnyWidget("DropzoneX");
305
306 return m_LeftDropzone;
307 }
Widget m_LeftDropzone
Definition ItemManager.c:30

References m_LeftDropzone, and m_RootWidget.

Referenced by HideDropzones(), and ShowSourceDropzone().

◆ GetRecipeCount()

static int ItemManager::GetRecipeCount ( bool recipe_anywhere,
EntityAI entity1,
EntityAI entity2 )
inlinestaticprotected

Definition at line 783 of file ItemManager.c.

784 {
785 PluginRecipesManager plugin_recipes_manager = PluginRecipesManager.Cast(GetPlugin(PluginRecipesManager));
786 return plugin_recipes_manager.GetValidRecipes(ItemBase.Cast(entity1), ItemBase.Cast(entity2), NULL, PlayerBase.Cast(GetGame().GetPlayer()));
787 }
PluginBase GetPlugin(typename plugin_type)

References GetGame(), GetPlayer(), and GetPlugin().

◆ GetRightDropzone()

Widget ItemManager::GetRightDropzone ( )
inlineprotected

Definition at line 309 of file ItemManager.c.

310 {
311 if (!m_RightDropzone)
312 m_RightDropzone = m_RootWidget.FindAnyWidget("RightPanel").FindAnyWidget("DropzoneX");
313 return m_RightDropzone;
314 }
Widget m_RightDropzone
Definition ItemManager.c:32

References m_RightDropzone, and m_RootWidget.

Referenced by HideDropzones(), and ShowSourceDropzone().

◆ GetSelectedContainer()

Container ItemManager::GetSelectedContainer ( )
inlineprotected

Definition at line 89 of file ItemManager.c.

90 {
92 }
Container m_SelectedContainer
Definition ItemManager.c:21

References m_SelectedContainer.

◆ GetSelectedIcon()

SlotsIcon ItemManager::GetSelectedIcon ( )
inlineprotected

Definition at line 99 of file ItemManager.c.

100 {
101 return m_SelectedIcon;
102 }
SlotsIcon m_SelectedIcon
Definition ItemManager.c:23

References m_SelectedIcon.

◆ GetSelectedItem()

EntityAI ItemManager::GetSelectedItem ( )
inlineprotected

Definition at line 84 of file ItemManager.c.

85 {
86 return m_SelectedItem;
87 }
EntityAI m_SelectedItem
Definition ItemManager.c:20

References m_SelectedItem.

◆ GetSelectedWidget()

Widget ItemManager::GetSelectedWidget ( )
inlineprotected

Definition at line 94 of file ItemManager.c.

95 {
96 return m_SelectedWidget;
97 }
Widget m_SelectedWidget
Definition ItemManager.c:22

References m_SelectedWidget.

◆ HideDropzones()

void ItemManager::HideDropzones ( )
inlineprotected

Definition at line 270 of file ItemManager.c.

271 {
272 GetRightDropzone().SetAlpha(0);
273 GetLeftDropzone().SetAlpha(0);
274 GetCenterDropzone().SetAlpha(0);
275 }
Widget GetCenterDropzone()
Widget GetLeftDropzone()
Widget GetRightDropzone()

References GetCenterDropzone(), GetLeftDropzone(), and GetRightDropzone().

Referenced by ShowSourceDropzone().

◆ HideTooltip()

void ItemManager::HideTooltip ( )
inlineprotected

Definition at line 363 of file ItemManager.c.

364 {
365 m_TooltipWidget.Show(false);
367 delete m_ToolTipTimer;
368
370 }
void HideTooltipSlot()
ref Timer m_ToolTipTimer
Definition ItemManager.c:17

References HideTooltipSlot(), m_HoveredItem, m_ToolTipTimer, and m_TooltipWidget.

Referenced by PrepareSlotsTooltip(), and PrepareTooltip().

◆ HideTooltipSlot()

void ItemManager::HideTooltipSlot ( )
inlineprotected

Definition at line 372 of file ItemManager.c.

373 {
374 if (m_SlotInfoShown)
375 {
376 m_TooltipSlotWidget.Show(false);
377 m_SlotInfoShown = false;
378 delete m_TooltipSlotTimer;
379 }
380 }
ref Timer m_TooltipSlotTimer
Definition ItemManager.c:18

References m_SlotInfoShown, m_TooltipSlotTimer, and m_TooltipSlotWidget.

Referenced by HideTooltip().

◆ IsDragging()

bool ItemManager::IsDragging ( )
inlineprotected

Definition at line 358 of file ItemManager.c.

359 {
360 return m_IsDragging;
361 }
bool m_IsDragging
Definition ItemManager.c:4

References m_IsDragging.

Referenced by PrepareTooltip().

◆ IsMicromanagmentMode()

bool ItemManager::IsMicromanagmentMode ( )
inlineprotected

Definition at line 69 of file ItemManager.c.

70 {
72 }
bool m_ItemMicromanagmentMode
Definition ItemManager.c:28

References m_ItemMicromanagmentMode.

◆ PrepareSlotsTooltip()

void ItemManager::PrepareSlotsTooltip ( string name,
string desc,
int x = 0,
int y = 0 )
inlineprotected

position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly

Definition at line 547 of file ItemManager.c.

548 {
549 InspectMenuNew.UpdateSlotInfo(m_TooltipSlotWidget, name, desc);
550
551 HideTooltip();
552
553 if (name != "")
554 {
555 m_SlotInfoShown = true;
556 //CalculateTooltipSlotPosition(x,y);
558 m_TooltipSlotTimer.Run(TOOLTIP_DELAY, this, "ShowTooltipSlot");
559 }
560 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
const float TOOLTIP_DELAY
Definition ItemManager.c:39
void HideTooltip()

References HideTooltip(), m_SlotInfoShown, m_TooltipSlotTimer, m_TooltipSlotWidget, name, and TOOLTIP_DELAY.

◆ PrepareTooltip()

void ItemManager::PrepareTooltip ( EntityAI item,
int x = 0,
int y = 0 )
inlineprotected

Definition at line 492 of file ItemManager.c.

493 {
494 if (IsDragging() || !item)
495 return;
496
497 if (item.IsInherited(InventoryItem))
498 {
499 HideTooltip();
500
502 InspectMenuNew.UpdateItemInfo(m_TooltipWidget, item);
503
504 int screen_w, screen_h;
505 float w, h;
507 m_TooltipWidget.GetScreenSize(w, h);
508
509 if (x == -1)//set by icon focusing
510 {
511 x = screen_w / 2 - w / 2;
512 float x1, y1;
513 m_RootWidget.FindAnyWidget("InventoryFrameWidget").GetScreenPos(x1, y1); //allign to the same height
514 y = y1;
515 }
516 else if (x == 0 && y == 0 && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
517 GetMousePos(x, y);
518
519 //minimal edge distance adjustments..
520 screen_w -= 10;
521 screen_h -= 10;
522
523 int rightEdge = x + w;
524 if (rightEdge > screen_w)
525 x = screen_w - w;
526
527 int bottomEdge = y + h;
528 if (bottomEdge > screen_h)
529 y = screen_h - h;
530
531 m_TooltipWidget.SetPos(x, y);
532
533 m_ToolTipTimer = new Timer();
534 m_ToolTipTimer.Run(TOOLTIP_DELAY, this, "ShowTooltip");
535
536 Widget preview_frame = m_TooltipWidget.FindAnyWidget("ItemFrameWidget");
537 if (preview_frame)
538 {
541 m_ItemPreviewWidget.SetView(item.GetViewIndex());
542 }
543 }
544 }
ActionInput GetInput()
Definition ActionBase.c:989
bool IsDragging()
ItemPreviewWidget m_ItemPreviewWidget
Definition ItemManager.c:12
proto native void SetView(int viewIndex)
proto native void SetItem(EntityAI object)
proto void GetMousePos(out int x, out int y)

References GetGame(), GetInput(), GetMousePos(), GetScreenSize(), HideTooltip(), IsDragging(), m_HoveredItem, m_ItemPreviewWidget, m_RootWidget, m_ToolTipTimer, m_TooltipWidget, ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetView(), TOOLTIP_DELAY, x, and y.

◆ SerializeDefaultHeaderOpenStates()

void ItemManager::SerializeDefaultHeaderOpenStates ( )
inlineprotected

Definition at line 187 of file ItemManager.c.

188 {
190
191 for (int i = 0; i < m_DefautHeaderOpenStates.Count(); i++)
192 {
193 int is_opened = m_DefautHeaderOpenStates.GetElement(i); //from bool to int for easier parsing
195 }
196
197 if (serialized_types.Count() > 0)
198 GetGame().SetProfileStringList("defaultHeaderOpenStates", serialized_types);
199 GetGame().SaveProfile();
200 }

References GetGame(), and m_DefautHeaderOpenStates.

◆ SerializeDefaultOpenStates()

void ItemManager::SerializeDefaultOpenStates ( )
inlineprotected

Definition at line 218 of file ItemManager.c.

219 {
221
222 for (int i = 0; i < m_DefautOpenStates.Count(); i++)
223 {
224 int is_opened = m_DefautOpenStates.GetElement(i); //from bool to int for easier parsing
225 serialized_types.Insert(m_DefautOpenStates.GetKey(i) + "," + is_opened);
226 }
227
228 if (serialized_types.Count() > 0)
229 GetGame().SetProfileStringList("defaultOpenStates", serialized_types);
230 GetGame().SaveProfile();
231 }

References GetGame(), and m_DefautOpenStates.

◆ SetDefaultHeaderOpenState()

void ItemManager::SetDefaultHeaderOpenState ( string type,
bool is_opened )
inlineprotected

Definition at line 166 of file ItemManager.c.

167 {
169 }

References m_DefautHeaderOpenStates.

Referenced by DeserializeDefaultHeaderOpenStates().

◆ SetDefaultOpenState()

void ItemManager::SetDefaultOpenState ( string type,
bool is_opened )
inlineprotected

Definition at line 161 of file ItemManager.c.

162 {
163 m_DefautOpenStates.Set(type, is_opened);
164 }

References m_DefautOpenStates.

Referenced by DeserializeDefaultOpenStates().

◆ SetDefaultOpenStateHands()

void ItemManager::SetDefaultOpenStateHands ( bool is_opened)
inlineprotected

Definition at line 171 of file ItemManager.c.

172 {
174 int hands_default_open_state = m_HandsDefaultOpenState; //from bool to int for easier parsing
175 GetGame().SetProfileString("defaultOpenStateHands", hands_default_open_state.ToString());
176 GetGame().SaveProfile();
177 }

References GetGame(), and m_HandsDefaultOpenState.

◆ SetDraggedIcon()

void ItemManager::SetDraggedIcon ( Icon dragged_icon)
inlineprotected

Definition at line 338 of file ItemManager.c.

339 {
341 }

References m_DraggedIcon.

Referenced by SetIsDragging().

◆ SetDraggedItem()

void ItemManager::SetDraggedItem ( EntityAI dragged_item)
inlineprotected

Definition at line 328 of file ItemManager.c.

329 {
331 }

References m_DraggedItem.

Referenced by SetIsDragging().

◆ SetHandsPreview()

void ItemManager::SetHandsPreview ( HandsPreview hansd_preview)
inlineprotected

Definition at line 79 of file ItemManager.c.

80 {
82 }

References m_HandsPreview.

◆ SetIconTemperature()

void ItemManager::SetIconTemperature ( EntityAI item,
Widget item_w )
inlineprotected

Definition at line 472 of file ItemManager.c.

473 {
474 if (item_w)
475 {
476 if (item && item.IsInherited(ItemBase))
477 {
478 int color = ColorManager.GetInstance().GetItemColor(ItemBase.Cast(item));
479
480 if (color)
481 {
482 Widget color_widget = item_w.FindAnyWidget("Color");
483 if (color != -1)
484 color_widget.SetColor(color);
485 else
487 }
488 }
489 }
490 }
static int BASE_COLOR
static ColorManager GetInstance()

References ColorManager::BASE_COLOR, and ColorManager::GetInstance().

◆ SetIsDragging()

void ItemManager::SetIsDragging ( bool is_dragging)
inlineprotected

Definition at line 348 of file ItemManager.c.

349 {
351 if (!is_dragging)
352 {
355 }
356 }
void SetDraggedItem(EntityAI dragged_item)
void SetDraggedIcon(Icon dragged_icon)

References m_IsDragging, SetDraggedIcon(), and SetDraggedItem().

◆ SetItemMicromanagmentMode()

void ItemManager::SetItemMicromanagmentMode ( bool item_micromanagment_mode)
inlineprotected

Definition at line 63 of file ItemManager.c.

64 {
66 Inventory.GetInstance().UpdateConsoleToolbar();
67 }
void Inventory(LayoutHolder parent)
Definition Inventory.c:76

References Inventory(), and m_ItemMicromanagmentMode.

◆ SetSelectedItem()

void ItemManager::SetSelectedItem ( EntityAI selected_item,
Container selected_container,
Widget selected_widget,
SlotsIcon selected_icon )
inlineprotected

◆ SetSelectedItemEx()

void ItemManager::SetSelectedItemEx ( EntityAI selected_item,
Container selected_container,
LayoutHolder selected_icon )
inlineprotected

Definition at line 112 of file ItemManager.c.

113 {
115 Icon icon;
116
119
121 {
124 if (sIcon)
125 sIcon.GetMicromanagedPanel().Show(false);
126 else if (icon)
127 icon.GetMicromanagedPanel().Show(false);
128 }
129
130 if (selected_icon)
131 {
133 icon = Icon.Cast(selected_icon);
134
135 if (sIcon)
136 {
137 m_SelectedWidget = sIcon.GetCursorWidget();
138 sIcon.GetMicromanagedPanel().Show(true);
139 }
140 else if (icon)
141 {
142 m_SelectedWidget = icon.GetCursorWidget();
143 icon.GetMicromanagedPanel().Show(true);
144 }
145 }
146 else
149 }
Definition Icon.c:2
LayoutHolder m_SelectedBaseIcon
Definition ItemManager.c:24

References m_SelectedBaseIcon, m_SelectedContainer, m_SelectedItem, and m_SelectedWidget.

◆ SetTemperature()

void ItemManager::SetTemperature ( EntityAI item,
Widget item_w )
inlineprotected

Definition at line 443 of file ItemManager.c.

444 {
445 if (item_w)
446 {
447 if (true/*show_temperature */)
448 {
449 if (item && item.IsInherited(ItemBase))
450 {
451 int color = ColorManager.GetInstance().GetItemColor(ItemBase.Cast(item)); // !!!!!
452 if (color)
453 {
454 string name = item_w.GetName();
455 name.Replace("Render", "Temperature");
456 Widget temperature_widget = item_w.GetParent().FindAnyWidget(name);
457 if (color != -1)
458 {
459 temperature_widget.Show(true);
460 temperature_widget.SetColor(color);
461 }
462 else
463 temperature_widget.Show(false);
464
465 temperature_widget.SetAlpha(0.3);
466 }
467 }
468 }
469 }
470 }

References ColorManager::GetInstance(), and name.

◆ SetTooltipWidget()

void ItemManager::SetTooltipWidget ( Widget w)
inlineprotected

Definition at line 628 of file ItemManager.c.

629 {
631 }

References m_TooltipSourceWidget.

◆ SetWidgetDraggable()

void ItemManager::SetWidgetDraggable ( Widget w,
bool draggable )
inlineprotected

Definition at line 647 of file ItemManager.c.

648 {
649 if (w)
650 {
651 if (draggable)
652 w.SetFlags(WidgetFlags.DRAGGABLE);
653 else
654 w.ClearFlags(WidgetFlags.DRAGGABLE);
655 }
656 }
WidgetFlags
Definition EnWidgets.c:58

◆ ShowSourceDropzone()

void ItemManager::ShowSourceDropzone ( EntityAI item)
inlineprotected

Definition at line 277 of file ItemManager.c.

278 {
279 EntityAI owner = item.GetHierarchyParent();
281
282 if (item == player)
283 GetRightDropzone().SetAlpha(1);
284 else if (owner && owner != player)
286 else
287 {
289 item.GetInventory().GetCurrentInventoryLocation(inv_loc_src);
290 int loc_type = inv_loc_src.GetType();
292 if (loc_type == InventoryLocationType.GROUND)
293 GetLeftDropzone().SetAlpha(1);
294 else if (loc_type == InventoryLocationType.HANDS)
295 GetCenterDropzone().SetAlpha(1);
296 else
297 GetRightDropzone().SetAlpha(1);
298 }
299 }
InventoryLocationType
types of Inventory Location
InventoryLocation.
void ShowSourceDropzone(EntityAI item)
void HideDropzones()

References GetCenterDropzone(), GetGame(), GetLeftDropzone(), GetPlayer(), GetRightDropzone(), HideDropzones(), and ShowSourceDropzone().

Referenced by ShowSourceDropzone().

◆ ShowTooltip()

void ItemManager::ShowTooltip ( )
inlineprotected

Definition at line 658 of file ItemManager.c.

659 {
661 m_TooltipWidget.Show(true);
662 }

References m_ItemPreviewWidget, and m_TooltipWidget.

◆ ShowTooltipSlot()

void ItemManager::ShowTooltipSlot ( )
inlineprotected

◆ UpdateTooltipSlotPosition()

void ItemManager::UpdateTooltipSlotPosition ( )
inlineprotected

Definition at line 621 of file ItemManager.c.

622 {
623 float x, y;
624 m_TooltipSourceWidget.GetScreenPos(x, y);
626 }
void CalculateTooltipSlotPosition(int x=0, int y=0)

References CalculateTooltipSlotPosition(), m_TooltipSourceWidget, x, and y.

Referenced by ShowTooltipSlot().

Member Data Documentation

◆ m_CenterDropzone

Widget ItemManager::m_CenterDropzone
protected

Definition at line 31 of file ItemManager.c.

Referenced by GetCenterDropzone().

◆ m_DefautHeaderOpenStates

ref map<string, bool> ItemManager::m_DefautHeaderOpenStates
protected

◆ m_DefautOpenStates

ref map<string, bool> ItemManager::m_DefautOpenStates
protected

◆ m_DraggedIcon

Icon ItemManager::m_DraggedIcon
protected

Definition at line 8 of file ItemManager.c.

Referenced by GetDraggedIcon(), and SetDraggedIcon().

◆ m_DraggedItem

EntityAI ItemManager::m_DraggedItem
protected

Definition at line 7 of file ItemManager.c.

Referenced by GetDraggedItem(), and SetDraggedItem().

◆ m_HandsDefaultOpenState

int ItemManager::m_HandsDefaultOpenState
protected

Definition at line 16 of file ItemManager.c.

Referenced by GetDefaultOpenStateHands(), and SetDefaultOpenStateHands().

◆ m_HandsPreview

HandsPreview ItemManager::m_HandsPreview
protected

Definition at line 26 of file ItemManager.c.

Referenced by GetHandsPreview(), and SetHandsPreview().

◆ m_HoveredItem

EntityAI ItemManager::m_HoveredItem
protected

Definition at line 5 of file ItemManager.c.

Referenced by GetHoveredItem(), HideTooltip(), and PrepareTooltip().

◆ m_Instance

ref ItemManager ItemManager::m_Instance
staticprivate

Definition at line 3 of file ItemManager.c.

Referenced by GetInstance(), and ItemManager().

◆ m_IsDragging

bool ItemManager::m_IsDragging
protected

Definition at line 4 of file ItemManager.c.

Referenced by IsDragging(), and SetIsDragging().

◆ m_ItemMicromanagmentMode

bool ItemManager::m_ItemMicromanagmentMode
protected

Definition at line 28 of file ItemManager.c.

Referenced by IsMicromanagmentMode(), and SetItemMicromanagmentMode().

◆ m_ItemPreviewWidget

ItemPreviewWidget ItemManager::m_ItemPreviewWidget
protected

Definition at line 12 of file ItemManager.c.

Referenced by PrepareTooltip(), and ShowTooltip().

◆ m_LeftDropzone

Widget ItemManager::m_LeftDropzone
protected

Definition at line 30 of file ItemManager.c.

Referenced by GetLeftDropzone().

◆ m_RightDropzone

Widget ItemManager::m_RightDropzone
protected

Definition at line 32 of file ItemManager.c.

Referenced by GetRightDropzone().

◆ m_RootWidget

Widget ItemManager::m_RootWidget
protected

◆ m_SelectedBaseIcon

LayoutHolder ItemManager::m_SelectedBaseIcon
protected

Definition at line 24 of file ItemManager.c.

Referenced by SetSelectedItemEx().

◆ m_SelectedContainer

Container ItemManager::m_SelectedContainer
protected

Definition at line 21 of file ItemManager.c.

Referenced by GetSelectedContainer(), SetSelectedItem(), and SetSelectedItemEx().

◆ m_SelectedIcon

SlotsIcon ItemManager::m_SelectedIcon
protected

Definition at line 23 of file ItemManager.c.

Referenced by GetSelectedIcon(), and SetSelectedItem().

◆ m_SelectedItem

EntityAI ItemManager::m_SelectedItem
protected

Definition at line 20 of file ItemManager.c.

Referenced by GetSelectedItem(), SetSelectedItem(), and SetSelectedItemEx().

◆ m_SelectedWidget

Widget ItemManager::m_SelectedWidget
protected

Definition at line 22 of file ItemManager.c.

Referenced by GetSelectedWidget(), SetSelectedItem(), and SetSelectedItemEx().

◆ m_SlotInfoShown

bool ItemManager::m_SlotInfoShown
protected

Definition at line 6 of file ItemManager.c.

Referenced by HideTooltipSlot(), ItemManager(), and PrepareSlotsTooltip().

◆ m_TooltipCategoryWidget

ref Widget ItemManager::m_TooltipCategoryWidget
protected

Definition at line 11 of file ItemManager.c.

◆ m_TooltipPosX

int ItemManager::m_TooltipPosX
protected

Definition at line 34 of file ItemManager.c.

Referenced by CalculateTooltipSlotPosition(), and ShowTooltipSlot().

◆ m_TooltipPosY

int ItemManager::m_TooltipPosY
protected

Definition at line 35 of file ItemManager.c.

Referenced by CalculateTooltipSlotPosition(), and ShowTooltipSlot().

◆ m_TooltipSlotTimer

ref Timer ItemManager::m_TooltipSlotTimer
protected

Definition at line 18 of file ItemManager.c.

Referenced by HideTooltipSlot(), and PrepareSlotsTooltip().

◆ m_TooltipSlotWidget

ref Widget ItemManager::m_TooltipSlotWidget
protected

◆ m_TooltipSourceWidget

Widget ItemManager::m_TooltipSourceWidget
protected

◆ m_ToolTipTimer

ref Timer ItemManager::m_ToolTipTimer
protected

Definition at line 17 of file ItemManager.c.

Referenced by HideTooltip(), and PrepareTooltip().

◆ m_TooltipWidget

ref Widget ItemManager::m_TooltipWidget
protected

Definition at line 9 of file ItemManager.c.

Referenced by HideTooltip(), ItemManager(), PrepareTooltip(), and ShowTooltip().

◆ TOOLTIP_DELAY

const float ItemManager::TOOLTIP_DELAY = 0.25
protected

Definition at line 39 of file ItemManager.c.

Referenced by PrepareSlotsTooltip(), and PrepareTooltip().


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