|
Arma Reforger Script API
|
Public Member Functions | |
| override void | SetItemFunctionality () |
| stores the type of the functionality of the item in the slot | |
| override void | UseItem (IEntity player, SCR_EUseContext context) |
| override bool | CanUseItem (IEntity player) |
| override void | SetSlotVisible (bool bVisible) |
| should be the slot visible? | |
| override void | Refresh () |
| void | UpdateConsumer () |
| override void | OnOwnedSlotsUpdated () |
| void | UpdateStoredResources (bool showUI, float totalResources, float maxResources) |
| void | GetAdditionalResourceValuesFromStack (out float addTotalResources, out float addMaxResources) |
| override void | IncreaseStackNumberWithRplId (RplId id) |
| void | UpdateAvailableResources (bool showUI, float totalResources) |
| override void | HandlerAttached (Widget w) |
| override void | HandlerDeattached (Widget w) |
| void | SCR_SupplyInventorySlotUI (InventoryItemComponent pComponent=null, SCR_InventoryStorageBaseUI pStorageUI=null, bool bVisible=true, int iSlotIndex=-1, SCR_ItemAttributeCollection pAttributes=null) |
Public Member Functions inherited from SCR_InventorySlotUI | |
| SCR_EAnalyticalItemSlotType | GetAnalyticalItemSlotType () |
| void | UpdateReferencedComponent (InventoryItemComponent pComponent, SCR_ItemAttributeCollection attributes=null) |
| void | UpdateInventorySlot (InventoryItemComponent comp, int stackNumber) |
| bool | IsDraggable () |
| BaseInventoryStorageComponent | GetStorageComponent () |
| returns the storage component associated with this UI component | |
| LoadoutAreaType | GetLoadoutArea () |
| void | SetStackNumber (int i) |
| void | IncreaseStackNumber () |
| Widget | GetButtonWidget () |
| bool | IsSlotEnabled () |
| bool | IsSlotBlocked () |
| bool | IsSelected () |
| void | SetSlotBlocked (bool bBlocked) |
| should be the slot be blocked? | |
| int | GetSlotIndex () |
| void | SetQuickSlotIndexVisible (TextWidget textQuickSlot, bool bVisible) |
| void | OnSlotFocused () |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| void | OnSlotFocusLost () |
| void | ToggleSelected () |
| void | SetSelected (bool select) |
| void | SetEnabled (bool enable) |
| bool | OnDrop (SCR_InventorySlotUI slot) |
| void | SetEnabledForMove (int iSelect) |
| InventoryItemComponent | GetInventoryItemComponent () |
| BaseInventoryStorageComponent | GetAsStorage () |
| SCR_InventoryStorageBaseUI | GetStorageUI () |
| string | GetItemName () |
| void | ClearItemDetails () |
| bool | RemoveItem () |
| SCR_CharacterInventoryStorageComponent | GetCharacterStorage (IEntity entity) |
| int | GetAmmoCount () |
| void | Destroy () |
| Removes just the UI slot. | |
| void | OnChangeLockState () |
| void | SetSelectedQuickSlot (bool select) |
| ECommonItemType | GetCommonItemType () |
| override bool | OnFocus (Widget w, int x, int y) |
| override bool | OnFocusLost (Widget w, int x, int y) |
| override bool | OnChange (Widget w, bool finished) |
| Widget | GetWidget () |
| int | GetColumnSize () |
| int | GetRowSize () |
| void | SetSlotSize (ESlotSize slotSize) |
| ESlotSize | GetSlotSize () |
| void | SetPage (int iPage) |
| int | GetPage () |
| ESlotFunction | GetSlotedItemFunction () |
| What functionality the item in the slot has? ( weapon, magazine, health, consumable... ) | |
| void | SetIcon (ResourceName texture) |
| ResourceName | GetItemResource () |
| bool | IsStacked () |
| void | CheckCompatibility (SCR_InventorySlotUI slot) |
| bool | IsCompatible () |
| void | SCR_InventorySlotUI (InventoryItemComponent pComponent=null, SCR_InventoryStorageBaseUI pStorageUI=null, bool bVisible=true, int iSlotIndex=-1, SCR_ItemAttributeCollection pAttributes=null) |
| void | ~SCR_InventorySlotUI () |
Static Public Attributes | |
| const string | SLOT_LAYOUT_SUPPLY = "{AF25F325D2730142}UI/layouts/Menus/Inventory/SupplyInventoryItemSlot.layout" |
| const float | SLOT_UNAVAILABLE_OPACITY = 0.35 |
Protected Member Functions | |
| override string | SetSlotSize () |
Protected Member Functions inherited from SCR_InventorySlotUI | |
| void | Init () |
| void | SetAmmoCount () |
| void | SetAmmoType () |
| void | OnFuelAmountChanged (float newFuelValue) |
| void | InitFuelAmount () |
| UIInfo | GetItemDetails () |
| void | SetItemDetails () |
| void | SetImage (string resource, string imageName) |
| SCR_InventoryStorageManagerComponent | GetInventoryManager () |
| bool | ShouldVehicleSlotBeVisible (SCR_InventoryVehicleVisibilityAttribute attr) |
| void | UpdateVolumeBarValue () |
| void | UpdateAmmoCount () |
| void | UpdateStackNumber () |
| void | UpdateWeaponAmmoCount () |
Static Protected Attributes | |
| const string | RESOURCES_TEXT_WIDGET_NAME = "SuppliesText" |
| const string | STORED_RESOURCES_WIDGET_NAME = "SuppliesStored" |
| const string | AVAILABLE_RESOURCES_WIDGET_NAME = "SuppliesAvailable" |
| const string | COST_RESOURCES_WIDGET_NAME = "SuppliesCost" |
Additional Inherited Members | |
Public Attributes inherited from SCR_InventorySlotUI | |
| Widget | m_widget = null |
| void SCR_SupplyInventorySlotUI.SCR_SupplyInventorySlotUI | ( | InventoryItemComponent | pComponent = null, |
| SCR_InventoryStorageBaseUI | pStorageUI = null, | ||
| bool | bVisible = true, | ||
| int | iSlotIndex = -1, | ||
| SCR_ItemAttributeCollection | pAttributes = null ) |
| override bool SCR_SupplyInventorySlotUI.CanUseItem | ( | IEntity | player | ) |
Implements SCR_InventorySlotUI.
| void SCR_SupplyInventorySlotUI.GetAdditionalResourceValuesFromStack | ( | out float | addTotalResources, |
| out float | addMaxResources ) |
| override void SCR_SupplyInventorySlotUI.HandlerAttached | ( | Widget | w | ) |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.HandlerDeattached | ( | Widget | w | ) |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.IncreaseStackNumberWithRplId | ( | RplId | id | ) |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.OnOwnedSlotsUpdated | ( | ) |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.Refresh | ( | ) |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.SetItemFunctionality | ( | ) |
stores the type of the functionality of the item in the slot
Implements SCR_InventorySlotUI.
|
protected |
Implements SCR_InventorySlotUI.
| override void SCR_SupplyInventorySlotUI.SetSlotVisible | ( | bool | bVisible | ) |
should be the slot visible?
Implements SCR_InventorySlotUI.
| void SCR_SupplyInventorySlotUI.UpdateAvailableResources | ( | bool | showUI, |
| float | totalResources ) |
| void SCR_SupplyInventorySlotUI.UpdateConsumer | ( | ) |
| void SCR_SupplyInventorySlotUI.UpdateStoredResources | ( | bool | showUI, |
| float | totalResources, | ||
| float | maxResources ) |
| override void SCR_SupplyInventorySlotUI.UseItem | ( | IEntity | player, |
| SCR_EUseContext | context ) |
Implements SCR_InventorySlotUI.
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
static |
|
static |
|
staticprotected |