Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InventoryHitZonePointUI.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_InventoryHitZonePointContainerUI
 

Functions

override void HandlerAttached (Widget w)
 
override void HandlerDeattached (Widget w)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void Select (bool select)
 
void Highlight (bool highlight)
 
protected SCR_InventoryMenuUI GetInventoryMenuUI ()
 
protected void ShowVirtualHZInfo (Widget w, bool bloodIcon=false, bool fractureIcon=false)
 Gather data for, and create, infowidget for virtual hitzones. More...
 
protected void EnableVirtualHZInfoWidget (Widget localInfoWidget, Widget w)
 Determine size and location for the infowidget. More...
 
protected void HideVirtualHZInfo ()
 
protected void ShowHitZoneInfo (bool show, bool virtualHZ=false)
 
void GetDamageInfoTexts (EHitZoneGroup group, int groupDamageIntensity, float bleedingRate, out string damageIntensity, out string damageIntensityText, out string bleedingIntensityText)
 
void GetBloodInfoText (float bloodHitZoneHealthScaled, out string bloodLossText)
 
protected void GetHitZoneInfo (EHitZoneGroup group, out int groupDamageIntensity, out bool regenerating, out float bleedingRate, out float bloodHealth, out bool isTourniquetted, out bool isSalineBagged, out bool isArmFractured, out bool isLegFractured)
 
void UpdateHitZoneState (float health, float bleeding, float regen, bool tourniquetted, bool salineBagged)
 
protected void SetRegeneration (float regen, float bleeding)
 
protected void PlayRegenAnim (float regenSpeed=1)
 
protected void StopRegenAnim ()
 
protected void PlayBloodDropAnim (float speed=1)
 
protected void OnAnimCycleComplete (WidgetAnimationBase anim)
 
protected void StopBloodDropAnim ()
 
void SetBloodLevelProgress (float bloodLevel)
 
Widget GetRootWidget ()
 
void SetParentContainer (SCR_InventoryHitZonePointContainerUI container)
 

Variables

SCR_InventoryHitZonePointContainerUI m_DamageState
 
protected SCR_DamageStateUIComponent m_DamageStateUIComp
 
protected bool m_bAllowHoverOver
 
protected bool m_bAllowProgressAnim
 
protected bool m_bBleedingHitZone
 
protected ref array< intm_aDOTLevels
 
protected string m_sIconOverlay
 
protected Widget m_wIconOverlay
 
protected string m_sIcon
 
protected ImageWidget m_wIcon
 
protected string m_sOutline
 
protected ImageWidget m_wOutline
 
protected string m_sBackground
 
protected ImageWidget m_wBackground
 
protected string m_sIconTourniquet
 
protected ImageWidget m_wIconTourniquet
 
protected string m_sIconSalineBag
 
protected ImageWidget m_wIconSalineBag
 
protected Widget m_wRoot
 
protected ButtonWidget m_wButton
 
protected bool m_bSelected
 
const protected float OPACITY_DEFAULT = 0.4
 
const protected float OPACITY_BLOOD = 0.5
 
const protected float OPACITY_SOLID = 1
 
protected ECharacterHitZoneGroup m_eHitZoneGroup
 
protected ref array< HitZonem_aGroupHitZones = {}
 
protected string m_sSevereDamage = "#AR-DamageInfo_Damage_Severe"
 
protected string m_sHighDamage = "#AR-DamageInfo_Damage_High"
 
protected string m_sMediumDamage = "#AR-DamageInfo_Damage_Medium"
 
protected string m_sLowDamage = "#AR-DamageInfo_Damage_Low"
 
protected string m_sSevereBleeding = "#AR-DamageInfo_Bleeding_Severe"
 
protected string m_sHighBleeding = "#AR-DamageInfo_Bleeding_High"
 
protected string m_sMediumBleeding = "#AR-DamageInfo_Bleeding_Medium"
 
protected string m_sLowBleeding = "#AR-DamageInfo_Bleeding_Low"
 
protected string m_sSevereBloodLoss = "#AR-DamageInfo_Bloodloss_Severe"
 
protected string m_sHighBloodLoss = "#AR-DamageInfo_Bloodloss_High"
 
protected string m_sMediumBloodLoss = "#AR-DamageInfo_Bloodloss_Medium"
 
protected string m_sLowBloodLoss = "#AR-DamageInfo_Bloodloss_Low"
 
const protected string DAMAGE_INFO = "{55AFA256E1C20FB2}UI/layouts/Menus/Inventory/InventoryDamageInfo.layout"
 
float m_fHighDamageThreshold = 0.75
 
float m_fMediumDamageThreshold = 0.50
 
float m_fLowDamageThreshold = 0.25
 
float m_fHighBleedingThreshold = 20
 
float m_fMediumBleedingThreshold = 20
 
float m_fLowBleedingThreshold = 10
 
float m_fHighBloodLossThreshold = 0.4376
 
float m_fMediumBloodLossThreshold = 0.6251
 
float m_fLowBloodLossThreshold = 0.8125
 
protected IEntity m_Player
 
protected ref SCR_InventoryHitZoneUI m_pStorageHandler
 
protected SCR_InventoryHitZonePointContainerUI m_pParentContainer
 
protected string m_sAnimWidgetName
 
protected Widget m_wAnim
 
protected SCR_InventoryDamageInfoUI m_DamageInfo = null
 
protected WidgetAnimationBase m_IconOpacityAnim
 
protected WidgetAnimationBase m_IconSizeAnim
 
protected WidgetAnimationBase m_IconOutlineAnim
 
protected WidgetAnimationBase m_DamageIconOpacityAnim
 
protected bool m_bIsRegenAnim
 
protected bool m_bIsBloodAnim
 

Function Documentation

◆ EnableVirtualHZInfoWidget()

protected void EnableVirtualHZInfoWidget ( Widget  localInfoWidget,
Widget  w 
)

Determine size and location for the infowidget.

Definition at line 600 of file SCR_InventoryHitZonePointUI.c.

◆ GetBloodInfoText()

void GetBloodInfoText ( float  bloodHitZoneHealthScaled,
out string  bloodLossText 
)

Definition at line 722 of file SCR_InventoryHitZonePointUI.c.

◆ GetDamageInfoTexts()

void GetDamageInfoTexts ( EHitZoneGroup  group,
int  groupDamageIntensity,
float  bleedingRate,
out string  damageIntensity,
out string  damageIntensityText,
out string  bleedingIntensityText 
)

Definition at line 683 of file SCR_InventoryHitZonePointUI.c.

◆ GetHitZoneInfo()

protected void GetHitZoneInfo ( EHitZoneGroup  group,
out int  groupDamageIntensity,
out bool  regenerating,
out float  bleedingRate,
out float  bloodHealth,
out bool  isTourniquetted,
out bool  isSalineBagged,
out bool  isArmFractured,
out bool  isLegFractured 
)

Definition at line 735 of file SCR_InventoryHitZonePointUI.c.

◆ GetInventoryMenuUI()

protected SCR_InventoryMenuUI GetInventoryMenuUI ( )

Definition at line 541 of file SCR_InventoryHitZonePointUI.c.

◆ GetRootWidget()

Widget GetRootWidget ( )

Definition at line 965 of file SCR_InventoryHitZonePointUI.c.

◆ HandlerAttached()

override void HandlerAttached ( Widget  w)

Definition at line 451 of file SCR_InventoryHitZonePointUI.c.

◆ HandlerDeattached()

override void HandlerDeattached ( Widget  w)

Definition at line 479 of file SCR_InventoryHitZonePointUI.c.

◆ HideVirtualHZInfo()

protected void HideVirtualHZInfo ( )

Definition at line 628 of file SCR_InventoryHitZonePointUI.c.

◆ Highlight()

void Highlight ( bool  highlight)

Definition at line 525 of file SCR_InventoryHitZonePointUI.c.

◆ OnAnimCycleComplete()

protected void OnAnimCycleComplete ( WidgetAnimationBase  anim)

Definition at line 926 of file SCR_InventoryHitZonePointUI.c.

◆ OnMouseEnter()

override bool OnMouseEnter ( Widget  w,
int  x,
int  y 
)

Definition at line 486 of file SCR_InventoryHitZonePointUI.c.

◆ OnMouseLeave()

override bool OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)

Definition at line 497 of file SCR_InventoryHitZonePointUI.c.

◆ PlayBloodDropAnim()

protected void PlayBloodDropAnim ( float  speed = 1)

Definition at line 883 of file SCR_InventoryHitZonePointUI.c.

◆ PlayRegenAnim()

protected void PlayRegenAnim ( float  regenSpeed = 1)

Definition at line 850 of file SCR_InventoryHitZonePointUI.c.

◆ Select()

void Select ( bool  select)

Definition at line 508 of file SCR_InventoryHitZonePointUI.c.

◆ SetBloodLevelProgress()

void SetBloodLevelProgress ( float  bloodLevel)

Definition at line 956 of file SCR_InventoryHitZonePointUI.c.

◆ SetParentContainer()

void SetParentContainer ( SCR_InventoryHitZonePointContainerUI  container)

Definition at line 970 of file SCR_InventoryHitZonePointUI.c.

◆ SetRegeneration()

protected void SetRegeneration ( float  regen,
float  bleeding 
)

Definition at line 819 of file SCR_InventoryHitZonePointUI.c.

◆ ShowHitZoneInfo()

protected void ShowHitZoneInfo ( bool  show,
bool  virtualHZ = false 
)

Definition at line 636 of file SCR_InventoryHitZonePointUI.c.

◆ ShowVirtualHZInfo()

protected void ShowVirtualHZInfo ( Widget  w,
bool  bloodIcon = false,
bool  fractureIcon = false 
)

Gather data for, and create, infowidget for virtual hitzones.

Definition at line 552 of file SCR_InventoryHitZonePointUI.c.

◆ StopBloodDropAnim()

protected void StopBloodDropAnim ( )

Definition at line 935 of file SCR_InventoryHitZonePointUI.c.

◆ StopRegenAnim()

protected void StopRegenAnim ( )

Definition at line 870 of file SCR_InventoryHitZonePointUI.c.

◆ UpdateHitZoneState()

void UpdateHitZoneState ( float  health,
float  bleeding,
float  regen,
bool  tourniquetted,
bool  salineBagged 
)

Definition at line 785 of file SCR_InventoryHitZonePointUI.c.

Variable Documentation

◆ DAMAGE_INFO

const protected string DAMAGE_INFO = "{55AFA256E1C20FB2}UI/layouts/Menus/Inventory/InventoryDamageInfo.layout"

Definition at line 421 of file SCR_InventoryHitZonePointUI.c.

◆ m_aDOTLevels

protected ref array<int> m_aDOTLevels

Definition at line 366 of file SCR_InventoryHitZonePointUI.c.

◆ m_aGroupHitZones

protected ref array<HitZone> m_aGroupHitZones = {}

Definition at line 404 of file SCR_InventoryHitZonePointUI.c.

◆ m_bAllowHoverOver

protected bool m_bAllowHoverOver

Definition at line 357 of file SCR_InventoryHitZonePointUI.c.

◆ m_bAllowProgressAnim

protected bool m_bAllowProgressAnim

Definition at line 360 of file SCR_InventoryHitZonePointUI.c.

◆ m_bBleedingHitZone

protected bool m_bBleedingHitZone

Definition at line 363 of file SCR_InventoryHitZonePointUI.c.

◆ m_bIsBloodAnim

protected bool m_bIsBloodAnim

Definition at line 448 of file SCR_InventoryHitZonePointUI.c.

◆ m_bIsRegenAnim

protected bool m_bIsRegenAnim

Definition at line 447 of file SCR_InventoryHitZonePointUI.c.

◆ m_bSelected

protected bool m_bSelected

Definition at line 396 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageIconOpacityAnim

protected WidgetAnimationBase m_DamageIconOpacityAnim

Definition at line 445 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageInfo

protected SCR_InventoryDamageInfoUI m_DamageInfo = null

Definition at line 440 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageState

◆ m_DamageStateUIComp

protected SCR_DamageStateUIComponent m_DamageStateUIComp

Definition at line 354 of file SCR_InventoryHitZonePointUI.c.

◆ m_eHitZoneGroup

protected ECharacterHitZoneGroup m_eHitZoneGroup

Definition at line 403 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighBleedingThreshold

float m_fHighBleedingThreshold = 20

Definition at line 426 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighBloodLossThreshold

float m_fHighBloodLossThreshold = 0.4376

Definition at line 429 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighDamageThreshold

float m_fHighDamageThreshold = 0.75

Definition at line 423 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowBleedingThreshold

float m_fLowBleedingThreshold = 10

Definition at line 428 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowBloodLossThreshold

float m_fLowBloodLossThreshold = 0.8125

Definition at line 431 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowDamageThreshold

float m_fLowDamageThreshold = 0.25

Definition at line 425 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumBleedingThreshold

float m_fMediumBleedingThreshold = 20

Definition at line 427 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumBloodLossThreshold

float m_fMediumBloodLossThreshold = 0.6251

Definition at line 430 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumDamageThreshold

float m_fMediumDamageThreshold = 0.50

Definition at line 424 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconOpacityAnim

protected WidgetAnimationBase m_IconOpacityAnim

Definition at line 442 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconOutlineAnim

protected WidgetAnimationBase m_IconOutlineAnim

Definition at line 444 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconSizeAnim

protected WidgetAnimationBase m_IconSizeAnim

Definition at line 443 of file SCR_InventoryHitZonePointUI.c.

◆ m_Player

protected IEntity m_Player

Definition at line 433 of file SCR_InventoryHitZonePointUI.c.

◆ m_pParentContainer

protected SCR_InventoryHitZonePointContainerUI m_pParentContainer

Definition at line 435 of file SCR_InventoryHitZonePointUI.c.

◆ m_pStorageHandler

protected ref SCR_InventoryHitZoneUI m_pStorageHandler

Definition at line 434 of file SCR_InventoryHitZonePointUI.c.

◆ m_sAnimWidgetName

protected string m_sAnimWidgetName

Definition at line 438 of file SCR_InventoryHitZonePointUI.c.

◆ m_sBackground

protected string m_sBackground

Definition at line 381 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighBleeding

protected string m_sHighBleeding = "#AR-DamageInfo_Bleeding_High"

Definition at line 412 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighBloodLoss

protected string m_sHighBloodLoss = "#AR-DamageInfo_Bloodloss_High"

Definition at line 417 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighDamage

protected string m_sHighDamage = "#AR-DamageInfo_Damage_High"

Definition at line 407 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIcon

protected string m_sIcon

Definition at line 373 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconOverlay

protected string m_sIconOverlay

Definition at line 369 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconSalineBag

protected string m_sIconSalineBag

Definition at line 389 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconTourniquet

protected string m_sIconTourniquet

Definition at line 385 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowBleeding

protected string m_sLowBleeding = "#AR-DamageInfo_Bleeding_Low"

Definition at line 414 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowBloodLoss

protected string m_sLowBloodLoss = "#AR-DamageInfo_Bloodloss_Low"

Definition at line 419 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowDamage

protected string m_sLowDamage = "#AR-DamageInfo_Damage_Low"

Definition at line 409 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumBleeding

protected string m_sMediumBleeding = "#AR-DamageInfo_Bleeding_Medium"

Definition at line 413 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumBloodLoss

protected string m_sMediumBloodLoss = "#AR-DamageInfo_Bloodloss_Medium"

Definition at line 418 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumDamage

protected string m_sMediumDamage = "#AR-DamageInfo_Damage_Medium"

Definition at line 408 of file SCR_InventoryHitZonePointUI.c.

◆ m_sOutline

protected string m_sOutline

Definition at line 377 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereBleeding

protected string m_sSevereBleeding = "#AR-DamageInfo_Bleeding_Severe"

Definition at line 411 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereBloodLoss

protected string m_sSevereBloodLoss = "#AR-DamageInfo_Bloodloss_Severe"

Definition at line 416 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereDamage

protected string m_sSevereDamage = "#AR-DamageInfo_Damage_Severe"

Definition at line 406 of file SCR_InventoryHitZonePointUI.c.

◆ m_wAnim

protected Widget m_wAnim

Definition at line 439 of file SCR_InventoryHitZonePointUI.c.

◆ m_wBackground

protected ImageWidget m_wBackground

Definition at line 382 of file SCR_InventoryHitZonePointUI.c.

◆ m_wButton

protected ButtonWidget m_wButton

Definition at line 393 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIcon

protected ImageWidget m_wIcon

Definition at line 374 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconOverlay

protected Widget m_wIconOverlay

Definition at line 370 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconSalineBag

protected ImageWidget m_wIconSalineBag

Definition at line 390 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconTourniquet

protected ImageWidget m_wIconTourniquet

Definition at line 386 of file SCR_InventoryHitZonePointUI.c.

◆ m_wOutline

protected ImageWidget m_wOutline

Definition at line 378 of file SCR_InventoryHitZonePointUI.c.

◆ m_wRoot

protected Widget m_wRoot

Definition at line 392 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_BLOOD

const protected float OPACITY_BLOOD = 0.5

Definition at line 399 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_DEFAULT

const protected float OPACITY_DEFAULT = 0.4

Definition at line 398 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_SOLID

const protected float OPACITY_SOLID = 1

Definition at line 400 of file SCR_InventoryHitZonePointUI.c.