Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
UIInfoAssetCard.c
Go to the documentation of this file.
3 {
4  [Attribute("0.0 0.0 0.0 1.0", uiwidget: UIWidgets.ColorPicker)]
5  private ref Color m_TextColor;
6 
7  [Attribute(params: "edds imageset")]
8  private ResourceName m_TitleBackground;
9 
10  [Attribute(params: "edds imageset")]
11  private ResourceName m_Image;
12 
13  [Attribute("1.0 1.0 1.0 1.0", uiwidget: UIWidgets.ColorPicker)]
14  private ref Color m_FactionColor;
15 
16  [Attribute(params: "edds imageset")]
17  private ResourceName m_IconBackground;
18 
19  [Attribute()]
20  private bool m_bModded;
21 
22  [Attribute(params: "edds imageset")]
23  private ResourceName m_ModsetIcon;
24 
25  [Attribute(params: "edds imageset")]
26  private ResourceName m_ModsetFrame;
27 
28  [Attribute(params: "edds imageset")]
29  private ResourceName m_ModsetLabel;
30 
31  [Attribute(params: "edds imageset")]
32  private ResourceName m_CardBackground;
33 
34  [Attribute("1", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EAssetTrait))]
35  private ref array<EAssetTrait> m_aTraits;
36 
37  //------------------------------------------------------------------------------------------------
39  Color GetTextColor()
40  {
41  return Color.FromInt(m_TextColor.PackToInt());
42  }
43 
44  //------------------------------------------------------------------------------------------------
46  ResourceName GetTitleBackgroundPath()
47  {
48  return m_TitleBackground;
49  }
50 
51  //------------------------------------------------------------------------------------------------
53  ResourceName GetImagePath()
54  {
55  return m_Image;
56  }
57 
58  //------------------------------------------------------------------------------------------------
60  Color GetFactionColor()
61  {
62  return Color.FromInt(m_FactionColor.PackToInt());
63  }
64 
65  //------------------------------------------------------------------------------------------------
67  ResourceName GetIconBackgroundPath()
68  {
69  return m_IconBackground;
70  }
71 
72  //------------------------------------------------------------------------------------------------
74  bool GetModded()
75  {
76  return m_bModded;
77  }
78 
79  //------------------------------------------------------------------------------------------------
81  ResourceName GetModsetIcon()
82  {
83  return m_ModsetIcon;
84  }
85 
86  //------------------------------------------------------------------------------------------------
88  ResourceName GetModsetFrame()
89  {
90  return m_ModsetFrame;
91  }
92 
93  //------------------------------------------------------------------------------------------------
95  ResourceName GetModsetLabel()
96  {
97  return m_ModsetLabel;
98  }
99 
100  //------------------------------------------------------------------------------------------------
102  ResourceName GetCardBackground()
103  {
104  return m_CardBackground;
105  }
106 
107  //------------------------------------------------------------------------------------------------
109  int GetTraits(out notnull array<EAssetTrait> outTraits)
110  {
111  if (!m_aTraits) return 0;
112  return outTraits.Copy(m_aTraits);
113  }
114 }
115 
116 enum EAssetTrait
117 {
118  ANTI_TANK,
119  ANTI_AIR,
120  MEDICAL,
121  REFUELING,
122  TRANSPORT,
123  FAST
124 }
UIInfoAssetCard
Definition: UIInfoAssetCard.c:2
ANTI_AIR
UIInfoAssetCard ANTI_AIR
MEDICAL
UIInfoAssetCard MEDICAL
ANTI_TANK
UIInfoAssetCard ANTI_TANK
Attribute
typedef Attribute
Post-process effect of scripted camera.
TRANSPORT
UIInfoAssetCard TRANSPORT
SCR_UIInfo
Definition: SCR_UIInfo.c:7
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
REFUELING
UIInfoAssetCard REFUELING
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