1class IngameHud
extends Hud
3 protected const float FADE_IN_TIME = 0.3;
4 protected const float FADE_OUT_TIME = 0.3;
5 protected const float HIDE_MENU_TIME = 5;
11 protected const float TENDENCY_BLINK_TIME = 0.25;
21 protected float m_TemperatureShowTime = 30;
26 protected float m_StaminaShowTime = 0.15;
161 m_FadeTimerCrosshair =
new WidgetFadeTimer;
162 m_FadeTimerActionCursor =
new WidgetFadeTimer;
163 m_FadeTimerQuickbar =
new WidgetFadeTimer;
164 m_FadeTimerWalkieTalkie =
new WidgetFadeTimer;
165 m_FadeTimerWalkieTalkieText =
new WidgetFadeTimer;
177 m_VehicleDamageZonesHitTimer = 0;
180 m_VehicleGearTable.Set(-1,
"");
181 m_VehicleGearTable.Set(
CarGear.REVERSE,
"R");
182 m_VehicleGearTable.Set(
CarGear.NEUTRAL,
"N");
183 m_VehicleGearTable.Set(
CarGear.FIRST,
"1");
184 m_VehicleGearTable.Set(
CarGear.SECOND,
"2");
185 m_VehicleGearTable.Set(
CarGear.THIRD,
"3");
186 m_VehicleGearTable.Set(
CarGear.FOURTH,
"4");
187 m_VehicleGearTable.Set(
CarGear.FIFTH,
"5");
188 m_VehicleGearTable.Set(
CarGear.SIXTH,
"6");
189 m_VehicleGearTable.Set(
CarGear.SEVENTH,
"7");
190 m_VehicleGearTable.Set(
CarGear.EIGTH,
"8");
193 m_VehicleGearTableAuto.Set(-1,
"");
203 m_HudPanelWidget.Show(
true);
210 m_LeftHudPanelWidget = m_HudPanelWidget.FindAnyWidget(
"LeftHUDPanel");
214 myTimer.Run(1,
this,
"InitQuickbar");
216 m_CursorWidget = m_HudPanelWidget.FindAnyWidget(
"CursorIcons");
217 m_CursorWidget.Show(
true);
218 Class.
CastTo(m_CursorIcon, m_HudPanelWidget.FindAnyWidget(
"Cursor"));
221 Class.
CastTo(m_PermanentCrossHair, m_HudPanelWidget.FindAnyWidget(
"PermanentCrossHair"));
223 m_WalkieTalkie = m_HudPanelWidget.FindAnyWidget(
"WalkieTalkie");
227 m_Presence = m_HudPanelWidget.FindAnyWidget(
"PresencePanel");
229 m_Notifiers = m_HudPanelWidget.FindAnyWidget(
"NotifiersPanel");
230 m_SpecializatonPanel = m_HudPanelWidget.FindAnyWidget(
"SpecializationPanel");
232 m_BadgeNotifierDivider = m_HudPanelWidget.FindAnyWidget(
"BadgeNotifierDivider");
234 m_BloodPosType =
TextWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"BloodPosType"));
236 m_VehiclePanel = m_HudPanelWidget.FindAnyWidget(
"VehiclePanel");
237 m_VehiclePanel.Show(
false);
239 m_VehicleRPMPointer =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"RPMPointer"));
240 m_VehicleRPMDial =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"RPMDial"));
241 m_VehicleRPMRedline =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"RPMDialRedline"));
242 m_VehicleSpeedPointer =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"SpeedPointer"));
243 m_VehicleSpeedValue =
TextWidget.Cast(m_VehiclePanel.FindAnyWidget(
"SpeedValue"));
245 m_VehicleCurrentGearValue =
TextWidget.Cast(m_VehiclePanel.FindAnyWidget(
"Current"));
246 m_VehicleNextGearValue =
TextWidget.Cast(m_VehiclePanel.FindAnyWidget(
"Next"));
247 m_VehiclePrevGearValue =
TextWidget.Cast(m_VehiclePanel.FindAnyWidget(
"Prev"));
249 m_VehicleBatteryLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"BatteryLight"));
250 m_VehicleEngineLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"EngineLight"));
251 m_VehicleOilLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"OilLight"));
252 m_VehicleHandBrakeLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"HandBrakeLight"));
253 m_VehicleWheelLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"WheelLight"));
255 m_VehicleTemperatureIndicator = m_VehiclePanel.FindAnyWidget(
"TemperatureIndicator");
256 m_VehicleTemperaturePointer =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"TemperaturePointer"));
257 m_VehicleTemperatureLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"TemperatureLight"));
258 m_VehicleFuelPointer =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"FuelPointer"));
259 m_VehicleFuelLight =
ImageWidget.Cast(m_VehiclePanel.FindAnyWidget(
"FuelLight"));
261 m_StaminaBackground = m_HudPanelWidget.FindAnyWidget(
"StaminaBackground");
262 m_StaminaBackground.Show(
true);
263 m_StanceProne = m_HudPanelWidget.FindAnyWidget(
"StanceProne");
264 m_StanceCrouch = m_HudPanelWidget.FindAnyWidget(
"StanceCrouch");
265 m_StanceStand = m_HudPanelWidget.FindAnyWidget(
"StanceStand");
266 m_StanceStandWalk = m_HudPanelWidget.FindAnyWidget(
"StanceStandWalk");
267 m_StanceCar = m_HudPanelWidget.FindAnyWidget(
"StanceCar");
268 m_StancePanel = m_HudPanelWidget.FindAnyWidget(
"StancePanel");
270 m_ActionTarget = m_HudPanelWidget.FindAnyWidget(
"ActionTargetsCursorWidget");
272 m_ActionTarget.GetScript(m_ActionTargetsCursor);
275 m_HeatBufferPlus =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"HeatBuffer"));
278 m_GameStatusIconsPanel = m_HudPanelWidget.FindAnyWidget(
"GameStatusIcons");
279 m_HighPingA =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"HighPingA"));
280 m_HighPingB =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"HighPingB"));
281 m_LowServerPerfA =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"LowServerPerfA"));
282 m_LowServerPerfB =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"LowServerPerfB"));
283 m_ConnectionLost =
ImageWidget.Cast(m_HudPanelWidget.FindAnyWidget(
"ConnectionLost"));
285 if (m_HeatBufferPlus)
286 m_HeatBufferPlus.Show(
false);
290 m_Timer.Run(0.333,
this,
"RefreshQuickbar",
NULL,
true);
299 m_PresenceLevel0.Show(
false);
300 m_PresenceLevel1.Show(
false);
301 m_PresenceLevel2.Show(
false);
302 m_PresenceLevel3.Show(
false);
303 m_PresenceLevel4.Show(
false);
307 MissionGameplay.Cast(
GetGame().GetMission()).GetConnectivityInvoker().Insert(OnConnectionIconsSettingsChanged);
315 m_StatesWidgetNames.Clear();
316 m_StatesWidgets.Clear();
328 for (
i = 0;
i < m_StatesWidgetNames.Count();
i++)
331 key = m_StatesWidgetNames.GetKey(
i);
334 m_StatesWidgets.Set(
key,
w);
336 for (
int y = 0;
y < 5;
y++)
340 float alpha =
w.GetAlpha();
342 m_TendencyStatusCritical.Remove(
w);
344 for (
int x = 1;
x < 4;
x++)
356 m_BadgesWidgetNames.Clear();
357 m_BadgesWidgets.Clear();
358 m_BadgesWidgetDisplay.Clear();
359 m_BadgesSupportedLevels.Clear();
369 m_BadgesWidgetNames.Set(
NTFKEY_LEGS,
"InjuredLegs");
374 for (
i = 0;
i < m_BadgesWidgetNames.Count();
i++)
376 string badge_name = m_BadgesWidgetNames.GetElement(
i);
377 key = m_BadgesWidgetNames.GetKey(
i);
383 if (m_BadgesSupportedLevels.Contains(
key))
393 m_BadgesWidgetDisplay.Set(
key,
false);
395 m_AnyBadgeVisible =
false;
396 m_BadgeNotifierDivider.Show(
false);
402 m_GameStatusIconsPanel.Show(
enabled);
408 m_HudPanelWidget.GetScreenSize(
x,
y);
409 m_HudPanelWidget.Update();
416 m_HudPanelWidget.Show(show);
421 m_FadeTimerWalkieTalkie.Stop();
422 m_FadeTimerWalkieTalkieText.Stop();
423 m_WalkieTalkie.Show(show);
428 m_WalkieTalkie.Show(
true);
429 m_FadeTimerWalkieTalkie.Stop();
430 m_FadeTimerWalkieTalkieText.Stop();
431 m_FadeTimerWalkieTalkie.FadeOut(m_WalkieTalkie.FindAnyWidget(
"Icon"),
fadeOutSeconds);
432 m_FadeTimerWalkieTalkieText.FadeOut(m_WalkieTalkie.FindAnyWidget(
"Text"),
fadeOutSeconds);
445 m_CursorIcon.Show(
false);
448 m_CursorIcon.LoadImageFile(0,
icon);
449 m_CursorIcon.Show(
true);
455 m_CursorWidget.Show(
true);
460 m_CursorWidget.Show(
false);
466 m_CursorIcon.FindAnyWidget(type).GetParent().GetSize(
x,
y);
472 m_CursorIcon.FindAnyWidget(type).GetParent().SetPos(
x,
y);
477 m_CursorIcon.FindAnyWidget(type).GetParent().SetSize(
x,
y);
484 m_PermanentCrossHair.Show(show);
502 for (
int x = 1;
x < 4;
x++)
529 float alpha =
w.GetAlpha();
535 m_TendencyStatusCritical.Remove(
w);
539 m_TendencyStatusCritical.Remove(
w);
542 if (!m_TendencyStatusCritical.Contains(
w))
544 m_TendencyStatusCritical.Insert(
w,
ARGB(
alpha * 255, 220, 0, 0));
549 m_TendencyStatusCritical.Remove(
w);
561 float alpha =
w.GetAlpha();
578 m_TendencyStatusCritical.Remove(
w);
584 m_TendencyStatusCritical.Remove(
w);
588 if (!m_TendencyStatusCritical.Contains(
w))
589 m_TendencyStatusCritical.Insert(
w,
ARGB(
alpha * 255, 220, 0, 0));
594 m_TendencyStatusCritical.Remove(
w);
599 m_TendencyStatusCritical.Remove(
w);
603 if (!m_TendencyStatusCritical.Contains(
w))
604 m_TendencyStatusCritical.Insert(
w,
ARGB(
alpha * 255, 30, 144, 220));
609 m_TendencyStatusCritical.Remove(
w);
619 m_BadgesWidgetDisplay.Set(
key,
value);
620 m_AnyBadgeVisible =
false;
621 for (
int i = 0;
i < m_BadgesWidgetDisplay.Count();
i++)
623 int badge_key = m_BadgesWidgetDisplay.GetKey(
i);
633 if (m_BadgesSupportedLevels.Contains(
badge_key))
642 m_AnyBadgeVisible =
true;
663 m_IsTemperatureVisible =
true;
668 m_TemperatureTimer = 0;
673 m_IsTemperatureVisible =
false;
678 m_TemperatureTimer = 0;
696 m_IsStaminaVisible = show;
706 stomach.LoadImageFile(0,
"set:dayz_gui image:iconStomach" +
state);
727 if (!
GetGame().IsMultiplayer())
736 float h1 =
player.GetHealth(
"",
"");
737 float b1 =
player.GetHealth(
"",
"Blood");
756 m_ZeroingKeyPressed =
true;
771 m_StanceCrouch.Show(
false);
772 m_StanceProne.Show(
false);
773 m_StanceCar.Show(
false);
777 m_StanceStand.Show(
false);
778 m_StanceStandWalk.Show(
false);
779 m_StanceCrouch.Show(
true);
780 m_StanceProne.Show(
false);
781 m_StanceCar.Show(
false);
785 m_StanceStand.Show(
false);
786 m_StanceStandWalk.Show(
false);
787 m_StanceCrouch.Show(
false);
788 m_StanceProne.Show(
true);
789 m_StanceCar.Show(
false);
794 m_StanceStand.Show(
false);
795 m_StanceCrouch.Show(
false);
796 m_StanceProne.Show(
false);
797 m_StanceCar.Show(
true);
808 m_PresenceLevel0.Show(
false);
809 m_PresenceLevel1.Show(
false);
810 m_PresenceLevel2.Show(
false);
811 m_PresenceLevel3.Show(
false);
812 m_PresenceLevel4.Show(
false);
815 m_PresenceLevel0.Show(
true);
817 m_PresenceLevel1.Show(
true);
819 m_PresenceLevel2.Show(
true);
821 m_PresenceLevel3.Show(
true);
823 m_PresenceLevel4.Show(
true);
827 int m_VehicleGearCount = -1;
841 if (m_CurrentVehicle)
843 m_InVehicleAsDriver =
true;
844 m_VehicleGearCount = m_CurrentVehicle.GetGearsCount();
845 m_VehicleOilLight.Show(m_VehicleHasOil);
847 float rpm_value_red = m_CurrentVehicle.EngineGetRPMRedline() / m_CurrentVehicle.EngineGetRPMMax();
851 m_HudPanelWidget.FindAnyWidget(
"PlayerPanel").Show(
false);
852 m_Presence.Show(
false);
853 m_StancePanel.Show(
false);
855 m_VehiclePanel.Show(
true);
863 m_HudPanelWidget.FindAnyWidget(
"PlayerPanel").Show(
true);
864 m_Presence.Show(
true);
865 m_StancePanel.Show(
true);
866 m_VehiclePanel.Show(
false);
868 m_InVehicleAsDriver =
false;
869 m_CurrentVehicle =
null;
870 m_VehicleGearCount = -1;
875 if (m_CurrentVehicle && !
GetGame().GetUIManager().GetMenu())
877 m_VehiclePanel.Show(
true);
878 float rpm_value = m_CurrentVehicle.EngineGetRPM() / m_CurrentVehicle.EngineGetRPMMax();
879 float rpm_value_red = m_CurrentVehicle.EngineGetRPMRedline() / m_CurrentVehicle.EngineGetRPMMax();
880 float speed_value = m_CurrentVehicle.GetSpeedometerAbsolute() / 200;
882 m_VehicleRPMPointer.SetRotation(0, 0,
rpm_value * 270 - 130,
true);
883 m_VehicleSpeedPointer.SetRotation(0, 0,
speed_value * 260 - 130,
true);
884 m_VehicleSpeedValue.SetText(
Math.
AbsInt(m_CurrentVehicle.GetSpeedometer()).ToString());
891 if (m_CurrentVehicle.HasEngineZoneReceivedHit())
893 if (m_TimeSinceLastEngineLightChange > 0.35)
895 m_VehicleEngineLight.Show(!m_VehicleEngineLight.IsVisible());
901 m_VehicleEngineLight.SetAlpha(1);
902 m_TimeSinceLastEngineLightChange = 0;
905 m_TimeSinceLastEngineLightChange +=
timeslice;
911 m_VehicleEngineLight.SetAlpha(1);
912 m_VehicleEngineLight.Show(
true);
915 m_VehicleEngineLight.Show(
false);
921 m_VehicleFuelLight.SetAlpha(1);
922 m_VehicleFuelLight.Show(
true);
927 m_VehicleFuelLight.SetAlpha(1);
928 m_VehicleFuelLight.Show(
true);
934 m_VehicleTemperatureIndicator.Show(
true);
935 if (m_CurrentVehicle.HasRadiator())
941 m_VehicleTemperatureLight.SetAlpha(1);
942 m_VehicleTemperatureLight.Show(
true);
947 m_VehicleTemperatureLight.SetAlpha(1);
948 m_VehicleTemperatureLight.Show(
true);
954 m_VehicleTemperatureLight.SetAlpha(1);
955 m_VehicleTemperatureLight.Show(
true);
959 m_VehicleTemperatureIndicator.Show(
false);
961 m_VehicleHandBrakeLight.Show(m_CurrentVehicle.IsHandbrakeActive());
962 m_VehicleWheelLight.Show(m_CurrentVehicle.WheelIsAnyLocked());
983 m_VehicleCurrentGearValue.SetText(m_VehicleGearTable.Get(
engagedGear));
984 m_VehicleNextGearValue.Show(
nextGear < m_VehicleGearCount);
986 m_VehicleNextGearValue.SetText(m_VehicleGearTable.Get(
nextGear));
987 m_VehiclePrevGearValue.SetText(m_VehicleGearTable.Get(
prevGear));
995 m_VehicleCurrentGearValue.SetText(m_VehicleGearTableAuto.Get(
engagedGear));
998 m_VehicleNextGearValue.SetText(m_VehicleGearTableAuto.Get(
nextGear));
999 m_VehiclePrevGearValue.SetText(m_VehicleGearTableAuto.Get(
prevGear));
1005 m_VehicleFuelPointer.SetRotation(0, 0, m_CurrentVehicle.GetFluidFraction(
CarFluid.FUEL) * 260 - 130,
true);
1006 m_VehicleTemperaturePointer.SetRotation(0, 0, -1 * m_CurrentVehicle.GetFluidFraction(
CarFluid.COOLANT) * 260 + 130,
true);
1009 if (m_VehicleDamageZonesHitTimer > 1)
1011 m_VehicleDamageZoneHitEngineState =
false;
1012 m_VehicleDamageZonesHitTimer = 0;
1015 m_VehicleDamageZonesHitTimer +=
timeslice;
1018 m_VehiclePanel.Show(
false);
1044#ifdef PLATFORM_CONSOLE
1053 m_IsQuickbarVisible = !m_QuickbarHideUI && !m_QuickbarHidePlayer &&
m_QuickbarState;
1059 m_IsHudVisible = (!m_HudHidePlayer && !m_HudHideUI &&
m_HudState) || m_HudInventory;
1062 m_Badges.Show(m_IsHudVisible);
1064 m_BadgeNotifierDivider.Show(m_IsHudVisible && m_AnyBadgeVisible);
1065#ifdef PLATFORM_CONSOLE
1066 m_SpecializatonPanel.Show(m_HudInventory);
1068 m_SpecializatonPanel.Show(
false);
1074#ifdef PLATFORM_CONSOLE
1091 m_QuickbarHideUI = !show;
1097 m_QuickbarHidePlayer = !show;
1103 m_HudHidePlayer = !show;
1110 m_HudHideUI = !show;
1117 m_HudInventory = show;
1123 m_HeatBufferPlus.Show(show);
1129 m_QuickbarState = show;
1131 m_QuickbarHidePlayer =
false;
1138 m_HudHidePlayer =
false;
1160 m_HighPingA.Show(
false);
1161 m_HighPingB.Show(
false);
1164 m_HighPingA.Show(
true);
1165 m_HighPingB.Show(
false);
1168 m_HighPingA.Show(
false);
1169 m_HighPingB.Show(
true);
1178 m_LowServerPerfA.Show(
false);
1179 m_LowServerPerfB.Show(
false);
1182 m_LowServerPerfA.Show(
true);
1183 m_LowServerPerfB.Show(
false);
1186 m_LowServerPerfA.Show(
false);
1187 m_LowServerPerfB.Show(
true);
1196 m_ConnectionLost.Show(
false);
1199 m_ConnectionLost.Show(
true);
1208 Widget child = m_LeftHudPanelWidget.GetChildren();
1211 if (
child.GetName() ==
"ChatFrameWidget")
1224 if ((!m_QuickbarState || m_QuickbarHidePlayer || m_QuickbarHideUI) && !
itemChanged)
1232 MissionGameplay
mission = MissionGameplay.Cast(
GetGame().GetMission());
1266 m_BloodPosType.SetText(
"+");
1268 m_BloodPosType.SetText(
"-");
1273 m_BloodPosType.SetText(
"");
1312 m_CurrentTaggedPlayer =
null;
1323 if (m_CurrentTaggedPlayer && m_CurrentTaggedPlayer.GetIdentity())
1327 m_PlayerTag =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/hud/hud_player_tag.layout");
1328 m_PlayerTagText =
TextWidget.Cast(m_PlayerTag.FindAnyWidget(
"TagText"));
1330 m_PlayerSpineIndex = m_CurrentTaggedPlayer.GetBoneIndex(
"Spine2");
1331 vector player_pos = m_CurrentTaggedPlayer.GetBonePositionWS(m_PlayerSpineIndex);
1340 m_PlayerTagText.SetAlpha(
Math.
Clamp(m_PlayerTagText.GetAlpha() +
timeslice * 10, 0, 1));
1341 m_PlayerTag.SetPos(0.55, 0.55);
1342 m_PlayerTagText.SetText(m_CurrentTaggedPlayer.GetIdentity().GetPlainName());
1354 m_PlayerTagText.SetAlpha(
Math.
Clamp(m_PlayerTagText.GetAlpha() -
timeslice * 10, 0, 1));
1357 m_PlayerTagText.SetText(
"");
1358 m_CurrentTaggedPlayer =
null;
1367 m_ActionTargetsCursor.
Update();
1371 if (m_BlinkTime > TENDENCY_BLINK_TIME)
1374 if (m_TendencyStatusCritical.Count() > 0)
1376 for (
int i = 0;
i < m_TendencyStatusCritical.Count(); ++
i)
1400 if (m_IsTemperatureVisible)
1403 if (m_TemperatureTimer > m_TemperatureShowTime)
1407 if (!m_IsStaminaVisible)
1410 if (m_StaminaTimer > m_StaminaShowTime)
1415 if (m_HitDirEffectArray && m_HitDirEffectArray.Count() > 0)
1434 if (m_HitDirEffectArray ==
null)
1438 m_HitDirEffectArray.Insert(
hiteff);
1443 for (
int i = 0;
i < m_HitDirEffectArray.Count();
i++)
1449 for (
int i = m_HitDirEffectArray.Count() - 1;
i > -1;
i--)
1451 if (m_HitDirEffectArray[
i].DurationCheck())
1452 m_HitDirEffectArray.Remove(
i);
1460 int key = m_BadgesWidgetDisplay.GetKeyByValue(
val);
1463 Print(
"---------------------");
const int NTFKEY_POISONED
enum eBadgeLevel NTFKEY_THIRSTY
const int NTFKEY_FRACTURE
const int NTFKEY_BLEEDISH
const int NTFKEY_FEVERISH
ref InventoryQuickbar m_Quickbar
Widget m_SpecializationIcon
CarAutomaticGearboxMode
Enumerated automatic gearbox modes. (native, do not change or extend)
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
CarGearboxType
Enumerated gearbox types. (native, do not change or extend)
ref array< ref NotifierBase > m_Notifiers
ref map< PlayerBase, int > m_BloodType
class StaminaSoundHandlerBase extends SoundHandlerBase m_Stamina
static string GetBloodTypeName(int bloodtype, out string type, out bool positive)
override bool IsVitalRadiator()
static float GetStaminaMax()
Super root of all classes in Enforce script.
static ref array< Man > m_PlayerBaseList
static proto bool RaycastRVProxy(notnull RaycastRVParams in, out notnull array< ref RaycastRVResult > results, array< Object > excluded=null)
void RefreshVehicleHud(float timeslice)
ref WidgetFadeTimer m_FadeTimerWalkieTalkieText
Widget m_StaminaBackground
ref array< ref HitDirectionEffectBase > m_HitDirEffectArray
TextWidget m_PlayerTagText
void ShowPlayerTag(float timeslice)
TextWidget m_ActionItemDesc
override void HideVehicleInfo()
void SetLeftStatsVisibility(bool visible)
eg. stamina bar...
TextWidget m_VehiclePrevGearValue
ImageWidget m_VehicleTemperatureLight
TextWidget m_ActionButtonText
ref map< ImageWidget, int > m_TendencyStatusCritical
void RefreshHudVisibility()
override void ShowVehicleInfo()
override void SetTemperature(string temp)
override void DisplayNotifier(int key, int tendency, int status)
override void OnResizeScreen()
override void DisplayBadge(int key, int value)
override void ShowHudPlayer(bool show)
ref InventoryQuickbar m_Quickbar
bool m_QuickbarHidePlayer
bool m_VehicleDamageZoneHitEngineState
override void ShowHud(bool show)
ref map< int, int > m_BadgesSupportedLevels
TextWidget m_BloodPosType
override void ShowHudInventory(bool show)
override void ShowWalkieTalkie(int fadeOutSeconds)
void SetPermanentCrossHair(bool show)
ImageWidget m_LowServerPerfA
ref WidgetFadeTimer m_FadeTimerActionCursor
Widget m_ActionQuantityBox
float m_VehicleDamageZonesHitTimer
override void SetCursorIcon(string icon)
ref map< int, string > m_VehicleGearTable
ref WidgetFadeTimer m_FadeTimerWeaponName
float m_TimeSinceLastEngineLightChange
Widget m_SpecializationIcon
ImageWidget m_PermanentCrossHair
Widget m_RadialProgressBarCrossHair
override void UpdateBloodName()
ImageWidget m_VehicleRPMDial
override void ShowWalkieTalkie(bool show)
Widget m_ActionMultipleItemsFrame
override void Init(Widget hud_panel_widget)
override void ShowHudUI(bool show)
override void SetConnectivityStatIcon(EConnectivityStatType type, EConnectivityStatLevel level)
void UpdateSpecialtyMeter(float x, float y)
override void HideCursor()
ref WidgetFadeTimer m_FadeTimerZeroingOld
ImageWidget m_ConnectionLost
override void DisplayStance(int stance)
bool m_IsTemperatureVisible
Widget m_HitIndicatorLeft
ref map< int, int > m_BadgesWidgetDisplay
void OnConnectionIconsSettingsChanged(bool enabled)
Widget m_MouseContinuousAction
CarScript m_CurrentVehicle
TextWidget m_ActionQuantityBoxText
ActionTargetsCursor m_ActionTargetsCursor
override void SetCursorIconScale(string type, float percentage)
ImageWidget m_VehicleHandBrakeLight
void SetStomachState(int state)
Widget m_RadialProgressBar
ref map< int, string > m_StatesWidgetNames
Widget m_HitIndicatorSingle
ImageWidget m_VehicleRPMPointer
Widget m_BadgeNotifierDivider
override void ShowQuickbarPlayer(bool show)
override void DisplayPresence()
ImageWidget m_VehicleEngineLight
void DisplayTendencyTemp(int key, int tendency, int status)
void SetStaminaBarVisibility(bool show)
ImageWidget m_VehicleTemperaturePointer
Widget m_VehicleTemperatureIndicator
ProgressBarWidget m_ActionQuantityBar
ImageWidget m_LowServerPerfB
void UpdateHitDirEffects(float timeslice)
ref WidgetFadeTimer m_FadeTimerWeaponStats
Widget m_MouseSingleAction
ImageWidget m_VehicleRPMRedline
void ShowQuickBar(bool show)
ImageWidget m_VehicleSpeedPointer
ref WidgetFadeTimer m_FadeTimerMagazineName
void DisplayTendencyNormal(int key, int tendency, int status)
Widget m_SpecializatonPanel
TextWidget m_VehicleSpeedValue
override void ShowQuickbarUI(bool show)
ref map< int, string > m_VehicleGearTableAuto
ref map< int, string > m_BadgesWidgetNames
TextWidget m_VehicleCurrentGearValue
override void SetStamina(int value, int range)
ImageWidget m_VehicleOilLight
ref WidgetFadeTimer m_FadeTimerQuickbar
Widget m_HitIndicatorDown
override void SetCursorIconOffset(string type, float x, float y)
ImageWidget m_VehicleFuelLight
InventoryQuickbar GetQuickbar()
ref WidgetFadeTimer m_FadeTimerCrosshair
ProgressBarWidget m_Stamina
ImageWidget m_HeatBufferPlus
ImageWidget m_VehicleBatteryLight
Widget GetHudPanelWidget()
override void ShowQuickBar(bool show)
global setting; is quickbar visibility allowed?
ref map< int, ImageWidget > m_StatesWidgets
ImageWidget m_VehicleFuelPointer
override void ToggleHeatBufferPlusSign(bool show)
Widget m_RadialProgressBar1
override void ShowCursor()
override void RefreshQuickbar(bool itemChanged=false)
ref WidgetFadeTimer m_FadeTimerWalkieTalkie
Widget m_GameStatusIconsPanel
override void SetStaminaBarVisibility(bool show)
Widget m_HitIndicatorRight
void InitBadgesAndNotifiers()
override void Show(bool show)
override void Update(float timeslice)
ref map< int, ImageWidget > m_BadgesWidgets
Widget m_LeftHudPanelWidget
TextWidget m_VehicleNextGearValue
void RefreshQuickbarVisibility()
bool IsHideQuickbarPlayer()
override void SpawnHitDirEffect(DayZPlayer player, float hit_direction, float intensity_max)
PlayerBase m_CurrentTaggedPlayer
void CleanupHitDirEffects()
override void UpdateQuickbarGlobalVisibility()
override void SetWalkieTalkieText(string text)
ImageWidget m_VehicleWheelLight
override void SetCursorIconSize(string type, float x, float y)
ImageWidget m_ActionHealthMark
static int GetItemHealthColor(int pHealthLevel)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
static proto int AbsInt(int i)
Returns absolute value.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
int ARGB(int a, int r, int g, int b)