Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ValuableIntelItemHintUIInfo.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true)]
2class SCR_ValuableIntelItemHintUIInfo : SCR_InventoryItemHintUIInfo
3{
5
6 //------------------------------------------------------------------------------------------------
7 void SetIntel(SCR_IdentityInventoryItemComponent intelItem)
8 {
9 m_IntelFaction = intelItem.GetValuableIntelFaction();
10
11 Faction playerFaction = SCR_FactionManager.SGetLocalPlayerFaction();
12 if (!playerFaction)
13 return;
14
15 UIInfo uiInfo = playerFaction.GetUIInfo();
16 if (!uiInfo)
17 return;
18
19 Icon = uiInfo.GetIconPath();
20 }
21
22 //------------------------------------------------------------------------------------------------
23 override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
24 {
25 if (!m_IntelFaction)
26 return false;
27
28 return super.CanBeShown(item, focusedSlot);
29 }
30}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_FactionManager(IEntitySource src, IEntity parent)
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
void SetIntel(SCR_IdentityInventoryItemComponent intelItem)
UIInfo - allows to define UI elements.
Definition UIInfo.c:14