Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_PlayerSupplyAllocationItemHintInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_PlayerSupplyAllocationItemHintUIInfo
: SCR_InventoryItemHintUIInfo
3
{
4
protected
float
m_fItemMSARCost
= -1;
5
6
//------------------------------------------------------------------------------------------------
7
void
SetMSARCost
(
float
cost)
8
{
9
m_fItemMSARCost
= cost;
10
}
11
12
//------------------------------------------------------------------------------------------------
13
override
bool
CanBeShown
(
InventoryItemComponent
item,
SCR_InventorySlotUI
focusedSlot)
14
{
15
if
(!super.CanBeShown(item, focusedSlot))
16
return
false
;
17
18
return
item &&
m_fItemMSARCost
> 0;
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
string
GetItemHintName
(
InventoryItemComponent
item)
23
{
24
return
WidgetManager
.Translate(
GetName
(),
SCR_ResourceSystemHelper
.SuppliesToString(
m_fItemMSARCost
));
25
}
26
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
GetName
string GetName()
Definition
SCR_NotificationSenderComponent.c:15
InventoryItemComponent
Definition
InventoryItemComponent.c:13
SCR_InventorySlotUI
Definition
SCR_InventorySlotUI.c:26
SCR_PlayerSupplyAllocationItemHintUIInfo
Definition
SCR_PlayerSupplyAllocationItemHintInfo.c:3
SCR_PlayerSupplyAllocationItemHintUIInfo::CanBeShown
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
Definition
SCR_PlayerSupplyAllocationItemHintInfo.c:13
SCR_PlayerSupplyAllocationItemHintUIInfo::m_fItemMSARCost
float m_fItemMSARCost
Definition
SCR_PlayerSupplyAllocationItemHintInfo.c:4
SCR_PlayerSupplyAllocationItemHintUIInfo::SetMSARCost
void SetMSARCost(float cost)
Definition
SCR_PlayerSupplyAllocationItemHintInfo.c:7
SCR_PlayerSupplyAllocationItemHintUIInfo::GetItemHintName
override string GetItemHintName(InventoryItemComponent item)
Definition
SCR_PlayerSupplyAllocationItemHintInfo.c:22
SCR_ResourceSystemHelper
Definition
SCR_ResourceSystemHelper.c:2
WidgetManager
Definition
WidgetManager.c:16
scripts
Game
Editor
Containers
UIInfo
SCR_PlayerSupplyAllocationItemHintInfo.c
Generated by
1.17.0