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_ValuableIntelItemHintUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(configRoot:
true
)]
2
class
SCR_ValuableIntelItemHintUIInfo
: SCR_InventoryItemHintUIInfo
3
{
4
protected
Faction
m_IntelFaction
;
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_FactionManager
void SCR_FactionManager(IEntitySource src, IEntity parent)
Definition
SCR_FactionManager.c:498
Faction
Definition
Faction.c:13
InventoryItemComponent
Definition
InventoryItemComponent.c:13
SCR_InventorySlotUI
Definition
SCR_InventorySlotUI.c:26
SCR_ValuableIntelItemHintUIInfo
Definition
SCR_ValuableIntelItemHintUIInfo.c:3
SCR_ValuableIntelItemHintUIInfo::CanBeShown
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
Definition
SCR_ValuableIntelItemHintUIInfo.c:23
SCR_ValuableIntelItemHintUIInfo::SetIntel
void SetIntel(SCR_IdentityInventoryItemComponent intelItem)
Definition
SCR_ValuableIntelItemHintUIInfo.c:7
SCR_ValuableIntelItemHintUIInfo::m_IntelFaction
Faction m_IntelFaction
Definition
SCR_ValuableIntelItemHintUIInfo.c:4
UIInfo
UIInfo - allows to define UI elements.
Definition
UIInfo.c:14
scripts
Game
Editor
Containers
UIInfo
SCR_ValuableIntelItemHintUIInfo.c
Generated by
1.17.0