Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InventoryUIInfo.c
Go to the documentation of this file.
3 {
4  [Attribute("0", desc: "Set the icon visible in inventory hint.")]
5  protected bool m_bShowIconInInventory;
6 
7  [Attribute("0 0 0 1")]
8  protected ref Color m_IconColor;
9 
10  [Attribute(desc: "HintsArray")]
11  protected ref array<ref SCR_InventoryItemHintUIInfo> m_aItemHints;
12 
13  //------------------------------------------------------------------------------------------------
15  string GetInventoryItemName(InventoryItemComponent item)
16  {
17  return GetName();
18  }
19 
20  //------------------------------------------------------------------------------------------------
22  string GetInventoryItemDescription(InventoryItemComponent item)
23  {
24  return GetDescription();
25  }
26 
27  //------------------------------------------------------------------------------------------------
28  bool IsIconVisible()
29  {
30  return m_bShowIconInInventory;
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  Color GetIconColor()
35  {
36  return Color.FromInt(m_IconColor.PackToInt());
37  }
38 
39  //------------------------------------------------------------------------------------------------
40  void GetItemHintArray(notnull out array<SCR_InventoryItemHintUIInfo> uiInfoArray)
41  {
42  uiInfoArray.Clear();
43 
44  foreach(SCR_InventoryItemHintUIInfo itemHint : m_aItemHints)
45  {
46  uiInfoArray.Insert(itemHint);
47  }
48  }
49 }
GetName
string GetName()
Definition: SCR_ScenarioFrameworkLayerBase.c:85
UIInfo
UIInfo - declare object, allows to define UI elements.
Definition: UIInfo.c:13
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_InventoryUIInfo
Definition: SCR_InventoryUIInfo.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
InventoryItemComponent
Definition: InventoryItemComponent.c:12
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468