class ItemManagerSource
Constructors 1
void ItemManager(Widget root)Referenced by Inventory.Inventory()
Constants 1
protected const float TOOLTIP_DELAY = 0.25in seconds
Members 30
private static ref ItemManager m_Instanceprotected bool m_IsDraggingprotected EntityAI m_HoveredItemprotected bool m_SlotInfoShownprotected EntityAI m_DraggedItemprotected Icon m_DraggedIconprotected ref Widget m_TooltipWidgetprotected ref Widget m_TooltipSlotWidgetReferenced by CalculateTooltipSlotPosition(), HideTooltipSlot(), ItemManager()
Show 2 more
, PrepareSlotsTooltip(), and ShowTooltipSlot()protected ref Widget m_TooltipCategoryWidgetprotected ItemPreviewWidget m_ItemPreviewWidgetprotected Widget m_RootWidgetReferenced by GetCenterDropzone(), GetLeftDropzone(), GetLeftSlotsScroller()
Show 3 more
, GetRightDropzone(), ItemManager(), and PrepareTooltip()Referenced by ClearDefaultOpenStates(), GetDefaultOpenState(), ItemManager()
Show 2 more
, SerializeDefaultOpenStates(), and SetDefaultOpenState()Referenced by ClearDefaultHeaderOpenStates(), GetDefaultHeaderOpenState(), ItemManager()
Show 2 more
, SerializeDefaultHeaderOpenStates(), and SetDefaultHeaderOpenState()protected int m_HandsDefaultOpenStateprotected ref Timer m_ToolTipTimerprotected ref Timer m_TooltipSlotTimerprotected EntityAI m_SelectedItemprotected Container m_SelectedContainerprotected Widget m_SelectedWidgetprotected SlotsIcon m_SelectedIconprotected LayoutHolder m_SelectedBaseIconReferenced by SetSelectedItemEx()
protected HandsPreview m_HandsPreviewprotected bool m_ItemMicromanagmentModeprotected Widget m_LeftDropzoneReferenced by GetLeftDropzone()
protected Widget m_CenterDropzoneReferenced by GetCenterDropzone()
protected Widget m_RightDropzoneReferenced by GetRightDropzone()
protected int m_TooltipPosXprotected int m_TooltipPosYprotected Widget m_TooltipSourceWidgetstored here for tooltip position updates
protected ScrollWidget m_LeftSlotsScrollerReferenced by GetLeftSlotsScroller()
Methods 55
void SetItemMicromanagmentMode(bool item_micromanagment_mode)Referenced by Inventory.DisableMicromanagement(), Inventory.EnableMicromanagement(), InventoryMenu.OnHide()
Show 1 more
, InventoryMenu.OnShow()bool IsMicromanagmentMode()References m_ItemMicromanagmentMode
Referenced by Container.CanAddToQuickbarEx(), Container.CanCombineEx(), Container.CanDropEx()
Show 13 more
, Container.CanEquipEx(), Container.CanOpenCloseContainer(), Container.CanSplitEx(), Container.CanSwapOrTakeToHandsEx(), Container.CanTakeToInventoryEx(), HandsContainer.OnSelectButton(), HandsPreview.Select(), Inventory.DisableMicromanagement(), Inventory.EnableMicromanagement(), Inventory.MoveFocusByArea(), Inventory.UpdateConsoleToolbar(), Inventory.UpdateInterval(), and VicinityContainer.UpdateInterval()HandsPreview GetHandsPreview()References m_HandsPreview
Referenced by Attachments.Combine(), PlayerContainer.Combine(), and VicinitySlotsContainer.Combine()
void SetHandsPreview(HandsPreview hansd_preview)References m_HandsPreview
Referenced by HandsContainer.HandsContainer()
EntityAI GetSelectedItem()References m_SelectedItem
Container GetSelectedContainer()References m_SelectedContainer
Referenced by CargoContainer.Select()
Widget GetSelectedWidget()References m_SelectedWidget
SlotsIcon GetSelectedIcon()References m_SelectedIcon
void SetSelectedItemEx(EntityAI selected_item, Container selected_container, LayoutHolder selected_icon)Referenced by Attachments.Select(), Attachments.SelectItem(), CargoContainer.SelectItem()
Show 11 more
, HandsPreview.SelectItem(), Icon.Icon(), Inventory.DisableMicromanagement(), Inventory.OnHide(), InventoryMenu.OnHide(), InventoryMenu.OnShow(), PlayerContainer.Select(), SlotsContainer.SelectItem(), VicinityContainer.UpdateInterval(), VicinitySlotsContainer.Select(), and ZombieContainer.Select()void ClearDefaultOpenStates()Referenced by DeserializeDefaultOpenStates()
void ClearDefaultHeaderOpenStates()Referenced by DeserializeDefaultHeaderOpenStates()
void SetDefaultOpenStateHands(bool is_opened)References CGame.SaveProfile(), CGame.SetProfileString(), int.ToString()
Show 1 more
, m_HandsDefaultOpenStatebool GetDefaultOpenStateHands()void SerializeDefaultHeaderOpenStates()References map.Count(), array.Count(), map.GetElement()
Show 4 more
, map.GetKey(), array.Insert(), CGame.SetProfileStringList(), and m_DefautHeaderOpenStatesReferenced by Inventory.Serialize()
void DeserializeDefaultHeaderOpenStates()References ClearDefaultHeaderOpenStates(), array.Count(), array.Get()
Show 5 more
, array.Get(), CGame.GetProfileStringList(), SetDefaultHeaderOpenState(), string.Split(), and string.ToInt()Referenced by Inventory.Deserialize()
void SerializeDefaultOpenStates()References map.Count(), array.Count(), map.GetElement()
Show 4 more
, map.GetKey(), array.Insert(), CGame.SetProfileStringList(), and m_DefautOpenStatesReferenced by Inventory.Serialize()
void DeserializeDefaultOpenStates()References ClearDefaultOpenStates(), array.Count(), array.Get()
Show 5 more
, array.Get(), CGame.GetProfileStringList(), SetDefaultOpenState(), string.Split(), and string.ToInt()Referenced by Inventory.Deserialize()
Referenced by CollapsibleContainer.LoadDefaultState()
static ItemManager GetInstance()References m_Instance
void HideDropzones()References Widget.ClearFlags(), GetCenterDropzone(), Widget.GetFlags()
Show 6 more
, GetLeftDropzone(), GetLeftSlotsScroller(), GetRightDropzone(), Widget.SetAlpha(), Widget.SetAlpha(), and Widget.SetAlpha()Referenced by AttachmentCategoriesRow.DraggingOverHeader(), AttachmentCategoriesRow.OnDropReceivedFromHeader(), ClosableHeader.OnDropHeader()
Show 35 more
, ContainerWithCargo.DraggingOver(), ContainerWithCargo.DraggingOverGrid(), ContainerWithCargo.DropReceived(), ContainerWithCargoAndAttachments.DraggingOverHeader(), ContainerWithCargoAndAttachments.DropReceived(), ContainerWithCargoAndAttachments.TakeAsAttachment(), HandsArea.DraggingOverHandsPanel(), HandsContainer.DraggingOverGrid(), HandsContainer.DraggingOverHeader(), HandsContainer.DropReceived(), HandsContainer.TakeAsAttachment(), Icon.~Icon(), Icon.Combine(), Icon.DestroyWhiteBackground(), Icon.DraggingOver(), Icon.DraggingOverSwap(), Icon.DropReceivedFromMain(), Icon.OnDraggingOverBackground(), Icon.ShowActionMenuCombine(), Icon.Swap(), Icon.UpdateFrameColor(), Inventory.DraggingOverCenterPanel(), Inventory.DraggingOverHandsPanel(), InventoryQuickbar.OnItemDrop(), ShowSourceDropzone(), PlayerContainer.DraggingOver(), PlayerContainer.DraggingOverHeader(), PlayerContainer.OnDropReceivedFromGhostArea(), SlotsIcon.~SlotsIcon(), SlotsIcon.OnIconDrag(), SlotsIcon.OnIconDrop(), VicinityContainer.DraggingOverHeader(), VicinityContainer.DraggingOverIcon(), VicinityContainer.OnDropReceivedFromHeader(), and VicinityContainer.OnDropReceivedFromIcon()void ShowSourceDropzone(EntityAI item)Referenced by AttachmentCategoriesContainer.DraggingOverHeader(), AttachmentCategoriesRow.DraggingOverHeader(), ContainerWithCargo.DraggingOver()
Show 11 more
, ContainerWithCargo.DraggingOverGrid(), ContainerWithCargoAndAttachments.DraggingOverHeader(), HandsContainer.DraggingOverGrid(), HandsContainer.DraggingOverHeader(), Icon.DraggingOver(), Icon.DraggingOverSwap(), Icon.ShowActionMenuCombine(), Icon.UpdateFrameColor(), Inventory.DraggingOverCenterPanel(), VicinityContainer.DraggingOverHeader(), and VicinityContainer.DraggingOverIcon()Widget GetLeftDropzone()Referenced by AttachmentCategoriesRow.DraggingOverHeader(), ContainerWithCargo.DraggingOver(), ContainerWithCargo.DraggingOverGrid()
Show 9 more
, ContainerWithCargoAndAttachments.DraggingOverGrid(), ContainerWithCargoAndAttachments.DraggingOverHeader(), HandsContainer.DraggingOverHeader(), Icon.OnDraggingOverBackground(), HideDropzones(), ShowSourceDropzone(), SlotsIcon.OnIconDrag(), VicinityContainer.DraggingOverHeader(), and VicinityContainer.DraggingOverIcon()Widget GetRightDropzone()References Widget.FindAnyWidget(), Widget.FindAnyWidget(), m_RightDropzone
Show 1 more
, m_RootWidgetWidget GetCenterDropzone()References Widget.FindAnyWidget(), Widget.FindAnyWidget(), m_CenterDropzone
Show 1 more
, m_RootWidgetvoid SetDraggedItem(EntityAI dragged_item)References m_DraggedItem
EntityAI GetDraggedItem()References m_DraggedItem
void SetDraggedIcon(Icon dragged_icon)References m_DraggedIcon
void SetIsDragging(bool is_dragging)Referenced by AttachmentCategoriesRow.OnDropReceivedFromHeader(), ClosableHeader.OnDragHeader(), ClosableHeader.OnDropHeader()
Show 17 more
, ContainerWithCargo.DropReceived(), ContainerWithCargoAndAttachments.DropReceived(), ContainerWithCargoAndAttachments.TakeAsAttachment(), HandsContainer.DropReceived(), HandsContainer.TakeAsAttachment(), Icon.~Icon(), Icon.Combine(), Icon.CreateWhiteBackground(), Icon.DestroyWhiteBackground(), Icon.DropReceivedFromMain(), Icon.Swap(), PlayerContainer.OnDropReceivedFromGhostArea(), SlotsIcon.~SlotsIcon(), SlotsIcon.OnIconDrag(), SlotsIcon.OnIconDrop(), VicinityContainer.OnDropReceivedFromHeader(), and VicinityContainer.OnDropReceivedFromIcon()bool IsDragging()References m_IsDragging
Referenced by HandsPreview.UpdateInterval(), IconsContainer.UpdateItemsTemperature(), PrepareTooltip()
Show 1 more
, PlayerContainer.ToggleWidget()void HideTooltip()References HideTooltipSlot(), Widget.Show(), m_HoveredItem
Show 2 more
, m_ToolTipTimer, and m_TooltipWidgetReferenced by InventoryMenu.OnHide(), PrepareSlotsTooltip(), PrepareTooltip()
Show 1 more
, LayoutHolder.HideOwnedTooltip()void HideTooltipSlot()Referenced by ActionTargetsCursor.SetItemHealth(), BoatHud.UpdateEngineIcon(), and CarHud.RefreshVehicleHud()
Referenced by ActionTargetsCursor.SetItemHealth(), BoatHud.UpdateEngineIcon(), and CarHud.RefreshVehicleHud()
References Colors.COLOR_BADLY_DAMAGED, Colors.COLOR_DAMAGED, Colors.COLOR_PRISTINE
Show 2 more
, Colors.COLOR_RUINED, and Colors.COLOR_WORNReferenced by SlotsIcon.SetTemperature()
References EntityAI.CanHaveTemperature(), Widget.FindAnyWidget(), ObjectTemperatureState.GetStateData()
Referenced by Icon.SetTemperature()
References Class.Cast(), Widget.FindAnyWidget(), Widget.FindAnyWidget()
Show 22 more
, CGame.GetInput(), GetMousePos(), Widget.GetScreenPos(), GetScreenSize(), Widget.GetScreenSize(), EntityAI.GetViewIndex(), HideTooltip(), IsDragging(), Input.IsEnabledMouseAndKeyboardEvenOnServer(), Class.IsInherited(), Timer.Run(), ItemPreviewWidget.SetItem(), Widget.SetPos(), ItemPreviewWidget.SetView(), new Timer(), InspectMenuNew.UpdateItemInfo(), m_HoveredItem, m_ItemPreviewWidget, m_RootWidget, m_ToolTipTimer, m_TooltipWidget, and TOOLTIP_DELAYReferenced by LayoutHolder.PrepareOwnedTooltip()
position is currentlycalculated from the owning 'm_TooltipSourceWidget' directly
References HideTooltip(), Timer.Run(), new Timer()
Show 5 more
, InspectMenuNew.UpdateSlotInfo(), m_SlotInfoShown, m_TooltipSlotTimer, m_TooltipSlotWidget, and TOOLTIP_DELAYReferenced by LayoutHolder.PrepareOwnedSlotsTooltip()
Referenced by UpdateTooltipSlotPosition()
void UpdateTooltipSlotPosition()Referenced by ShowTooltipSlot()
void SetTooltipWidget(Widget w)References m_TooltipSourceWidget
Referenced by LayoutHolder.PrepareOwnedSlotsTooltip()
void ShowTooltip()void ShowTooltipSlot()References Widget.SetPos(), Widget.Show(), UpdateTooltipSlotPosition()
Show 3 more
, m_TooltipPosX, m_TooltipPosY, and m_TooltipSlotWidgetstatic int GetChosenCombinationFlag(EntityAI selectedEntity, EntityAI targetEntity, int relevantFlags, out InventoryLocation dst = null)References GameInventory.CanAddAttachment(), GameInventory.CanAddEntityInCargo(), EntityAI.CanBeCombined()
Show 27 more
, GameInventory.CanForceSwapEntitiesEx(), ActionManagerClient.CanPerformActionFromInventory(), ActionManagerClient.CanSetActionFromInventory(), GameInventory.CanSwapEntitiesEx(), WeaponManager.CanSwapMagazine(), Class.Cast(), Class.Cast(), Class.Cast(), Class.Cast(), Class.Cast(), PlayerBase.GetActionManager(), GameInventory.GetFlipCargo(), EntityAI.GetHierarchyParent(), EntityAI.GetInventory(), EntityAI.GetInventory(), CGame.GetPlayer(), PlayerBase.GetWeaponManager(), GameInventory.HasEntityInInventory(), InventoryCombinationFlags.ADD_AS_ATTACHMENT, InventoryCombinationFlags.ADD_AS_CARGO, InventoryCombinationFlags.COMBINE_QUANTITY2, InventoryCombinationFlags.FSWAP, InventoryCombinationFlags.NONE, InventoryCombinationFlags.PERFORM_ACTION, InventoryCombinationFlags.SET_ACTION, InventoryCombinationFlags.SWAP, and InventoryCombinationFlags.SWAP_MAGAZINEReferenced by Icon.Combine(), Icon.DraggingOver(), Icon.DraggingOverCombine()
Show 3 more
, Icon.DraggingOverSwap(), Icon.DropReceivedFromMain(), and Icon.Swap()References GameInventory.CanAddEntityInCargo(), ItemBase.CanBeCombined(), ActionManagerClient.CanPerformActionFromInventory()
Show 23 more
, ActionManagerClient.CanSetActionFromInventory(), Class.Cast(), Class.Cast(), Class.CastTo(), GameInventory.FindAttachment(), GameInventory.FindFreeLocationFor(), PlayerBase.GetActionManager(), Man.GetEntityInHands(), GameInventory.GetFlipCargo(), EntityAI.GetInventory(), EntityAI.GetInventory(), CGame.GetPlayer(), InventoryLocation.GetSlot(), GameInventory.HasEntityInInventory(), new InventoryLocation(), Class.IsInherited(), Class.IsInherited(), InventoryLocation.IsValid(), InventoryCombinationFlags.ADD_AS_ATTACHMENT, InventoryCombinationFlags.ADD_AS_CARGO, InventoryCombinationFlags.COMBINE_QUANTITY2, InventoryCombinationFlags.PERFORM_ACTION, and InventoryCombinationFlags.SET_ACTIONReferences Class.Cast(), Class.Cast(), Class.Cast()
Show 3 more
, CGame.GetPlayer(), GetPlugin(), and PluginRecipesManager.GetValidRecipes()ScrollWidget GetLeftSlotsScroller()References Class.Cast(), Widget.FindAnyWidget(), Widget.FindAnyWidget()