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_SupplyStoredItemHintUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_SupplyStoredItemHintUIInfo
:
SCR_BaseSupplyItemHintUIInfo
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
CanBeShown(
InventoryItemComponent
item,
SCR_InventorySlotUI
focusedSlot)
6
{
7
if
(!super.CanBeShown(item, focusedSlot))
8
return
false
;
9
10
float
totalResources, maxResources;
11
return
SCR_ResourceSystemHelper
.GetStoredAndMaxResources(
m_ResourceComponent
, totalResources, maxResources);
12
}
13
14
//------------------------------------------------------------------------------------------------
15
override
string
GetItemHintName(
InventoryItemComponent
item)
16
{
17
if
(!
m_ResourceComponent
)
18
return
super.GetItemHintName(item);
19
20
float
totalResources, maxResources;
21
SCR_ResourceSystemHelper
.GetStoredAndMaxResources(
m_ResourceComponent
, totalResources, maxResources);
22
23
float
additionalTotalResources, additionalMaxResources;
24
SCR_SupplyInventorySlotUI
supplySlot =
SCR_SupplyInventorySlotUI
.Cast(m_LastFocusedSlot);
25
if
(supplySlot)
26
supplySlot.
GetAdditionalResourceValuesFromStack
(additionalTotalResources, additionalMaxResources);
27
28
return
WidgetManager
.Translate(
29
GetName
(),
30
SCR_ResourceSystemHelper
.SuppliesToString(totalResources + additionalTotalResources),
31
SCR_ResourceSystemHelper
.SuppliesToString(maxResources + additionalMaxResources));
32
}
33
}
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_BaseSupplyItemHintUIInfo
Definition
SCR_BaseSupplyItemHintUIInfo.c:3
SCR_BaseSupplyItemHintUIInfo::m_ResourceComponent
SCR_ResourceComponent m_ResourceComponent
Definition
SCR_BaseSupplyItemHintUIInfo.c:4
SCR_InventorySlotUI
Definition
SCR_InventorySlotUI.c:26
SCR_ResourceSystemHelper
Definition
SCR_ResourceSystemHelper.c:2
SCR_SupplyInventorySlotUI
Definition
SCR_SupplyInventorySlotUI.c:3
SCR_SupplyInventorySlotUI::GetAdditionalResourceValuesFromStack
void GetAdditionalResourceValuesFromStack(out float addTotalResources, out float addMaxResources)
Definition
SCR_SupplyInventorySlotUI.c:205
SCR_SupplyStoredItemHintUIInfo
Definition
SCR_SupplyStoredItemHintUIInfo.c:3
WidgetManager
Definition
WidgetManager.c:16
scripts
Game
Editor
Containers
UIInfo
SCR_SupplyStoredItemHintUIInfo.c
Generated by
1.17.0