|
Arma Reforger Script API
|
UI Script Inventory Slot UI Layout. More...
Public Member Functions | |
| 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 () |
| void | IncreaseStackNumberWithRplId (RplId id) |
| void | OnOwnedSlotsUpdated () |
| Widget | GetButtonWidget () |
| bool | IsSlotEnabled () |
| bool | IsSlotBlocked () |
| bool | IsSelected () |
| void | SetSlotVisible (bool bVisible) |
| should be the slot visible? | |
| 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 () |
| void | SetItemFunctionality () |
| stores the type of the functionality of the item in the slot | |
| SCR_CharacterInventoryStorageComponent | GetCharacterStorage (IEntity entity) |
| void | UseItem (IEntity player, SCR_EUseContext context) |
| bool | CanUseItem (IEntity player) |
| int | GetAmmoCount () |
| void | Refresh () |
| 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) |
| override void | HandlerAttached (Widget w) |
| 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 () |
| override void | HandlerDeattached (Widget w) |
Public Attributes | |
| Widget | m_widget = null |
Protected Member Functions | |
| string | SetSlotSize () |
| 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 () |
Protected Attributes | |
| int | m_iSizeX |
| int | m_iSizeY |
| int | m_iPage |
| SCR_InventoryStorageBaseUI | m_pStorageUI |
| InventoryItemComponent | m_pItem |
| ref SCR_ItemAttributeCollection | m_Attributes |
| bool | m_bEnabled = true |
| bool | m_bSelected = false |
| bool | m_bBlocked = false |
| Widget | m_wSelectedEffect |
| Widget | m_wSelectedIcon |
| Widget | m_wMoveEffect |
| Widget | m_wDimmerEffect |
| Widget | m_wBlockedEffect |
| TextWidget | m_wTextQuickSlot = null |
| TextWidget | m_wTextQuickSlotLarge = null |
| int | m_iQuickSlotIndex |
| ProgressBarWidget | m_wVolumeBar |
| ProgressBarWidget | m_wAmmoCount |
| int | m_iStackNumber = 1 |
| TextWidget | m_wStackNumber |
| TextWidget | m_wMagazineNumber |
| OverlayWidget | m_wItemLockThrobber |
| string | m_sItemName = "" |
| int | m_aAmmoCountActual = -1 |
| int | m_aAmmoCountMax = -1 |
| bool | m_bVisible |
| ESlotFunction | m_eSlotFunction = ESlotFunction.TYPE_GENERIC |
| SCR_InventoryProgressBar | m_ProgressBar |
| Widget | m_wCurrentMagazine |
| ImageWidget | m_wCurrentMagazineAmmoCount |
| Widget | m_wProgressBar |
| SCR_FuelManagerComponent | m_FuelManager |
UI Script Inventory Slot UI Layout.
| void SCR_InventorySlotUI.SCR_InventorySlotUI | ( | InventoryItemComponent | pComponent = null, |
| SCR_InventoryStorageBaseUI | pStorageUI = null, | ||
| bool | bVisible = true, | ||
| int | iSlotIndex = -1, | ||
| SCR_ItemAttributeCollection | pAttributes = null ) |
| void SCR_InventorySlotUI.~SCR_InventorySlotUI | ( | ) |
| bool SCR_InventorySlotUI.CanUseItem | ( | IEntity | player | ) |
Implemented in SCR_SupplyInventorySlotUI.
| void SCR_InventorySlotUI.CheckCompatibility | ( | SCR_InventorySlotUI | slot | ) |
Implemented in SCR_InventorySlotWeaponSlotsUI.
| void SCR_InventorySlotUI.ClearItemDetails | ( | ) |
| void SCR_InventorySlotUI.Destroy | ( | ) |
Removes just the UI slot.
| int SCR_InventorySlotUI.GetAmmoCount | ( | ) |
| SCR_EAnalyticalItemSlotType SCR_InventorySlotUI.GetAnalyticalItemSlotType | ( | ) |
Implemented in SCR_InventorySlotQuickSlotUI, and SCR_InventorySlotWeaponSlotsUI.
| BaseInventoryStorageComponent SCR_InventorySlotUI.GetAsStorage | ( | ) |
Implemented in SCR_InventorySlotGearInspectionUI.
| Widget SCR_InventorySlotUI.GetButtonWidget | ( | ) |
| SCR_CharacterInventoryStorageComponent SCR_InventorySlotUI.GetCharacterStorage | ( | IEntity | entity | ) |
| int SCR_InventorySlotUI.GetColumnSize | ( | ) |
| ECommonItemType SCR_InventorySlotUI.GetCommonItemType | ( | ) |
| InventoryItemComponent SCR_InventorySlotUI.GetInventoryItemComponent | ( | ) |
|
protected |
|
protected |
| string SCR_InventorySlotUI.GetItemName | ( | ) |
| ResourceName SCR_InventorySlotUI.GetItemResource | ( | ) |
| LoadoutAreaType SCR_InventorySlotUI.GetLoadoutArea | ( | ) |
| int SCR_InventorySlotUI.GetPage | ( | ) |
| int SCR_InventorySlotUI.GetRowSize | ( | ) |
| ESlotFunction SCR_InventorySlotUI.GetSlotedItemFunction | ( | ) |
What functionality the item in the slot has? ( weapon, magazine, health, consumable... )
| int SCR_InventorySlotUI.GetSlotIndex | ( | ) |
| ESlotSize SCR_InventorySlotUI.GetSlotSize | ( | ) |
| BaseInventoryStorageComponent SCR_InventorySlotUI.GetStorageComponent | ( | ) |
returns the storage component associated with this UI component
Implemented in SCR_InventorySlotWeaponUI.
| SCR_InventoryStorageBaseUI SCR_InventorySlotUI.GetStorageUI | ( | ) |
| Widget SCR_InventorySlotUI.GetWidget | ( | ) |
| override void SCR_InventorySlotUI.HandlerAttached | ( | Widget | w | ) |
Implemented in SCR_SupplyInventorySlotUI.
| override void SCR_InventorySlotUI.HandlerDeattached | ( | Widget | w | ) |
Implemented in SCR_SupplyInventorySlotUI.
| void SCR_InventorySlotUI.IncreaseStackNumber | ( | ) |
| void SCR_InventorySlotUI.IncreaseStackNumberWithRplId | ( | RplId | id | ) |
Implemented in SCR_SupplyInventorySlotUI.
|
protected |
Implemented in SCR_InventorySlotGadgetUI, SCR_InventorySlotQuickSlotUI, and SCR_InventorySlotWeaponSlotsUI.
|
protected |
| bool SCR_InventorySlotUI.IsCompatible | ( | ) |
| bool SCR_InventorySlotUI.IsDraggable | ( | ) |
Implemented in SCR_ArsenalInventorySlotUI.
| bool SCR_InventorySlotUI.IsSelected | ( | ) |
| bool SCR_InventorySlotUI.IsSlotBlocked | ( | ) |
| bool SCR_InventorySlotUI.IsSlotEnabled | ( | ) |
| bool SCR_InventorySlotUI.IsStacked | ( | ) |
| override bool SCR_InventorySlotUI.OnChange | ( | Widget | w, |
| bool | finished ) |
| void SCR_InventorySlotUI.OnChangeLockState | ( | ) |
| bool SCR_InventorySlotUI.OnDrop | ( | SCR_InventorySlotUI | slot | ) |
Implemented in SCR_InventoryAttachmentSlotUI, SCR_InventoryHitZoneSlotUI, and SCR_InventorySlotGearInspectionUI.
| override bool SCR_InventorySlotUI.OnFocus | ( | Widget | w, |
| int | x, | ||
| int | y ) |
| override bool SCR_InventorySlotUI.OnFocusLost | ( | Widget | w, |
| int | x, | ||
| int | y ) |
|
protected |
| override bool SCR_InventorySlotUI.OnMouseEnter | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implemented in SCR_InventorySlotGearInspectionUI.
| override bool SCR_InventorySlotUI.OnMouseLeave | ( | Widget | w, |
| Widget | enterW, | ||
| int | x, | ||
| int | y ) |
Implemented in SCR_InventorySlotGearInspectionUI.
| void SCR_InventorySlotUI.OnOwnedSlotsUpdated | ( | ) |
Implemented in SCR_SupplyInventorySlotUI.
| void SCR_InventorySlotUI.OnSlotFocused | ( | ) |
| void SCR_InventorySlotUI.OnSlotFocusLost | ( | ) |
| void SCR_InventorySlotUI.Refresh | ( | ) |
Implemented in SCR_ArsenalInventorySlotUI, and SCR_SupplyInventorySlotUI.
| bool SCR_InventorySlotUI.RemoveItem | ( | ) |
Implemented in SCR_InventorySlotGadgetUI, SCR_InventorySlotStorageUI, and SCR_InventorySlotWeaponUI.
|
protected |
|
protected |
| void SCR_InventorySlotUI.SetEnabled | ( | bool | enable | ) |
| void SCR_InventorySlotUI.SetEnabledForMove | ( | int | iSelect | ) |
| void SCR_InventorySlotUI.SetIcon | ( | ResourceName | texture | ) |
|
protected |
|
protected |
| void SCR_InventorySlotUI.SetItemFunctionality | ( | ) |
stores the type of the functionality of the item in the slot
Implemented in SCR_InventorySlotStorageUI, and SCR_SupplyInventorySlotUI.
| void SCR_InventorySlotUI.SetPage | ( | int | iPage | ) |
| void SCR_InventorySlotUI.SetQuickSlotIndexVisible | ( | TextWidget | textQuickSlot, |
| bool | bVisible ) |
| void SCR_InventorySlotUI.SetSelected | ( | bool | select | ) |
Implemented in SCR_InventorySlotStorageEmbeddedUI, and SCR_InventorySlotStorageUI.
| void SCR_InventorySlotUI.SetSelectedQuickSlot | ( | bool | select | ) |
| void SCR_InventorySlotUI.SetSlotBlocked | ( | bool | bBlocked | ) |
should be the slot be blocked?
|
protected |
| void SCR_InventorySlotUI.SetSlotSize | ( | ESlotSize | slotSize | ) |
| void SCR_InventorySlotUI.SetSlotVisible | ( | bool | bVisible | ) |
should be the slot visible?
Implemented in SCR_ArsenalInventorySlotUI, SCR_InventorySlotQuickSlotUI, SCR_InventorySlotStorageUI, and SCR_SupplyInventorySlotUI.
| void SCR_InventorySlotUI.SetStackNumber | ( | int | i | ) |
|
protected |
| void SCR_InventorySlotUI.ToggleSelected | ( | ) |
|
protected |
| void SCR_InventorySlotUI.UpdateInventorySlot | ( | InventoryItemComponent | comp, |
| int | stackNumber ) |
| void SCR_InventorySlotUI.UpdateReferencedComponent | ( | InventoryItemComponent | pComponent, |
| SCR_ItemAttributeCollection | attributes = null ) |
Implemented in SCR_InventoryAttachmentSlotUI, and SCR_InventorySlotGearInspectionUI.
|
protected |
|
protected |
|
protected |
| void SCR_InventorySlotUI.UseItem | ( | IEntity | player, |
| SCR_EUseContext | context ) |
Implemented in SCR_SupplyInventorySlotUI.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Widget SCR_InventorySlotUI.m_widget = null |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |