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_CacheNoteUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_CacheNoteUIInfo
:
SCR_InventoryUIInfo
3
{
4
//------------------------------------------------------------------------------------------------
5
override
string
GetInventoryItemDescription(
InventoryItemComponent
item)
6
{
7
IEntity
owner = item.GetOwner();
8
SCR_CacheNoteComponent noteComp = SCR_CacheNoteComponent.Cast(owner.
FindComponent
(SCR_CacheNoteComponent));
9
if
(!noteComp)
10
return
GetDescription();
11
12
array<string> lines = noteComp.GetNoteLines();
13
if
(lines.IsEmpty())
14
return
GetDescription();
15
16
return
SCR_StringHelper
.
Join
(
SCR_StringHelper
.LINE_RETURN, lines);
17
}
18
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
InventoryItemComponent
Definition
InventoryItemComponent.c:13
SCR_CacheNoteUIInfo
Definition
SCR_CacheNoteUIInfo.c:3
SCR_InventoryUIInfo
Definition
SCR_InventoryUIInfo.c:3
SCR_StringHelper
Definition
SCR_StringHelper.c:2
SCR_StringHelper::Join
static string Join(string separator, notnull array< string > pieces, bool joinEmptyEntries=true)
Definition
SCR_StringHelper.c:641
scripts
Game
Caches
SCR_CacheNoteUIInfo.c
Generated by
1.17.0