Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SupplyInventorySlotUI Class Reference
Inheritance diagram for SCR_SupplyInventorySlotUI:
SCR_InventorySlotUI

Protected Member Functions

SCR_ResourceComponent GetResourceComponent ()
string SetSlotSize ()
override void SetItemFunctionality ()
override void UseItem (IEntity player, SCR_EUseContext context)
override bool CanUseItem (IEntity player)
override bool IsDraggable ()
override void SetSlotVisible (bool bVisible)
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)

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"
Widget m_StoredResourcesHolder
TextWidget m_StoredResourcesText
Widget m_AvailableResourcesHolder
TextWidget m_AvailableResourcesText
EResourceType m_eResourceType = EResourceType.SUPPLIES
LocalizedString m_sCurrentAndMaxResourceFormat = "#AR-Campaign_BaseSuppliesAmount"
SCR_ResourceComponent m_ResourceComponent
SCR_ResourceConsumer m_ResourceConsumer
ref SCR_ResourceSystemSubscriptionHandleBase m_ResourceSubscriptionHandle
ref array< RplIdm_aStackedItems = {}

Detailed Description

Definition at line 2 of file SCR_SupplyInventorySlotUI.c.

Constructor & Destructor Documentation

◆ SCR_SupplyInventorySlotUI()

void SCR_SupplyInventorySlotUI::SCR_SupplyInventorySlotUI ( InventoryItemComponent pComponent = null,
SCR_InventoryStorageBaseUI pStorageUI = null,
bool bVisible = true,
int iSlotIndex = -1,
SCR_ItemAttributeCollection pAttributes = null )
inlineprotected

Definition at line 276 of file SCR_SupplyInventorySlotUI.c.

Member Function Documentation

◆ CanUseItem()

override bool SCR_SupplyInventorySlotUI::CanUseItem ( IEntity player)
inlineprotected

Definition at line 97 of file SCR_SupplyInventorySlotUI.c.

◆ GetAdditionalResourceValuesFromStack()

void SCR_SupplyInventorySlotUI::GetAdditionalResourceValuesFromStack ( out float addTotalResources,
out float addMaxResources )
inlineprotected

Definition at line 205 of file SCR_SupplyInventorySlotUI.c.

◆ GetResourceComponent()

SCR_ResourceComponent SCR_SupplyInventorySlotUI::GetResourceComponent ( )
inlineprotected

Definition at line 31 of file SCR_SupplyInventorySlotUI.c.

◆ HandlerAttached()

override void SCR_SupplyInventorySlotUI::HandlerAttached ( Widget w)
inlineprotected

Definition at line 258 of file SCR_SupplyInventorySlotUI.c.

◆ HandlerDeattached()

override void SCR_SupplyInventorySlotUI::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 266 of file SCR_SupplyInventorySlotUI.c.

◆ IncreaseStackNumberWithRplId()

override void SCR_SupplyInventorySlotUI::IncreaseStackNumberWithRplId ( RplId id)
inlineprotected

Definition at line 234 of file SCR_SupplyInventorySlotUI.c.

◆ IsDraggable()

override bool SCR_SupplyInventorySlotUI::IsDraggable ( )
inlineprotected

Definition at line 118 of file SCR_SupplyInventorySlotUI.c.

◆ OnOwnedSlotsUpdated()

override void SCR_SupplyInventorySlotUI::OnOwnedSlotsUpdated ( )
inlineprotected

Definition at line 175 of file SCR_SupplyInventorySlotUI.c.

◆ Refresh()

override void SCR_SupplyInventorySlotUI::Refresh ( )
inlineprotected

Definition at line 152 of file SCR_SupplyInventorySlotUI.c.

◆ SetItemFunctionality()

override void SCR_SupplyInventorySlotUI::SetItemFunctionality ( )
inlineprotected

Definition at line 68 of file SCR_SupplyInventorySlotUI.c.

◆ SetSlotSize()

string SCR_SupplyInventorySlotUI::SetSlotSize ( )
inlineprotected

Definition at line 37 of file SCR_SupplyInventorySlotUI.c.

◆ SetSlotVisible()

override void SCR_SupplyInventorySlotUI::SetSlotVisible ( bool bVisible)
inlineprotected

Definition at line 128 of file SCR_SupplyInventorySlotUI.c.

◆ UpdateAvailableResources()

void SCR_SupplyInventorySlotUI::UpdateAvailableResources ( bool showUI,
float totalResources )
inlineprotected

Definition at line 241 of file SCR_SupplyInventorySlotUI.c.

◆ UpdateConsumer()

void SCR_SupplyInventorySlotUI::UpdateConsumer ( )
inlineprotected

Definition at line 158 of file SCR_SupplyInventorySlotUI.c.

◆ UpdateStoredResources()

void SCR_SupplyInventorySlotUI::UpdateStoredResources ( bool showUI,
float totalResources,
float maxResources )
inlineprotected

Definition at line 181 of file SCR_SupplyInventorySlotUI.c.

◆ UseItem()

override void SCR_SupplyInventorySlotUI::UseItem ( IEntity player,
SCR_EUseContext context )
inlineprotected

Definition at line 75 of file SCR_SupplyInventorySlotUI.c.

Member Data Documentation

◆ AVAILABLE_RESOURCES_WIDGET_NAME

const string SCR_SupplyInventorySlotUI::AVAILABLE_RESOURCES_WIDGET_NAME = "SuppliesAvailable"
protected

Definition at line 9 of file SCR_SupplyInventorySlotUI.c.

◆ COST_RESOURCES_WIDGET_NAME

const string SCR_SupplyInventorySlotUI::COST_RESOURCES_WIDGET_NAME = "SuppliesCost"
protected

Definition at line 10 of file SCR_SupplyInventorySlotUI.c.

◆ m_aStackedItems

ref array<RplId> SCR_SupplyInventorySlotUI::m_aStackedItems = {}
protected

Definition at line 28 of file SCR_SupplyInventorySlotUI.c.

◆ m_AvailableResourcesHolder

Widget SCR_SupplyInventorySlotUI::m_AvailableResourcesHolder
protected

Definition at line 15 of file SCR_SupplyInventorySlotUI.c.

◆ m_AvailableResourcesText

TextWidget SCR_SupplyInventorySlotUI::m_AvailableResourcesText
protected

Definition at line 16 of file SCR_SupplyInventorySlotUI.c.

◆ m_eResourceType

EResourceType SCR_SupplyInventorySlotUI::m_eResourceType = EResourceType.SUPPLIES
protected

Definition at line 19 of file SCR_SupplyInventorySlotUI.c.

◆ m_ResourceComponent

SCR_ResourceComponent SCR_SupplyInventorySlotUI::m_ResourceComponent
protected

Definition at line 25 of file SCR_SupplyInventorySlotUI.c.

◆ m_ResourceConsumer

SCR_ResourceConsumer SCR_SupplyInventorySlotUI::m_ResourceConsumer
protected

Definition at line 26 of file SCR_SupplyInventorySlotUI.c.

◆ m_ResourceSubscriptionHandle

ref SCR_ResourceSystemSubscriptionHandleBase SCR_SupplyInventorySlotUI::m_ResourceSubscriptionHandle
protected

Definition at line 27 of file SCR_SupplyInventorySlotUI.c.

◆ m_sCurrentAndMaxResourceFormat

LocalizedString SCR_SupplyInventorySlotUI::m_sCurrentAndMaxResourceFormat = "#AR-Campaign_BaseSuppliesAmount"
protected

Definition at line 23 of file SCR_SupplyInventorySlotUI.c.

◆ m_StoredResourcesHolder

Widget SCR_SupplyInventorySlotUI::m_StoredResourcesHolder
protected

Definition at line 12 of file SCR_SupplyInventorySlotUI.c.

◆ m_StoredResourcesText

TextWidget SCR_SupplyInventorySlotUI::m_StoredResourcesText
protected

Definition at line 13 of file SCR_SupplyInventorySlotUI.c.

◆ RESOURCES_TEXT_WIDGET_NAME

const string SCR_SupplyInventorySlotUI::RESOURCES_TEXT_WIDGET_NAME = "SuppliesText"
protected

Definition at line 7 of file SCR_SupplyInventorySlotUI.c.

◆ STORED_RESOURCES_WIDGET_NAME

const string SCR_SupplyInventorySlotUI::STORED_RESOURCES_WIDGET_NAME = "SuppliesStored"
protected

Definition at line 8 of file SCR_SupplyInventorySlotUI.c.


The documentation for this class was generated from the following file: