Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
WeaponUIInfo.c
Go to the documentation of this file.
1
class
WeaponUIInfo
:
UIInfo
4
{
5
// Show weapon name indicator in weapon UI
6
[
Attribute
(
"false"
, UIWidgets.CheckBox,
"Show weapon name indicator in weapon UI."
)]
7
protected
bool
m_bShowWeaponName;
8
9
bool
ShowWeaponName()
10
{
11
return
m_bShowWeaponName;
12
}
13
14
[
Attribute
(
""
, UIWidgets.Object)]
15
ref
SCR_MagazineIndicatorConfiguration
m_MagIndicator;
16
};
17
18
class
GrenadeUIInfo
:
WeaponUIInfo
19
{
21
[
Attribute
(
""
, UIWidgets.EditBox,
"Magazine type (AP, Tracer, Ball, ...). Used for Weapon Info UI."
,
""
)]
22
protected
string
m_sAmmoType;
23
24
// Returns m_sAmmoCalibar if it's defined. Otherwise returns magazine name from the inventory component.
25
string
GetAmmoType()
26
{
27
return
m_sAmmoType;
28
}
29
30
// Magazine icon behaviour in weapon UI
31
[
Attribute
(
"false"
, UIWidgets.CheckBox,
"Show ammo type extra text next to ammo type icon(s) in Weapon Info UI."
)]
32
protected
bool
m_bShowAmmoTypeText;
33
34
bool
ShowAmmoTypeText()
35
{
36
return
m_bShowAmmoTypeText;
37
}
38
40
[
Attribute
(
"1"
, UIWidgets.Flags,
"Set magazine ammo type flags."
,
""
, ParamEnumArray.FromEnum(
EAmmoType
) )]
41
EAmmoType
m_eAmmoTypeFlags;
42
43
EAmmoType
GetAmmoTypeFlags()
44
{
45
return
m_eAmmoTypeFlags;
46
}
47
};
UIInfo
UIInfo - declare object, allows to define UI elements.
Definition:
UIInfo.c:13
Attribute
typedef Attribute
Post-process effect of scripted camera.
WeaponUIInfo
Definition:
WeaponUIInfo.c:3
EAmmoType
EAmmoType
Definition:
SCR_WeaponInfo.c:10
SCR_MagazineIndicatorConfiguration
Definition:
SCR_MagazineIndicatorConfiguration.c:4
GrenadeUIInfo
Definition:
WeaponUIInfo.c:18
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
WeaponUIInfo.c
Generated by
1.8.17