Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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
116enum EAssetTrait
117{
123 FAST
124}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UIInfoAssetCard REFUELING
UIInfoAssetCard ANTI_AIR
UIInfoAssetCard TRANSPORT
UIInfoAssetCard ANTI_TANK
Definition Color.c:13
SCR_FieldOfViewSettings Attribute