class CargoContainerSource
CargoContainer › Container › LayoutHolder › ScriptedWidgetEventHandler › Managed
All members, including inherited
Constructors 2
void CargoContainer(LayoutHolder parent, bool is_attachment = false)References Class.Cast(), Widget.FindAnyWidget(), Widget.FindAnyWidget()
Show 17 more
, Widget.GetScript(), Widget.GetScript(), Widget.Show(), m_CargoContainer, m_CargoHeader, m_FalseHeaderTextWidget, m_FocusedItemPosition, m_Icons, m_IsAttachment, m_ItemsContainer, LayoutHolder.m_MainWidget, m_Resizer1, m_Resizer2, LayoutHolder.m_RootWidget, m_Rows, m_ShowedItemPositions, and m_ShowedLockPositionsvoid ~CargoContainer()Constants 1
protected const int ROWS_NUMBER_XBOX = 5Referenced by SetLastActive(), SetNextActive(), SetNextLeftActive()
Show 3 more
, SetNextRightActive(), SetPreviousActive(), and UpdateRowVisibility()Members 19
protected CargoBase m_CargoReferenced by AddedToCargoEx(), GetCargoCapacity(), GetIcon()
Show 4 more
, GetMaxCargoCapacity(), RemovedFromCargo(), SetEntity(), and UpdateRowVisibility()protected int m_CargoIndex = -1protected int m_FocusedItemPosition = -1protected ref array<ref CargoContainerRow> m_RowsReferenced by AddedToCargoEx(), CargoContainer(), GetIcon()
Show 7 more
, HasItem(), InitGridHeight(), MovedInCargo(), RefreshImpl(), RemovedFromCargo(), SetEntity(), and UpdateInterval()protected float m_IconSizeprotected float m_SpaceSizeprotected bool m_IsAttachmentprotected TextWidget m_FalseHeaderTextWidgetprotected TextWidget m_AlternateFalseHeaderTextWidgetto be set and updated along with the main one
protected Widget m_CargoHeaderprotected Widget m_CargoContainerprotected Widget m_ItemsContainerprotected ref SizeToChild m_Resizer1!PLATFORM_CONSOLEprotected ref SizeToChild m_Resizer2protected int m_AttachmentSlotID = -1Methods 57
int GetCargoIndex()References m_CargoIndex
References map.Contains(), map.Count(), map.Get()
Show 19 more
, InventoryLocation.GetCol(), GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), CargoBase.GetItem(), CargoBase.GetItemCount(), InventoryLocation.GetRow(), new Icon(), InitIconEx(), array.Insert(), map.Insert(), Math.Min(), Refresh(), Icon.SetCargoPos(), SetPos(), UpdateHeaderText(), m_Cargo, m_FocusedItemPosition, m_Icons, and m_ShowedItemPositionsvoid AddedToCargo(EntityAI item)References AddedToCargoEx()
void RemovedFromCargo(EntityAI item)References map.Count(), map.Get(), CargoBase.GetItem()
Show 12 more
, CargoBase.GetItemCount(), Math.Min(), Refresh(), map.Remove(), array.RemoveItem(), Icon.SetCargoPos(), SetPos(), UpdateHeaderText(), m_Cargo, m_FocusedItemPosition, m_Icons, and m_ShowedItemPositionsvoid MovedInCargo(EntityAI item)References map.Contains(), map.Get(), InventoryLocation.GetCol()
Show 9 more
, GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), InventoryLocation.GetRow(), Icon.SetCargoPos(), Icon.SetPosX(), Icon.SetPosY(), UpdateInterval(), UpdateSelection(), and m_ShowedItemPositionsvoid SetLock(EntityAI item)void ReleaseLock(EntityAI item)References map.Contains(), map.Get(), EntityAI.GetOnReleaseLock()
Show 5 more
, ScriptInvoker.Remove(), map.Remove(), array.RemoveItem(), m_Icons, and m_ShowedLockPositionsoverride void SetLayoutName()References AddedToCargoEx(), map.Count(), GameInventory.GetCargoFromIndex()
Show 22 more
, EntityAI.GetInventory(), CargoBase.GetItem(), CargoBase.GetItemCount(), EntityAI.GetOnItemAddedIntoCargo(), EntityAI.GetOnItemMovedInCargo(), EntityAI.GetOnItemRemovedFromCargo(), EntityAI.GetOnReleaseLock(), EntityAI.GetOnSetLock(), InitGridHeight(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), Refresh(), UpdateHeaderText(), m_Cargo, m_CargoIndex, Container.m_Entity, m_ItemsContainer, LayoutHolder.m_MainWidget, and m_ShowedItemPositionsEntityAI GetEntity()References Container.m_Entity
Referenced by AttachmentCategoriesRow.DraggingOverGrid(), and AttachmentCategoriesRow.DropReceived()
void UpdateHeaderText()References EntityAI.CanDisplayCargo(), Class.Cast(), Widget.FindAnyWidget()
Show 23 more
, GetCargoCapacity(), GameInventory.GetCargoFromIndex(), Object.GetDisplayName(), Container.GetHeader(), InventoryMenu.GetHeightMultiplied(), EntityAI.GetInventory(), GetMaxCargoCapacity(), LayoutHolder.GetParent(), Widget.GetScreenSize(), Header.SetName(), Widget.SetSize(), TextWidget.SetText(), TextWidget.SetText(), int.ToString(), string.ToUpper(), Widget.Update(), Widget.Update(), m_AlternateFalseHeaderTextWidget, m_CargoHeader, m_CargoIndex, Container.m_Entity, m_FalseHeaderTextWidget, and m_IsAttachmentvoid InitGridHeight()References new CargoContainerRow(), array.Clear(), map.Clear()
Show 22 more
, Widget.FindAnyWidget(), GameInventory.GetCargoFromIndex(), CargoBase.GetHeight(), EntityAI.GetInventory(), LayoutHolder.GetRootWidget(), Widget.GetScreenSize(), CargoBase.GetWidth(), array.Insert(), SizeToChild.ResizeParentToChild(), SizeToChild.ResizeParentToChild(), CargoContainerRow.SetEntity(), CargoContainerRow.SetNumber(), Widget.SetSort(), CargoContainerRow.SetWidth(), m_CargoIndex, Container.m_Entity, m_IconSize, m_Resizer1, m_Resizer2, m_Rows, m_ShowedItemPositions, and m_SpaceSizeReferenced by SetEntity()
void UpdateSize()References SizeToChild.ResizeParentToChild(), SizeToChild.ResizeParentToChild(), m_Resizer1
Show 1 more
, m_Resizer2float GetIconSize()References m_IconSize
Referenced by Icon.DraggingOver(), Icon.DropReceivedFromMain(), Icon.SetPosEx()
Show 1 more
, Icon.SetSize()float GetSpaceSize()References m_SpaceSize
Referenced by Icon.DraggingOver(), Icon.DropReceivedFromMain(), Icon.SetPosEx()
Show 1 more
, Icon.SetSize()int GetCargoCapacity()References Class.Cast(), CargoBase.GetItemCount(), CargoBase.GetItemSize()
Show 2 more
, CargoList.GetTotalWeight(), and m_CargoReferenced by UpdateHeaderText()
int GetMaxCargoCapacity()References Class.Cast(), CargoBase.GetHeight(), CargoList.GetMaxWeight()
Show 2 more
, CargoBase.GetWidth(), and m_CargoIcon GetFocusedIcon()References GetFocusedIcon(), LayoutHolder.GetRootWidget(), LayoutHolder.GetRootWidget()
Show 2 more
, Widget.GetScreenSize(), and Widget.GetScreenSize()References GetFocusedIcon(), Widget.GetPos(), Widget.GetPos()
Show 2 more
, LayoutHolder.GetRootWidget(), and LayoutHolder.GetRootWidget()References GetFocusedIcon(), LayoutHolder.GetRootWidget(), LayoutHolder.GetRootWidget()
Show 2 more
, Widget.GetScreenPos(), and Widget.GetScreenPos()void UpdateSelection()Referenced by MovedInCargo(), RefreshImpl(), SetActive()
Show 6 more
, SetDefaultFocus(), SetLastActive(), SetNextActive(), SetNextLeftActive(), SetNextRightActive(), and SetPreviousActive()void UpdateRowVisibility(int count)References new CargoContainerRow(), Math.Ceil(), array.Count()
Show 24 more
, Error(), string.Format(), GetMaxCargoCapacity(), Object.GetPosition(), LayoutHolder.GetRootWidget(), Object.GetType(), array.Insert(), Math.Max(), array.Remove(), SizeToChild.ResizeParentToChild(), SizeToChild.ResizeParentToChild(), CargoContainerRow.SetEntity(), CargoContainerRow.SetNumber(), Widget.SetSort(), Class.ToString(), m_Cargo, m_CargoContainer, Container.m_Entity, m_ItemsContainer, LayoutHolder.m_MainWidget, m_Resizer1, m_Resizer2, m_Rows, and ROWS_NUMBER_XBOXReferenced by RefreshImpl()
override void Refresh()References TimerBase.IsRunning(), Timer.Run(), Timer.Stop()
Show 2 more
, new Timer(), and m_ResizeTimervoid RefreshImpl()override void UpdateInterval()References Class.Cast(), GameInventory.GetFlipCargo(), EntityAI.GetInventory()
Show 7 more
, CGame.GetInventoryItemSize(), Icon.InitEx(), Icon.SetCargoPos(), Icon.SetPosEx(), Icon.SetPosX(), Icon.SetPosY(), and Icon.SetSize()override bool TransferItemToVicinity()Referenced by ContainerWithCargo.TransferItemToVicinity()
override void SetDefaultFocus(bool while_micromanagment_mode = false)References Container.SetDefaultFocus(), Unfocus(), UpdateSelection()
Show 1 more
, m_FocusedItemPositionReferenced by Select(), SetLastFocus(), ContainerWithCargo.SetDefaultFocus()
Show 1 more
, HandsContainer.SetFocusToIndex()override void SetLastFocus()References SetDefaultFocus()
override void Unfocus()Referenced by SetDefaultFocus(), SetNextActive(), SetNextLeftActive()
Show 3 more
, SetNextRightActive(), SetPreviousActive(), and ContainerWithCargo.UnfocusAll()override void UnfocusAll()override void SetNextActive()References array.Count(), SetActive(), Unfocus()
Show 4 more
, UpdateSelection(), m_FocusedItemPosition, m_Icons, and ROWS_NUMBER_XBOXoverride void SetPreviousActive(bool force = false)References SetActive(), Unfocus(), UpdateSelection()
Show 2 more
, m_FocusedItemPosition, and ROWS_NUMBER_XBOXoverride void SetNextRightActive()References array.Count(), Unfocus(), UpdateSelection()
Show 3 more
, m_FocusedItemPosition, m_Icons, and ROWS_NUMBER_XBOXoverride void SetNextLeftActive()References array.Count(), Unfocus(), UpdateSelection()
Show 3 more
, m_FocusedItemPosition, m_Icons, and ROWS_NUMBER_XBOXoverride void SetLastActive()References array.Count(), GetFocusedIcon(), Icon.SetActive()
Show 5 more
, Container.SetLastActive(), UpdateSelection(), m_FocusedItemPosition, m_Icons, and ROWS_NUMBER_XBOXoverride void SetActive(bool active)override bool IsItemActive()Referenced by ContainerWithCargo.IsItemActive()
override bool IsItemWithQuantityActive()References ItemBase.CanBeSplit(), Class.Cast(), GetFocusedIcon()
Show 3 more
, Icon.GetObject(), QuantityConversions.HasItemQuantity(), and IsEmpty()Referenced by ContainerWithCargo.IsItemWithQuantityActive()
override bool IsEmpty()int GetRecipeCount(bool recipe_anywhere, ItemBase entity1, ItemBase entity2, PlayerBase player)override bool CanCombineAmmo()References ActionManagerClient.CanPerformActionFromInventory(), ActionManagerClient.CanSetActionFromInventory(), Class.Cast()
Referenced by ContainerWithCargo.CanCombineAmmo()
override bool TransferItem()References Container.CanTakeToInventory(), Class.Cast(), GetFocusedIcon()
Show 3 more
, Icon.GetObject(), CGame.GetPlayer(), and Man.PredictiveTakeEntityToInventory()Referenced by ContainerWithCargo.TransferItem()
override bool SelectItem()override bool Select()References GameInventory.CanAddEntityInCargo(), HumanInventory.CanAddEntityInHands(), GameInventory.CanRemoveEntity()
Show 25 more
, GameInventory.CanRemoveEntity(), GameInventory.CanSwapEntitiesEx(), Man.GetEntityInHands(), GameInventory.GetFlipCargo(), GetFocusedItem(), Man.GetHumanInventory(), ItemManager.GetInstance(), EntityAI.GetInventory(), EntityAI.GetInventory(), EntityAI.GetInventory(), EntityAI.GetInventory(), CGame.GetPlayer(), ItemManager.GetSelectedContainer(), ItemManager.GetSelectedItem(), GameInventory.HasEntityInCargo(), GameInventory.HasEntityInInventory(), Man.PredictiveSwapEntities(), Man.PredictiveTakeEntityToHands(), Man.PredictiveTakeEntityToTargetCargo(), SetActive(), Container.SetActive(), Container.SetActive(), SetDefaultFocus(), Container.m_Entity, and m_FocusedItemPositionoverride bool Combine()References Container.CanCombine(), Class.Cast(), Icon.CombineItems()
Show 4 more
, Man.GetEntityInHands(), GetFocusedIcon(), Icon.GetObject(), and CGame.GetPlayer()void ShowFalseCargoHeader(bool show)void SetAlternateFalseTextHeaderWidget(TextWidget w)void SetAttachmentSlotID(int slotID)References m_AttachmentSlotID
Referenced by ContainerWithCargoAndAttachments.AttachmentAddedEx()
int GetAttachmentSlotID()References m_AttachmentSlotID
Referenced by ContainerWithCargoAndAttachments.RecomputeContainers()
int GetIconsCount()