Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
c
f
l
m
o
p
r
s
t
Enumerations
a
b
c
d
e
f
g
i
k
l
m
p
r
s
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
return
WidgetManager.Translate(
GetName
(),
SCR_ResourceSystemHelper
.SuppliesToString(totalResources),
SCR_ResourceSystemHelper
.SuppliesToString(maxResources));
24
}
25
}
GetName
string GetName()
Definition:
SCR_ScenarioFrameworkLayerBase.c:85
SCR_ResourceSystemHelper
Definition:
SCR_ResourceSystemHelper.c:1
m_ResourceComponent
protected SCR_ResourceComponent m_ResourceComponent
Definition:
SCR_CampaignBuildingProviderComponent.c:51
InventoryItemComponent
Definition:
InventoryItemComponent.c:12
SCR_SupplyStoredItemHintUIInfo
Definition:
SCR_SupplyStoredItemHintUIInfo.c:2
SCR_InventorySlotUI
Definition:
SCR_InventorySlotUI.c:27
SCR_BaseSupplyItemHintUIInfo
Definition:
SCR_BaseSupplyItemHintUIInfo.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
UIInfo
SCR_SupplyStoredItemHintUIInfo.c
Generated by
1.8.17