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_SupplyRefundItemHintUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_SupplyRefundItemHintUIInfo
: SCR_InventoryItemHintUIInfo
3
{
4
protected
float
m_fItemSupplyRefund
= -1;
5
protected
bool
m_bIsSupplyStorageAvailable
;
6
7
//------------------------------------------------------------------------------------------------
8
void
SetSupplyRefund
(
float
supplyRefund,
bool
isSupplyStorageAvailable)
9
{
10
m_fItemSupplyRefund
= supplyRefund;
11
m_bIsSupplyStorageAvailable
= isSupplyStorageAvailable;
12
}
13
14
//------------------------------------------------------------------------------------------------
15
override
bool
CanBeShown
(
InventoryItemComponent
item,
SCR_InventorySlotUI
focusedSlot)
16
{
17
return
item &&
m_fItemSupplyRefund
>= 0 && super.CanBeShown(item, focusedSlot);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
string
GetItemHintName
(
InventoryItemComponent
item)
22
{
23
if
(
m_fItemSupplyRefund
== 0 ||
m_bIsSupplyStorageAvailable
)
24
return
WidgetManager
.Translate(
GetName
(),
SCR_ResourceSystemHelper
.SuppliesToString(
m_fItemSupplyRefund
));
25
else
26
return
WidgetManager
.Translate(GetDescription(),
SCR_ResourceSystemHelper
.SuppliesToString(
m_fItemSupplyRefund
));
27
}
28
}
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_SupplyRefundItemHintUIInfo
Definition
SCR_SupplyRefundItemHintUIInfo.c:3
SCR_SupplyRefundItemHintUIInfo::CanBeShown
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
Definition
SCR_SupplyRefundItemHintUIInfo.c:15
SCR_SupplyRefundItemHintUIInfo::SetSupplyRefund
void SetSupplyRefund(float supplyRefund, bool isSupplyStorageAvailable)
Definition
SCR_SupplyRefundItemHintUIInfo.c:8
SCR_SupplyRefundItemHintUIInfo::GetItemHintName
override string GetItemHintName(InventoryItemComponent item)
Definition
SCR_SupplyRefundItemHintUIInfo.c:21
SCR_SupplyRefundItemHintUIInfo::m_fItemSupplyRefund
float m_fItemSupplyRefund
Definition
SCR_SupplyRefundItemHintUIInfo.c:4
SCR_SupplyRefundItemHintUIInfo::m_bIsSupplyStorageAvailable
bool m_bIsSupplyStorageAvailable
Definition
SCR_SupplyRefundItemHintUIInfo.c:5
WidgetManager
Definition
WidgetManager.c:16
scripts
Game
Editor
Containers
UIInfo
SCR_SupplyRefundItemHintUIInfo.c
Generated by
1.17.0