Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CacheNoteUIInfo.c
Go to the documentation of this file.
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
proto external Managed FindComponent(typename typeName)
static string Join(string separator, notnull array< string > pieces, bool joinEmptyEntries=true)