Arma Reforger Script API
|
UI Script Inventory of type: non-uniform grid storage. More...
Static Public Attributes | |
static ref map< SCR_ArsenalInventorySlotUI, IEntity > | ARSENAL_SLOT_STORAGES = new map<SCR_ArsenalInventorySlotUI, IEntity>() |
const float | STORAGE_NON_HIGHLIGHTED_OPACITY = 0.35 |
const string | ARSENAL_TITLE_LAYOUT = "{E668FD2152D06CF9}UI/layouts/Menus/Inventory/ArsenalInventoryTraverseTitlePanel.layout" |
const string | SUPPLY_TITLE_LAYOUT = "{4CAAD8087F93ABE6}UI/layouts/Menus/Inventory/SupplyInventoryTraverseTitlePanel.layout" |
const string | GENERIC_CONTAINER_PREFAB = "{9F0C54A3740F7FC9}Prefabs/Props/Military/SupplyBox/SupplyPortableContainers/SupplyPortableContainer_01/SupplyContainerGeneric.et" |
const string | STORAGE_TITLE_LAYOUT = "{1E788C30AF7F76E9}UI/layouts/Menus/Inventory/InventoryTraverseTitlePanel.layout" |
const string | SLOT_LAYOUT_1x1_EMPTY = "{B11F8BE49DFB62A2}UI/layouts/Menus/Inventory/Inventory20Slot_1x1_empty.layout" |
Protected Member Functions | |
void | SetSlotAreaType (LoadoutAreaType eSlotType) |
Widget | CreateEmptySlotUI (int iRow, int iCol) |
SCR_InventorySlotUI | CreateSlotUI (InventoryItemComponent pComponent, SCR_ItemAttributeCollection pAttributes=null) |
void | DeleteSlots () |
void | RefreshConsumer () |
void | UpdateStoredResources (float totalResources, float maxResources) |
void | UpdateAvailableResources (float totalResources, bool hasStored) |
void | UpdateContainerResources (notnull Widget targetTitle, notnull BaseInventoryStorageComponent targetStorage) |
void | UpdateOwnedSlots (notnull array< IEntity > pItemsInStorage) |
void | UpdateOwnedSlots (notnull array< BaseInventoryStorageComponent > pItemsInStorage) |
int | FindItem (notnull InventoryItemComponent pInvItem) |
int | FindItemByName (string sItemName, int iActualIndex) |
string | GetNameFromComponent (notnull InventoryItemComponent pComponent) |
int | CreateSlots () |
int | GetIndexFromCoords (int x, int y) |
void | SortSlots () |
void | FillWithEmptySlots () |
void | ShowPage (int iPage, out int slotToFocus=-1) |
void | ClearTraverseTitles () |
void | FillItemsFromStorage (BaseInventoryStorageComponent storage) |
void | FindAndSetTitleName (Widget targetTitle, BaseInventoryStorageComponent targetStorage) |
void | GetAllItems (out notnull array< IEntity > pItemsInStorage, BaseInventoryStorageComponent pStorage=null) |
void | GetAllItemsFromDepth (out notnull array< IEntity > pItemsInStorages, int iDepth=3, int iDepthDefault=0) |
bool | CheckIfAnyItemInStorageHasResources (array< IEntity > items) |
void | CreateEmptyLayout () |
void | SetPreviewItem () |
Static Protected Attributes | |
const int | SLOT_LAYOUT_WIDTH = 66 |
static const ref Color | m_WeightDefault = new Color(0.73, 0.73, 0.73, 1) |
UI Script Inventory of type: non-uniform grid storage.
void SCR_InventoryStorageBaseUI.SCR_InventoryStorageBaseUI | ( | BaseInventoryStorageComponent | storage, |
LoadoutAreaType | slotID = null , |
||
SCR_InventoryMenuUI | menuManager = null , |
||
int | iPage = 0 , |
||
array< BaseInventoryStorageComponent > | aTraverseStorage = null |
||
) |
void SCR_InventoryStorageBaseUI.~SCR_InventoryStorageBaseUI | ( | ) |
void SCR_InventoryStorageBaseUI.Action_ChangePage | ( | SCR_SpinBoxPagingComponent | pSpinBox, |
int | page | ||
) |
void SCR_InventoryStorageBaseUI.Action_NextPage | ( | ) |
void SCR_InventoryStorageBaseUI.Action_PrevPage | ( | ) |
void SCR_InventoryStorageBaseUI.ActivateStorageButton | ( | bool | active | ) |
void SCR_InventoryStorageBaseUI.Back | ( | int | traverseStorageIndex | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_InventoryStorageBaseUI.DimSlots | ( | bool | bDim | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Widget SCR_InventoryStorageBaseUI.GetButtonWidget | ( | ) |
BaseInventoryStorageComponent SCR_InventoryStorageBaseUI.GetCurrentNavigationStorage | ( | ) |
SCR_InventorySlotUI SCR_InventoryStorageBaseUI.GetFocusedSlot | ( | ) |
int SCR_InventoryStorageBaseUI.GetFocusedSlotId | ( | ) |
|
protected |
SCR_InventoryStorageManagerComponent SCR_InventoryStorageBaseUI.GetInventoryManager | ( | ) |
SCR_InventoryMenuUI SCR_InventoryStorageBaseUI.GetInventoryMenuHandler | ( | ) |
InventoryItemComponent SCR_InventoryStorageBaseUI.GetItemComponentFromEntity | ( | IEntity | pEntity | ) |
ButtonWidget SCR_InventoryStorageBaseUI.GetLastCloseTraverseButton | ( | ) |
SCR_InventorySlotUI SCR_InventoryStorageBaseUI.GetLastFocusedSlot | ( | ) |
bool SCR_InventoryStorageBaseUI.GetLastShownPage | ( | ) |
float SCR_InventoryStorageBaseUI.GetMaxResources | ( | notnull SCR_ResourceConsumer | resourceContainer | ) |
float SCR_InventoryStorageBaseUI.GetMaxVolumeCapacity | ( | BaseInventoryStorageComponent | storage | ) |
|
protected |
float SCR_InventoryStorageBaseUI.GetOccupiedVolume | ( | BaseInventoryStorageComponent | storage | ) |
float SCR_InventoryStorageBaseUI.GetOccupiedVolumePercentage | ( | BaseInventoryStorageComponent | storage, |
float | occupiedSpace = 0 |
||
) |
int SCR_InventoryStorageBaseUI.GetPageCount | ( | ) |
SCR_InventorySlotUI SCR_InventoryStorageBaseUI.GetPrevSelectedSlot | ( | ) |
Widget SCR_InventoryStorageBaseUI.GetRootWidget | ( | ) |
SCR_InventorySlotUI SCR_InventoryStorageBaseUI.GetSelectedSlot | ( | ) |
LoadoutAreaType SCR_InventoryStorageBaseUI.GetSlotAreaType | ( | ) |
int SCR_InventoryStorageBaseUI.GetSlotId | ( | SCR_InventorySlotUI | slot | ) |
int SCR_InventoryStorageBaseUI.GetSlotIdForItem | ( | ResourceName | itemName | ) |
void SCR_InventoryStorageBaseUI.GetSlots | ( | out notnull array< SCR_InventorySlotUI > | outSlots | ) |
BaseInventoryStorageComponent SCR_InventoryStorageBaseUI.GetStorage | ( | ) |
Widget SCR_InventoryStorageBaseUI.GetStorageGrid | ( | ) |
Implemented in SCR_InventoryGearInspectionPointUI.
string SCR_InventoryStorageBaseUI.GetStorageName | ( | ) |
float SCR_InventoryStorageBaseUI.GetTotalResources | ( | notnull SCR_ResourceConsumer | resourceContainer | ) |
float SCR_InventoryStorageBaseUI.GetTotalRoundedUpWeight | ( | BaseInventoryStorageComponent | storage | ) |
void SCR_InventoryStorageBaseUI.GetTraverseStorage | ( | out notnull array< BaseInventoryStorageComponent > | aTraverseStorage | ) |
array< SCR_InventorySlotUI > SCR_InventoryStorageBaseUI.GetUISlots | ( | ) |
void SCR_InventoryStorageBaseUI.GetUISlots | ( | out array< SCR_InventorySlotUI > | outArray | ) |
EquipedWeaponStorageComponent SCR_InventoryStorageBaseUI.GetWeaponStorage | ( | ) |
override void SCR_InventoryStorageBaseUI.HandlerAttached | ( | Widget | w | ) |
Implemented in SCR_InventoryAttachmentStorageUI, SCR_InventoryAttachmentPointUI, SCR_InventoryGearInspectionPointUI, SCR_InventoryOpenedStorageUI, SCR_InventoryStorageBackpackUI, SCR_InventoryStorageGadgetsUI, SCR_InventoryStorageLBSUI, SCR_InventoryStorageLootUI, SCR_InventoryStorageQuickSlotsUI, SCR_InventoryStoragesListUI, SCR_InventoryStorageVestUI, SCR_InventoryStorageWeaponsUI, and SCR_InventoryWeaponSlotsUI.
override void SCR_InventoryStorageBaseUI.HandlerDeattached | ( | Widget | w | ) |
Implemented in SCR_InventoryGearInspectionPointUI.
void SCR_InventoryStorageBaseUI.Home | ( | ) |
void SCR_InventoryStorageBaseUI.Init | ( | ) |
void SCR_InventoryStorageBaseUI.InitPaging | ( | ) |
bool SCR_InventoryStorageBaseUI.IsStorageEnabled | ( | ) |
bool SCR_InventoryStorageBaseUI.IsStorageHighlighted | ( | ) |
bool SCR_InventoryStorageBaseUI.IsStorageSelected | ( | ) |
bool SCR_InventoryStorageBaseUI.IsTraversalAllowed | ( | ) |
bool SCR_InventoryStorageBaseUI.IsWarningOverlayVisible | ( | ) |
bool SCR_InventoryStorageBaseUI.OnDrop | ( | SCR_InventorySlotUI | slot | ) |
Implemented in SCR_InventoryGearInspectionPointUI, and SCR_InventoryHitZoneUI.
override bool SCR_InventoryStorageBaseUI.OnFocus | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_InventoryStorageBaseUI.OnFocusLost | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_InventoryStorageBaseUI.OnMouseEnter | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_InventoryStorageBaseUI.OnMouseLeave | ( | Widget | w, |
Widget | enterW, | ||
int | x, | ||
int | y | ||
) |
void SCR_InventoryStorageBaseUI.Refresh | ( | ) |
|
protected |
void SCR_InventoryStorageBaseUI.RefreshResources | ( | ) |
Implemented in SCR_InventoryOpenedStorageArsenalUI.
void SCR_InventoryStorageBaseUI.RefreshSlot | ( | int | index | ) |
Implemented in SCR_InventoryStorageQuickSlotsUI.
void SCR_InventoryStorageBaseUI.RemoveSlotUI | ( | SCR_InventorySlotUI | pSlot | ) |
void SCR_InventoryStorageBaseUI.ReserveAndSetSlot | ( | int | iIndex | ) |
void SCR_InventoryStorageBaseUI.SetLastFocusedSlot | ( | SCR_InventorySlotUI | pSlot | ) |
memorize the last focused slot ( in case we leaving the actual UI storage and we want to select this slot again when we are back )
void SCR_InventoryStorageBaseUI.SetPagingActive | ( | bool | active | ) |
|
protected |
Implemented in SCR_InventoryAttachmentStorageUI.
void SCR_InventoryStorageBaseUI.SetRowsAndColumns | ( | ) |
Implemented in SCR_InventoryGearInspectionPointUI, SCR_InventoryStorageQuickSlotsUI, and SCR_InventoryWeaponSlotsUI.
|
protected |
void SCR_InventoryStorageBaseUI.SetSlotFocused | ( | SCR_InventorySlotUI | pSlotUI = null , |
bool | bSelected = true |
||
) |
void SCR_InventoryStorageBaseUI.SetSlotSelected | ( | SCR_InventorySlotUI | pSlot = null , |
bool | bSelected = true |
||
) |
void SCR_InventoryStorageBaseUI.SetStorageAsHighlighted | ( | bool | isVisible, |
EInvInsertFailReason | reason = EInvInsertFailReason::OK |
||
) |
void SCR_InventoryStorageBaseUI.Show | ( | bool | bShow | ) |
void SCR_InventoryStorageBaseUI.ShowContainerBorder | ( | bool | bShow | ) |
void SCR_InventoryStorageBaseUI.ShowItemDetails | ( | string | sName, |
string | sDescription, | ||
string | sWeight | ||
) |
|
protected |
|
protected |
void SCR_InventoryStorageBaseUI.ToggleShow | ( | ) |
void SCR_InventoryStorageBaseUI.Traverse | ( | BaseInventoryStorageComponent | storage | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_InventoryGearInspectionPointUI, SCR_InventoryStorageQuickSlotsUI, and SCR_InventoryWeaponSlotsUI.
void SCR_InventoryStorageBaseUI.UpdateSlotUI | ( | ResourceName | item | ) |
|
protected |
void SCR_InventoryStorageBaseUI.UpdateTotalWeight | ( | float | totalWeight, |
Color | fontColor = Color::Gray25 |
||
) |
void SCR_InventoryStorageBaseUI.UpdateVolumePercentage | ( | float | percentage, |
bool | previewOnly = false |
||
) |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
staticprotected |
|
static |
|
static |
|
static |