6 static const ResourceName s_sLayout =
"{8170DE93810F928A}UI/layouts/HUD/WeaponInfo/WeaponInfo.layout";
7 ResourceName GetLayout() {
return s_sLayout; }
9 VerticalLayoutWidget m_WeaponInfoPanel;
11 HorizontalLayoutWidget m_Optics;
13 RichTextWidget m_OpticsText;
15 HorizontalLayoutWidget m_Zeroing;
17 RichTextWidget m_ZeroingText;
19 HorizontalLayoutWidget m_AmmoType;
21 RichTextWidget m_AmmoTypeText;
23 OverlayWidget m_AmmoType_Sniper;
25 OverlayWidget m_AmmoType_Incendiary;
27 OverlayWidget m_AmmoType_Smoke;
29 OverlayWidget m_AmmoType_Frag;
31 OverlayWidget m_AmmoType_HEAT;
33 OverlayWidget m_AmmoType_HE;
35 OverlayWidget m_AmmoType_AP;
37 OverlayWidget m_AmmoType_FMJ;
39 OverlayWidget m_AmmoType_Tracer;
41 HorizontalLayoutWidget m_Main;
43 OverlayWidget m_Firemode;
45 ImageWidget m_FiremodeGlow;
47 ImageWidget m_FiremodeIcon;
49 OverlayWidget m_MagazineIndicator;
51 ImageWidget m_MagazineGlow;
53 ImageWidget m_MagazineBackground;
55 ImageWidget m_MagazineOutline;
57 ImageWidget m_MagazineProgress;
59 ImageWidget m_ReloadBackground;
61 ImageWidget m_ReloadOutline;
63 SizeLayoutWidget m_MagCount;
65 RichTextWidget m_MagCountText;
67 HorizontalLayoutWidget m_WeaponNameAndCaliber;
69 RichTextWidget m_Caliber;
71 RichTextWidget m_WeaponName;
73 bool Init(Widget root)
75 m_WeaponInfoPanel = VerticalLayoutWidget.Cast(root.FindAnyWidget(
"m_WeaponInfoPanel"));
77 m_Optics = HorizontalLayoutWidget.Cast(root.FindAnyWidget(
"m_Optics"));
79 m_OpticsText = RichTextWidget.Cast(root.FindAnyWidget(
"m_OpticsText"));
81 m_Zeroing = HorizontalLayoutWidget.Cast(root.FindAnyWidget(
"m_Zeroing"));
83 m_ZeroingText = RichTextWidget.Cast(root.FindAnyWidget(
"m_ZeroingText"));
85 m_AmmoType = HorizontalLayoutWidget.Cast(root.FindAnyWidget(
"m_AmmoType"));
87 m_AmmoTypeText = RichTextWidget.Cast(root.FindAnyWidget(
"m_AmmoTypeText"));
89 m_AmmoType_Sniper = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_Sniper"));
91 m_AmmoType_Incendiary = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_Incendiary"));
93 m_AmmoType_Smoke = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_Smoke"));
95 m_AmmoType_Frag = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_Frag"));
97 m_AmmoType_HEAT = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_HEAT"));
99 m_AmmoType_HE = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_HE"));
101 m_AmmoType_AP = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_AP"));
103 m_AmmoType_FMJ = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_FMJ"));
105 m_AmmoType_Tracer = OverlayWidget.Cast(root.FindAnyWidget(
"m_AmmoType_Tracer"));
107 m_Main = HorizontalLayoutWidget.Cast(root.FindAnyWidget(
"m_Main"));
109 m_Firemode = OverlayWidget.Cast(root.FindAnyWidget(
"m_Firemode"));
111 m_FiremodeGlow = ImageWidget.Cast(root.FindAnyWidget(
"m_FiremodeGlow"));
113 m_FiremodeIcon = ImageWidget.Cast(root.FindAnyWidget(
"m_FiremodeIcon"));
115 m_MagazineIndicator = OverlayWidget.Cast(root.FindAnyWidget(
"m_MagazineIndicator"));
117 m_MagazineGlow = ImageWidget.Cast(root.FindAnyWidget(
"m_MagazineGlow"));
119 m_MagazineBackground = ImageWidget.Cast(root.FindAnyWidget(
"m_MagazineBackground"));
121 m_MagazineOutline = ImageWidget.Cast(root.FindAnyWidget(
"m_MagazineOutline"));
123 m_MagazineProgress = ImageWidget.Cast(root.FindAnyWidget(
"m_MagazineProgress"));
125 m_ReloadBackground = ImageWidget.Cast(root.FindAnyWidget(
"m_ReloadBackground"));
127 m_ReloadOutline = ImageWidget.Cast(root.FindAnyWidget(
"m_ReloadOutline"));
129 m_MagCount = SizeLayoutWidget.Cast(root.FindAnyWidget(
"m_MagCount"));
131 m_MagCountText = RichTextWidget.Cast(root.FindAnyWidget(
"m_MagCountText"));
133 m_WeaponNameAndCaliber = HorizontalLayoutWidget.Cast(root.FindAnyWidget(
"m_WeaponNameAndCaliber"));
135 m_Caliber = RichTextWidget.Cast(root.FindAnyWidget(
"m_Caliber"));
137 m_WeaponName = RichTextWidget.Cast(root.FindAnyWidget(
"m_WeaponName"));