class ContainerWithCargoSource
ContainerWithCargo › ClosableContainer › Container › LayoutHolder › ScriptedWidgetEventHandler › Managed
All members, including inherited
Constructors 1
void ContainerWithCargo(LayoutHolder parent, int sort = -1)Members 2
protected ref CargoContainer m_CargoGridprotected int m_CargoIndex = -1Methods 31
override bool IsDisplayable()override bool IsEmpty()override bool IsItemActive()override bool CanCombine()override bool CanCombineAmmo()override bool IsItemWithQuantityActive()void LockCargo(bool value)References LayoutHolder.OnHide(), ClosableContainer.SetOpenState(), Container.m_Closed
Show 1 more
, ClosableContainer.m_LockCargooverride void Open()Referenced by AttachmentCategoriesContainer.InitGhostSlots()
override void Close()override bool IsOpened()override void UpdateInterval()References EntityAI.CanDisplayCargo(), ItemManager.GetDraggedItem(), ItemManager.GetInstance()
Show 15 more
, EntityAI.GetInventory(), SlotsIcon.GetRadialIconPanel(), GameInventory.IsInventoryLockedForLockType(), IsOpened(), LayoutHolder.IsVisible(), LockCargo(), Container.RecomputeOpenedContainers(), Container.SetOpenForSlotIcon(), Widget.Show(), CargoContainer.UpdateInterval(), Container.UpdateInterval(), m_CargoGrid, Container.m_Entity, ClosableContainer.m_LockCargo, and Container.m_SlotIconoverride bool IsFirstContainerFocused()override bool IsLastContainerFocused()override void SetDefaultFocus(bool while_micromanagment_mode = false)override void UnfocusAll()override bool SplitItem()override bool EquipItem()override bool TransferItem()override bool TransferItemToVicinity()override bool InspectItem()References EntityAI.CanDisplayCargo(), Class.Cast(), ClosableContainer.CheckHeaderDragability()
Show 16 more
, EntityAI.GetInventory(), LayoutHolder.GetMainWidget(), Container.Insert(), GameInventory.IsInventoryLockedForLockType(), LockCargo(), ClosableContainer.Refresh(), CargoContainer.SetEntity(), Header.SetItemPreview(), ClosableContainer.SetOpenState(), Widget.Update(), CargoContainer.UpdateHeaderText(), m_CargoGrid, m_CargoIndex, ClosableContainer.m_ClosableHeader, Container.m_Entity, and LayoutHolder.m_ParentEntityAI GetEntity()References Container.m_Entity
override EntityAI GetFocusedContainerEntity()References Container.m_Entity
References Class.Cast(), Widget.FindAnyWidget(), ItemPreviewWidget.GetItem()
Show 3 more
, Widget.GetName(), Class.IsInherited(), and string.Replace()Referenced by DraggingOver(), DraggingOverGrid(), DropReceived()
Show 1 more
, OnDropReceivedFromHeader()References PlayerBase.CanManipulateInventory(), GameInventory.CanRemoveEntity(), Class.Cast()
Show 29 more
, Widget.FindAnyWidget(), GameInventory.FindFreeLocationFor(), GameInventory.GetCargoFromIndex(), GameInventory.GetFlipCargo(), CargoBase.GetHeight(), EntityAI.GetHierarchyRootPlayer(), ItemManager.GetInstance(), EntityAI.GetInventory(), EntityAI.GetInventory(), CargoBase.GetItemCount(), GetItemPreviewItem(), ItemManager.GetLeftDropzone(), Widget.GetName(), CGame.GetPlayer(), ItemManager.GetRightDropzone(), CargoBase.GetWidth(), ItemManager.HideDropzones(), InventoryLocation.IsValid(), GameInventory.LocationCanAddEntityEx(), string.Replace(), Widget.SetAlpha(), Widget.SetAlpha(), InventoryLocation.SetCargoAuto(), Widget.SetColor(), ItemManager.ShowSourceDropzone(), ColorManager.GREEN_COLOR, m_CargoIndex, Container.m_Entity, and ColorManager.RED_COLORReferenced by CargoContainerRow.ColumnOnDraggingOver0(), CargoContainerRow.ColumnOnDraggingOver1(), CargoContainerRow.ColumnOnDraggingOver2()
Show 9 more
, CargoContainerRow.ColumnOnDraggingOver3(), CargoContainerRow.ColumnOnDraggingOver4(), CargoContainerRow.ColumnOnDraggingOver5(), CargoContainerRow.ColumnOnDraggingOver6(), CargoContainerRow.ColumnOnDraggingOver7(), CargoContainerRow.ColumnOnDraggingOver8(), CargoContainerRow.ColumnOnDraggingOver9(), CargoContainerRow.DraggingOver(), and Icon.OnDraggingOverBackground()References Class.Cast(), InventoryLocation.CompareLocationOnly(), Widget.FindAnyWidget()
Show 35 more
, Widget.FindAnyWidget(), GameInventory.FindFreeLocationFor(), GameInventory.GetCargoFromIndex(), GameInventory.GetCurrentInventoryLocation(), InventoryLocation.GetFlip(), InventoryLocation.GetFlip(), GameInventory.GetFlipCargo(), CargoBase.GetHeight(), CargoContainer.GetIcon(), ItemManager.GetInstance(), EntityAI.GetInventory(), EntityAI.GetInventory(), CargoBase.GetItemCount(), GetItemPreviewItem(), LayoutHolder.GetMainWidget(), CGame.GetPlayer(), Widget.GetScreenSize(), CargoBase.GetWidth(), CargoContainer.HasItem(), ItemManager.HideDropzones(), InventoryLocation.IsValid(), GameInventory.LocationCanAddEntityEx(), ClosableContainer.Refresh(), Icon.Refresh(), InventoryLocation.SetCargoAuto(), Widget.SetColor(), ItemManager.SetIsDragging(), Widget.SetSize(), Widget.Show(), SplitItemUtils.TakeOrSplitToInventoryLocation(), Widget.Update(), ColorManager.BASE_COLOR, m_CargoGrid, m_CargoIndex, and Container.m_Entityvoid TakeIntoHands(notnull PlayerBase player, notnull EntityAI item)References DraggingOver()
References GameInventory.CanAddEntityInCargo(), PlayerBase.CanManipulateInventory(), GameInventory.CanRemoveEntity()
Show 20 more
, Class.Cast(), GameInventory.GetFlipCargo(), EntityAI.GetHierarchyRootPlayer(), ColorManager.GetInstance(), ItemManager.GetInstance(), EntityAI.GetInventory(), EntityAI.GetInventory(), GetItemPreviewItem(), ItemManager.GetLeftDropzone(), CGame.GetPlayer(), ItemManager.GetRightDropzone(), GameInventory.HasEntityInCargo(), ItemManager.HideDropzones(), Widget.SetAlpha(), Widget.SetAlpha(), ColorManager.SetColor(), ItemManager.ShowSourceDropzone(), ColorManager.GREEN_COLOR, Container.m_Entity, and ColorManager.RED_COLORReferenced by DraggingOverHeader()
References GameInventory.CanAddEntityInCargo(), Class.Cast(), GameInventory.FindFreeLocationFor()
Show 14 more
, GameInventory.GetCurrentInventoryLocation(), GetEntity(), GameInventory.GetFlipCargo(), EntityAI.GetInventory(), EntityAI.GetInventory(), EntityAI.GetInventory(), GetItemPreviewItem(), CGame.GetPlayer(), GameInventory.HasEntityInCargo(), GameInventory.HasEntityInInventory(), new InventoryLocation(), PlayerBase.PredictiveTakeToDst(), SplitItemUtils.TakeOrSplitToInventory(), and Container.m_EntityCargoContainer GetCargo()References m_CargoGrid