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_SupplyCostItemHintUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_SupplyCostItemHintUIInfo
: SCR_InventoryItemHintUIInfo
3
{
4
protected
float
m_fItemSupplyCost
= -1;
5
6
//------------------------------------------------------------------------------------------------
7
void
SetSupplyCost
(
float
supplyCost)
8
{
9
m_fItemSupplyCost
= supplyCost;
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_fItemSupplyCost
>= 0;
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
string
GetItemHintName
(
InventoryItemComponent
item)
23
{
24
return
WidgetManager
.Translate(
GetName
(),
SCR_ResourceSystemHelper
.SuppliesToString(
m_fItemSupplyCost
));
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_ResourceSystemHelper
Definition
SCR_ResourceSystemHelper.c:2
SCR_SupplyCostItemHintUIInfo
Definition
SCR_SupplyCostItemHintUIInfo.c:3
SCR_SupplyCostItemHintUIInfo::GetItemHintName
override string GetItemHintName(InventoryItemComponent item)
Definition
SCR_SupplyCostItemHintUIInfo.c:22
SCR_SupplyCostItemHintUIInfo::m_fItemSupplyCost
float m_fItemSupplyCost
Definition
SCR_SupplyCostItemHintUIInfo.c:4
SCR_SupplyCostItemHintUIInfo::SetSupplyCost
void SetSupplyCost(float supplyCost)
Definition
SCR_SupplyCostItemHintUIInfo.c:7
SCR_SupplyCostItemHintUIInfo::CanBeShown
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
Definition
SCR_SupplyCostItemHintUIInfo.c:13
WidgetManager
Definition
WidgetManager.c:16
scripts
Game
Editor
Containers
UIInfo
SCR_SupplyCostItemHintUIInfo.c
Generated by
1.17.0