Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_IdentityItemInventoryUIInfo.c
Go to the documentation of this file.
3{
4 protected const LocalizedString INTEL_TEXT = "#AR-Item_Identity_ValuableIntel";
5
6 //------------------------------------------------------------------------------------------------
8 {
9 SCR_IdentityInventoryItemComponent identityItem = SCR_IdentityInventoryItemComponent.Cast(item);
10 if (!identityItem)
11 return super.GetInventoryItemDescription(item);
12
13 SCR_ExtendedIdentityComponent identityComponent = identityItem.GetLinkedExtendedIdentity();
14 if (!identityComponent)
15 return GetValuableIntelItemDescription(item, identityItem);
16
17 //~ Do not set description as it is handled by the Identity UI
18 return string.Empty;
19 }
20
21 //------------------------------------------------------------------------------------------------
22 protected string GetValuableIntelItemDescription(InventoryItemComponent item, SCR_IdentityInventoryItemComponent identityItem)
23 {
24 if (!identityItem || !identityItem.HasValuableIntel())
25 return super.GetInventoryItemDescription(item);
26
27 return super.GetInventoryItemDescription(item) + "\n\n" + INTEL_TEXT;
28
29 }
30}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetValuableIntelItemDescription(InventoryItemComponent item, SCR_IdentityInventoryItemComponent identityItem)
override string GetInventoryItemDescription(InventoryItemComponent item)