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

Protected Member Functions

override void HandlerAttached (Widget w)
override void HandlerDeattached (Widget w)
void SetPlayerCurrentAndLimitAllocation (Widget w)
void UpdateSupplyAmountText ()
 Sets the Supplies text to current amount of available and allocated supplies.
void OnItemHover (SCR_InventorySlotUI slot)
void OnItemHoverEnd ()
void OnLoadoutSelected (SCR_BasePlayerLoadout loadout)
int GetItemPlayerSupplyAllocationRefundValue (SCR_InventorySlotUI slot)
void OnAvailableAllocatedSuppliesChanged (int amount)
void OnMilitarySupplyAllocationChanged (int amount)

Protected Attributes

ResourceName m_sSuppliesText
int m_iAvailableSuppliesAmount
int m_iMaxAvailableSuppliesAmount
bool m_bVisibleTopLimit
int m_iPlayerSupplyAllocationOffset
RichTextWidget m_wSuppliesText
string m_sSuppliesAmount
string m_sAvailableText
string m_sAvailableTextLong
PlayerController m_PlayerController = GetGame().GetPlayerController()
SCR_PlayerSupplyAllocationComponent m_PlayerSupplyAllocationComponent

Detailed Description

Definition at line 3 of file SCR_PlayerSupplyAllocationUI.c.

Member Function Documentation

◆ GetItemPlayerSupplyAllocationRefundValue()

int SCR_PlayerSupplyAllocationUI::GetItemPlayerSupplyAllocationRefundValue ( SCR_InventorySlotUI slot)
inlineprotected

Definition at line 166 of file SCR_PlayerSupplyAllocationUI.c.

◆ HandlerAttached()

override void SCR_PlayerSupplyAllocationUI::HandlerAttached ( Widget w)
inlineprotected

Calls superclass method, subscribes to events and sets player current and limit allocation.

Parameters
[in]wWidget attached to the method, representing the root of the layout.

Definition at line 40 of file SCR_PlayerSupplyAllocationUI.c.

◆ HandlerDeattached()

override void SCR_PlayerSupplyAllocationUI::HandlerDeattached ( Widget w)
inlineprotected

Calls superclass method and unsubscribes from events

Parameters
[in]wWidget attached to the method, representing the root of the layout.

Definition at line 72 of file SCR_PlayerSupplyAllocationUI.c.

◆ OnAvailableAllocatedSuppliesChanged()

void SCR_PlayerSupplyAllocationUI::OnAvailableAllocatedSuppliesChanged ( int amount)
inlineprotected

Available Allocated Supplies amount changed, set the new value and update Supplies text

Parameters
[in]amount

Definition at line 213 of file SCR_PlayerSupplyAllocationUI.c.

◆ OnItemHover()

void SCR_PlayerSupplyAllocationUI::OnItemHover ( SCR_InventorySlotUI slot)
inlineprotected

Definition at line 121 of file SCR_PlayerSupplyAllocationUI.c.

◆ OnItemHoverEnd()

void SCR_PlayerSupplyAllocationUI::OnItemHoverEnd ( )
inlineprotected

Definition at line 142 of file SCR_PlayerSupplyAllocationUI.c.

◆ OnLoadoutSelected()

void SCR_PlayerSupplyAllocationUI::OnLoadoutSelected ( SCR_BasePlayerLoadout loadout)
inlineprotected

Loadout was selected, update MSAR text to include selected loadout price

Parameters
[in]loadout

Definition at line 151 of file SCR_PlayerSupplyAllocationUI.c.

◆ OnMilitarySupplyAllocationChanged()

void SCR_PlayerSupplyAllocationUI::OnMilitarySupplyAllocationChanged ( int amount)
inlineprotected

Military Supply Allocation amount changed, set the new value and update Supplies text

Parameters
[in]amount

Definition at line 225 of file SCR_PlayerSupplyAllocationUI.c.

◆ SetPlayerCurrentAndLimitAllocation()

void SCR_PlayerSupplyAllocationUI::SetPlayerCurrentAndLimitAllocation ( Widget w)
inlineprotected

Definition at line 88 of file SCR_PlayerSupplyAllocationUI.c.

◆ UpdateSupplyAmountText()

void SCR_PlayerSupplyAllocationUI::UpdateSupplyAmountText ( )
inlineprotected

Sets the Supplies text to current amount of available and allocated supplies.

Definition at line 101 of file SCR_PlayerSupplyAllocationUI.c.

Member Data Documentation

◆ m_bVisibleTopLimit

bool SCR_PlayerSupplyAllocationUI::m_bVisibleTopLimit
protected

Definition at line 19 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_iAvailableSuppliesAmount

int SCR_PlayerSupplyAllocationUI::m_iAvailableSuppliesAmount
protected

Definition at line 11 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_iMaxAvailableSuppliesAmount

int SCR_PlayerSupplyAllocationUI::m_iMaxAvailableSuppliesAmount
protected

Definition at line 15 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_iPlayerSupplyAllocationOffset

int SCR_PlayerSupplyAllocationUI::m_iPlayerSupplyAllocationOffset
protected

Definition at line 21 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_PlayerController

PlayerController SCR_PlayerSupplyAllocationUI::m_PlayerController = GetGame().GetPlayerController()
protected

Definition at line 33 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_PlayerSupplyAllocationComponent

SCR_PlayerSupplyAllocationComponent SCR_PlayerSupplyAllocationUI::m_PlayerSupplyAllocationComponent
protected

Definition at line 35 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_sAvailableText

string SCR_PlayerSupplyAllocationUI::m_sAvailableText
protected

Definition at line 28 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_sAvailableTextLong

string SCR_PlayerSupplyAllocationUI::m_sAvailableTextLong
protected

Definition at line 31 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_sSuppliesAmount

string SCR_PlayerSupplyAllocationUI::m_sSuppliesAmount
protected

Definition at line 25 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_sSuppliesText

ResourceName SCR_PlayerSupplyAllocationUI::m_sSuppliesText
protected

Definition at line 7 of file SCR_PlayerSupplyAllocationUI.c.

◆ m_wSuppliesText

RichTextWidget SCR_PlayerSupplyAllocationUI::m_wSuppliesText
protected

Definition at line 23 of file SCR_PlayerSupplyAllocationUI.c.


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