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_DamageStateUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerLocalizedTitleField
(
"Name"
)]
2
class
SCR_DamageStateUIInfo
:
SCR_UIInfo
3
{
4
[
Attribute
(
"1.0 1.0 1.0 1.0"
,
desc
:
"Main color of icon"
)]
5
protected
ref
Color
m_Color
;
6
7
[
Attribute
(
"1.0 1.0 1.0 1.0"
,
desc
:
"Main color of background"
)]
8
protected
ref
Color
m_BackgroundColor
;
9
10
[
Attribute
(
"1.0 1.0 1.0 1.0"
,
desc
:
"Main color of outline"
)]
11
protected
ref
Color
m_OutlineColor
;
12
13
[
Attribute
(
"1.0 1.0 1.0 1.0"
,
desc
:
"Regeneration color of background"
)]
14
protected
ref
Color
m_BackgroundColorRegen
;
15
16
[
Attribute
(
"1.0 1.0 1.0 1.0"
,
desc
:
"Regeneration color of outline"
)]
17
protected
ref
Color
m_OutlineColorRegen
;
18
19
[
Attribute
(
"{B9199157B90D6216}UI/Textures/InventoryIcons/Medical/Medical-icons.imageset"
,
params
:
"edds, imageset"
, uiwidget:
UIWidgets
.ResourcePickerThumbnail)]
20
protected
ResourceName
m_sOutlineImage
;
21
22
[
Attribute
(
"Hitzone-outline_UI"
,
desc
:
"Quad name of the outline image (if using an imageset"
)]
23
protected
string
m_sOutlineQuadName
;
24
25
[
Attribute
(
"{B9199157B90D6216}UI/Textures/InventoryIcons/Medical/Medical-icons.imageset"
,
params
:
"edds, imageset"
, uiwidget:
UIWidgets
.ResourcePickerThumbnail)]
26
protected
ResourceName
m_sBackgroundImage
;
27
28
[
Attribute
(
"Hitzone-BG_UI"
,
desc
:
"Quad name of the background image (if using an imageset"
)]
29
protected
string
m_sBackgroundQuadName
;
30
31
[
Attribute
(
""
,
desc
:
"Used for access of multiple icons from a single imageset"
)]
32
protected
ref array<string>
m_aIconNames
;
33
34
//------------------------------------------------------------------------------------------------
37
Color
GetColor
()
38
{
39
return
Color
.FromInt(
m_Color
.PackToInt());
40
}
41
42
//------------------------------------------------------------------------------------------------
45
Color
GetBackgroundColor
()
46
{
47
return
Color
.FromInt(
m_BackgroundColor
.PackToInt());
48
}
49
50
//------------------------------------------------------------------------------------------------
53
Color
GetOutlineColor
()
54
{
55
return
Color
.FromInt(
m_OutlineColor
.PackToInt());
56
}
57
58
//------------------------------------------------------------------------------------------------
61
Color
GetBackgroundColorRegen
()
62
{
63
return
Color
.FromInt(
m_BackgroundColorRegen
.PackToInt());
64
}
65
66
//------------------------------------------------------------------------------------------------
69
Color
GetOutlineColorRegen
()
70
{
71
return
Color
.FromInt(
m_OutlineColorRegen
.PackToInt());
72
}
73
74
//------------------------------------------------------------------------------------------------
77
ResourceName
GetOutlineImage
()
78
{
79
return
m_sOutlineImage
;
80
}
81
82
//------------------------------------------------------------------------------------------------
85
ResourceName
GetBackgroundImage
()
86
{
87
return
m_sBackgroundImage
;
88
}
89
90
//------------------------------------------------------------------------------------------------
93
string
GetOutlineQuadName
()
94
{
95
return
m_sOutlineQuadName
;
96
}
97
98
//------------------------------------------------------------------------------------------------
101
string
GetBackgroundQuadName
()
102
{
103
return
m_sBackgroundQuadName
;
104
}
105
106
//------------------------------------------------------------------------------------------------
111
bool
SetImageTo
(
ImageWidget
imageWidget,
ResourceName
imageRes,
string
quadName =
string
.Empty)
112
{
113
if
(!imageWidget)
114
return
false
;
115
116
string
ext;
117
FilePath
.StripExtension(imageRes, ext);
118
if
(ext ==
"imageset"
)
119
return
imageWidget.LoadImageFromSet(0, imageRes, quadName);
120
else
121
return
imageWidget.LoadImageTexture(0, imageRes);
122
123
return
true
;
124
}
125
126
//------------------------------------------------------------------------------------------------
131
bool
SetIconTo
(
ImageWidget
imageWidget,
int
iconIndex)
132
{
133
if
(!imageWidget ||
Icon
.IsEmpty())
134
return
false
;
135
136
string
ext;
137
FilePath
.StripExtension(
Icon
, ext);
138
if
(ext ==
"imageset"
)
139
imageWidget.LoadImageFromSet(0,
Icon
,
GetIconSetName
(iconIndex));
140
else
141
imageWidget.LoadImageTexture(0,
GetIconPath
());
142
143
return
true
;
144
}
145
146
//------------------------------------------------------------------------------------------------
150
string
GetIconSetName
(
int
iconIndex)
151
{
152
if
(!
m_aIconNames
|| !
m_aIconNames
.IsIndexValid(iconIndex))
153
return
GetIconSetName
();
154
155
return
m_aIconNames
[iconIndex];
156
}
157
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerLocalizedTitleField
SCR_PlayerCommandingConfigActionPair Managed SCR_BaseContainerLocalizedTitleField("m_sCommandName")
Definition
SCR_PlayerCommandsConfig.c:58
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
Color
Definition
Color.c:13
FilePath
Definition
FilePath.c:13
ImageWidget
Definition
ImageWidget.c:13
ResourceName
Definition
ResourceName.c:13
SCR_DamageStateUIInfo
Definition
SCR_DamageStateUIInfo.c:3
SCR_DamageStateUIInfo::SetImageTo
bool SetImageTo(ImageWidget imageWidget, ResourceName imageRes, string quadName=string.Empty)
Definition
SCR_DamageStateUIInfo.c:111
SCR_DamageStateUIInfo::GetIconSetName
string GetIconSetName(int iconIndex)
Definition
SCR_DamageStateUIInfo.c:150
SCR_DamageStateUIInfo::m_OutlineColor
ref Color m_OutlineColor
Definition
SCR_DamageStateUIInfo.c:11
SCR_DamageStateUIInfo::GetOutlineQuadName
string GetOutlineQuadName()
Definition
SCR_DamageStateUIInfo.c:93
SCR_DamageStateUIInfo::GetOutlineImage
ResourceName GetOutlineImage()
Definition
SCR_DamageStateUIInfo.c:77
SCR_DamageStateUIInfo::GetBackgroundColorRegen
Color GetBackgroundColorRegen()
Definition
SCR_DamageStateUIInfo.c:61
SCR_DamageStateUIInfo::GetBackgroundQuadName
string GetBackgroundQuadName()
Definition
SCR_DamageStateUIInfo.c:101
SCR_DamageStateUIInfo::m_BackgroundColor
ref Color m_BackgroundColor
Definition
SCR_DamageStateUIInfo.c:8
SCR_DamageStateUIInfo::m_Color
ref Color m_Color
Definition
SCR_DamageStateUIInfo.c:5
SCR_DamageStateUIInfo::GetBackgroundColor
Color GetBackgroundColor()
Definition
SCR_DamageStateUIInfo.c:45
SCR_DamageStateUIInfo::SetIconTo
bool SetIconTo(ImageWidget imageWidget, int iconIndex)
Definition
SCR_DamageStateUIInfo.c:131
SCR_DamageStateUIInfo::GetBackgroundImage
ResourceName GetBackgroundImage()
Definition
SCR_DamageStateUIInfo.c:85
SCR_DamageStateUIInfo::m_BackgroundColorRegen
ref Color m_BackgroundColorRegen
Definition
SCR_DamageStateUIInfo.c:14
SCR_DamageStateUIInfo::m_OutlineColorRegen
ref Color m_OutlineColorRegen
Definition
SCR_DamageStateUIInfo.c:17
SCR_DamageStateUIInfo::m_sOutlineQuadName
string m_sOutlineQuadName
Definition
SCR_DamageStateUIInfo.c:23
SCR_DamageStateUIInfo::m_aIconNames
ref array< string > m_aIconNames
Definition
SCR_DamageStateUIInfo.c:32
SCR_DamageStateUIInfo::GetOutlineColor
Color GetOutlineColor()
Definition
SCR_DamageStateUIInfo.c:53
SCR_DamageStateUIInfo::m_sBackgroundQuadName
string m_sBackgroundQuadName
Definition
SCR_DamageStateUIInfo.c:29
SCR_DamageStateUIInfo::m_sBackgroundImage
ResourceName m_sBackgroundImage
Definition
SCR_DamageStateUIInfo.c:26
SCR_DamageStateUIInfo::m_sOutlineImage
ResourceName m_sOutlineImage
Definition
SCR_DamageStateUIInfo.c:20
SCR_DamageStateUIInfo::GetColor
Color GetColor()
Definition
SCR_DamageStateUIInfo.c:37
SCR_DamageStateUIInfo::GetOutlineColorRegen
Color GetOutlineColorRegen()
Definition
SCR_DamageStateUIInfo.c:69
SCR_UIInfo
Definition
SCR_UIInfo.c:8
SCR_UIInfo::GetIconSetName
string GetIconSetName()
Definition
SCR_UIInfo.c:65
SCR_UIInfo::GetIconPath
ResourceName GetIconPath()
Definition
SCR_UIInfo.c:20
SCR_UIInfo::Icon
ResourceName Icon
Definition
SCR_UIInfo.c:10
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
UIInfo
SCR_DamageStateUIInfo.c
Generated by
1.17.0