Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
MuzzleUIInfo.c
Go to the documentation of this file.
1 class MuzzleUIInfo : UIInfo
4 {
5  // Show caliber indicator in weapon UI
6  [Attribute("false", UIWidgets.CheckBox, "Show caliber indicator in weapon UI.")]
7  protected bool m_bShowCaliber;
8 
9  bool ShowCaliber()
10  {
11  return m_bShowCaliber;
12  }
13 
15  [Attribute("", "auto", "Caliber identification, e.g. 7.62×39mm")]
16  protected string m_sCaliber;
17 
18  string GetCaliber()
19  {
20  return m_sCaliber;
21  }
22 
23  // Magazine icon behaviour in weapon UI
24  [Attribute("true", UIWidgets.CheckBox, "Show firemode indicator.")]
25  protected bool m_bShowFiremode;
26 
27  bool ShowFiremodeIcon()
28  {
29  return m_bShowFiremode;
30  }
31 
32 
34  [Attribute("{3BB05C675B05A74B}UI/Textures/WeaponInfo/icons_weaponInfo.imageset", UIWidgets.ResourceNamePicker, "Imageset with most of weapon info textures", "imageset")]
35  protected ResourceName m_sFiremodeIconImageset;
36 
37  ResourceName GetFiremodeIconImageset()
38  {
39  return m_sFiremodeIconImageset;
40  }
41 
43  [Attribute("{4E003F94B2A00561}UI/Textures/WeaponInfo/icons_weaponInfo-glow.imageset", UIWidgets.ResourceNamePicker, "Imageset with most of weapon info textures", "imageset")]
44  protected ResourceName m_sFiremodeGlowImageset;
45 
46  ResourceName GetFiremodeGlowImageset()
47  {
48  return m_sFiremodeGlowImageset;
49  }
50 
52  [Attribute("firemode-rifle-single", "auto", "Firemode indicator - single shot")]
53  protected string m_sFiremodeSingle;
54 
56  [Attribute("firemode-rifle-burst3", "auto", "Firemode indicator - burst")]
57  protected string m_sFiremodeBurst;
58 
60  [Attribute("firemode-rifle-auto", "auto", "Firemode indicator - full auto")]
61  protected string m_sFiremodeAuto;
62 
64  [Attribute("firemode-safety", "auto", "Firemode indicator - safety", "edds")]
65  protected string m_sFiremodeSafety;
66 
67  string GetFiremodeIconName(EWeaponFiremodeType firemode)
68  {
69  string icon = "";
70 
71  switch (firemode)
72  {
73  case EWeaponFiremodeType.Semiauto:
74  icon = m_sFiremodeSingle;
75  break;
76 
77  case EWeaponFiremodeType.Burst:
78  icon = m_sFiremodeBurst;
79  break;
80 
81  case EWeaponFiremodeType.Auto:
82  icon = m_sFiremodeAuto;
83  break;
84 
85  case EWeaponFiremodeType.Safety:
86  icon = m_sFiremodeSafety;
87  break;
88 
89  default:
90  icon = m_sFiremodeSingle;
91  break;
92  }
93 
94  return icon;
95  }
96 
97  [Attribute("", UIWidgets.Object)]
98  ref SCR_MagazineIndicatorConfiguration m_MagIndicator;
99 };
UIInfo
UIInfo - declare object, allows to define UI elements.
Definition: UIInfo.c:13
EWeaponFiremodeType
EWeaponFiremodeType
Definition: EWeaponFiremodeType.c:12
MuzzleUIInfo
Definition: MuzzleUIInfo.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_MagazineIndicatorConfiguration
Definition: SCR_MagazineIndicatorConfiguration.c:4