Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
WeaponUIInfo.c
Go to the documentation of this file.
1
3
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
};
EAmmoType
EAmmoType
Definition
SCR_WeaponInfo.c:11
GrenadeUIInfo
Definition
WeaponUIInfo.c:19
GrenadeUIInfo::m_bShowAmmoTypeText
bool m_bShowAmmoTypeText
Definition
WeaponUIInfo.c:32
GrenadeUIInfo::GetAmmoTypeFlags
EAmmoType GetAmmoTypeFlags()
Definition
WeaponUIInfo.c:43
GrenadeUIInfo::m_eAmmoTypeFlags
EAmmoType m_eAmmoTypeFlags
Magazine ammo type flags, used for displaying ammo type icons on weapon UI.
Definition
WeaponUIInfo.c:41
GrenadeUIInfo::ShowAmmoTypeText
bool ShowAmmoTypeText()
Definition
WeaponUIInfo.c:34
GrenadeUIInfo::m_sAmmoType
string m_sAmmoType
Magazine type string (AP, tracer, ball), as if it was written on this magazine. Used for Weapon Info ...
Definition
WeaponUIInfo.c:22
GrenadeUIInfo::GetAmmoType
string GetAmmoType()
Definition
WeaponUIInfo.c:25
SCR_MagazineIndicatorConfiguration
Definition
SCR_MagazineIndicatorConfiguration.c:5
UIInfo
UIInfo - allows to define UI elements.
Definition
UIInfo.c:14
UIWidgets
Definition
attributes.c:40
WeaponUIInfo
Definition
WeaponUIInfo.c:4
WeaponUIInfo::m_MagIndicator
ref SCR_MagazineIndicatorConfiguration m_MagIndicator
Definition
WeaponUIInfo.c:15
WeaponUIInfo::m_bShowWeaponName
bool m_bShowWeaponName
Definition
WeaponUIInfo.c:7
WeaponUIInfo::ShowWeaponName
bool ShowWeaponName()
Definition
WeaponUIInfo.c:9
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
WeaponUIInfo.c
Generated by
1.17.0