Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InventoryHitZonePointUI.c File Reference

Go to the source code of this file.

Classes

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)
SCR_InventoryMenuUI GetInventoryMenuUI ()
void ShowVirtualHZInfo (Widget w, bool bloodIcon=false, bool fractureIcon=false)
 Gather data for, and create, infowidget for virtual hitzones.
void EnableVirtualHZInfoWidget (Widget localInfoWidget, Widget w)
 Determine size and location for the infowidget.
void HideVirtualHZInfo ()
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)
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 bleeding, float regen, bool tourniquetted, bool salineBagged)
void SetRegeneration (float regen, float bleeding)
void PlayRegenAnim (float regenSpeed=1)
void StopRegenAnim ()
void PlayBloodDropAnim (float speed=1)
void OnAnimCycleComplete (WidgetAnimationBase anim)
void StopBloodDropAnim ()
void SetBloodLevelProgress (float bloodLevel)
Widget GetRootWidget ()
void SetParentContainer (SCR_InventoryHitZonePointContainerUI container)

Variables

SCR_InventoryHitZonePointContainerUI m_DamageState
SCR_DamageStateUIComponent m_DamageStateUIComp
bool m_bAllowHoverOver
bool m_bAllowProgressAnim
bool m_bBleedingHitZone
ref array< intm_aDOTLevels
string m_sIconOverlay
Widget m_wIconOverlay
string m_sIcon
ImageWidget m_wIcon
string m_sOutline
ImageWidget m_wOutline
string m_sBackground
ImageWidget m_wBackground
string m_sIconTourniquet
ImageWidget m_wIconTourniquet
string m_sIconSalineBag
ImageWidget m_wIconSalineBag
Widget m_wRoot
ButtonWidget m_wButton
bool m_bSelected
const float OPACITY_DEFAULT = 0.4
const float OPACITY_BLOOD = 0.5
const float OPACITY_SOLID = 1
ECharacterHitZoneGroup m_eHitZoneGroup
ref array< HitZonem_aGroupHitZones = {}
string m_sSevereDamage = "#AR-DamageInfo_Damage_Severe"
string m_sHighDamage = "#AR-DamageInfo_Damage_High"
string m_sMediumDamage = "#AR-DamageInfo_Damage_Medium"
string m_sLowDamage = "#AR-DamageInfo_Damage_Low"
string m_sSevereBleeding = "#AR-DamageInfo_Bleeding_Severe"
string m_sHighBleeding = "#AR-DamageInfo_Bleeding_High"
string m_sMediumBleeding = "#AR-DamageInfo_Bleeding_Medium"
string m_sLowBleeding = "#AR-DamageInfo_Bleeding_Low"
string m_sSevereBloodLoss = "#AR-DamageInfo_Bloodloss_Severe"
string m_sHighBloodLoss = "#AR-DamageInfo_Bloodloss_High"
string m_sMediumBloodLoss = "#AR-DamageInfo_Bloodloss_Medium"
string m_sLowBloodLoss = "#AR-DamageInfo_Bloodloss_Low"
const 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
IEntity m_Player
ref SCR_InventoryHitZoneUI m_pStorageHandler
SCR_InventoryHitZonePointContainerUI m_pParentContainer
string m_sAnimWidgetName
Widget m_wAnim
SCR_InventoryDamageInfoUI m_DamageInfo = null
WidgetAnimationBase m_IconOpacityAnim
WidgetAnimationBase m_IconSizeAnim
WidgetAnimationBase m_IconOutlineAnim
WidgetAnimationBase m_DamageIconOpacityAnim
bool m_bIsRegenAnim
bool m_bIsBloodAnim

Function Documentation

◆ EnableVirtualHZInfoWidget()

void EnableVirtualHZInfoWidget ( Widget localInfoWidget,
Widget w )
protected

Determine size and location for the infowidget.

Definition at line 598 of file SCR_InventoryHitZonePointUI.c.

◆ GetBloodInfoText()

void GetBloodInfoText ( float bloodHitZoneHealthScaled,
out string bloodLossText )
protected

Definition at line 721 of file SCR_InventoryHitZonePointUI.c.

◆ GetDamageInfoTexts()

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

Definition at line 682 of file SCR_InventoryHitZonePointUI.c.

◆ GetHitZoneInfo()

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 )
protected

Definition at line 734 of file SCR_InventoryHitZonePointUI.c.

◆ GetInventoryMenuUI()

SCR_InventoryMenuUI GetInventoryMenuUI ( )
protected

Definition at line 539 of file SCR_InventoryHitZonePointUI.c.

◆ GetRootWidget()

Widget GetRootWidget ( )
protected

Definition at line 964 of file SCR_InventoryHitZonePointUI.c.

◆ HandlerAttached()

override void HandlerAttached ( Widget w)
protected

Definition at line 448 of file SCR_InventoryHitZonePointUI.c.

◆ HandlerDeattached()

override void HandlerDeattached ( Widget w)
protected

Definition at line 476 of file SCR_InventoryHitZonePointUI.c.

◆ HideVirtualHZInfo()

void HideVirtualHZInfo ( )
protected

Definition at line 626 of file SCR_InventoryHitZonePointUI.c.

◆ Highlight()

void Highlight ( bool highlight)
protected

Definition at line 523 of file SCR_InventoryHitZonePointUI.c.

◆ OnAnimCycleComplete()

void OnAnimCycleComplete ( WidgetAnimationBase anim)
protected

Definition at line 925 of file SCR_InventoryHitZonePointUI.c.

◆ OnMouseEnter()

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

Definition at line 484 of file SCR_InventoryHitZonePointUI.c.

◆ OnMouseLeave()

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

Definition at line 495 of file SCR_InventoryHitZonePointUI.c.

◆ PlayBloodDropAnim()

void PlayBloodDropAnim ( float speed = 1)
protected

Definition at line 882 of file SCR_InventoryHitZonePointUI.c.

◆ PlayRegenAnim()

void PlayRegenAnim ( float regenSpeed = 1)
protected

Definition at line 849 of file SCR_InventoryHitZonePointUI.c.

◆ Select()

void Select ( bool select)
protected

Definition at line 506 of file SCR_InventoryHitZonePointUI.c.

◆ SetBloodLevelProgress()

void SetBloodLevelProgress ( float bloodLevel)
protected

Definition at line 955 of file SCR_InventoryHitZonePointUI.c.

◆ SetParentContainer()

void SetParentContainer ( SCR_InventoryHitZonePointContainerUI container)
protected

Definition at line 969 of file SCR_InventoryHitZonePointUI.c.

◆ SetRegeneration()

void SetRegeneration ( float regen,
float bleeding )
protected

Definition at line 818 of file SCR_InventoryHitZonePointUI.c.

◆ ShowHitZoneInfo()

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

Definition at line 634 of file SCR_InventoryHitZonePointUI.c.

◆ ShowVirtualHZInfo()

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

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

Definition at line 550 of file SCR_InventoryHitZonePointUI.c.

◆ StopBloodDropAnim()

void StopBloodDropAnim ( )
protected

Definition at line 934 of file SCR_InventoryHitZonePointUI.c.

◆ StopRegenAnim()

void StopRegenAnim ( )
protected

Definition at line 869 of file SCR_InventoryHitZonePointUI.c.

◆ UpdateHitZoneState()

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

Definition at line 784 of file SCR_InventoryHitZonePointUI.c.

Variable Documentation

◆ DAMAGE_INFO

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

Definition at line 418 of file SCR_InventoryHitZonePointUI.c.

◆ m_aDOTLevels

ref array<int> m_aDOTLevels
protected

Definition at line 363 of file SCR_InventoryHitZonePointUI.c.

◆ m_aGroupHitZones

ref array<HitZone> m_aGroupHitZones = {}
protected

Definition at line 401 of file SCR_InventoryHitZonePointUI.c.

◆ m_bAllowHoverOver

bool m_bAllowHoverOver
protected

Definition at line 354 of file SCR_InventoryHitZonePointUI.c.

◆ m_bAllowProgressAnim

bool m_bAllowProgressAnim
protected

Definition at line 357 of file SCR_InventoryHitZonePointUI.c.

◆ m_bBleedingHitZone

bool m_bBleedingHitZone
protected

Definition at line 360 of file SCR_InventoryHitZonePointUI.c.

◆ m_bIsBloodAnim

bool m_bIsBloodAnim
protected

Definition at line 445 of file SCR_InventoryHitZonePointUI.c.

◆ m_bIsRegenAnim

bool m_bIsRegenAnim
protected

Definition at line 444 of file SCR_InventoryHitZonePointUI.c.

◆ m_bSelected

bool m_bSelected
protected

Definition at line 393 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageIconOpacityAnim

WidgetAnimationBase m_DamageIconOpacityAnim
protected

Definition at line 442 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageInfo

SCR_InventoryDamageInfoUI m_DamageInfo = null
protected

Definition at line 437 of file SCR_InventoryHitZonePointUI.c.

◆ m_DamageState

◆ m_DamageStateUIComp

SCR_DamageStateUIComponent m_DamageStateUIComp
protected

Definition at line 351 of file SCR_InventoryHitZonePointUI.c.

◆ m_eHitZoneGroup

ECharacterHitZoneGroup m_eHitZoneGroup
protected

Definition at line 400 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighBleedingThreshold

float m_fHighBleedingThreshold = 20
protected

Definition at line 423 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighBloodLossThreshold

float m_fHighBloodLossThreshold = 0.4376
protected

Definition at line 426 of file SCR_InventoryHitZonePointUI.c.

◆ m_fHighDamageThreshold

float m_fHighDamageThreshold = 0.75
protected

Definition at line 420 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowBleedingThreshold

float m_fLowBleedingThreshold = 10
protected

Definition at line 425 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowBloodLossThreshold

float m_fLowBloodLossThreshold = 0.8125
protected

Definition at line 428 of file SCR_InventoryHitZonePointUI.c.

◆ m_fLowDamageThreshold

float m_fLowDamageThreshold = 0.25
protected

Definition at line 422 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumBleedingThreshold

float m_fMediumBleedingThreshold = 20
protected

Definition at line 424 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumBloodLossThreshold

float m_fMediumBloodLossThreshold = 0.6251
protected

Definition at line 427 of file SCR_InventoryHitZonePointUI.c.

◆ m_fMediumDamageThreshold

float m_fMediumDamageThreshold = 0.50
protected

Definition at line 421 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconOpacityAnim

WidgetAnimationBase m_IconOpacityAnim
protected

Definition at line 439 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconOutlineAnim

WidgetAnimationBase m_IconOutlineAnim
protected

Definition at line 441 of file SCR_InventoryHitZonePointUI.c.

◆ m_IconSizeAnim

WidgetAnimationBase m_IconSizeAnim
protected

Definition at line 440 of file SCR_InventoryHitZonePointUI.c.

◆ m_Player

IEntity m_Player
protected

Definition at line 430 of file SCR_InventoryHitZonePointUI.c.

◆ m_pParentContainer

SCR_InventoryHitZonePointContainerUI m_pParentContainer
protected

Definition at line 432 of file SCR_InventoryHitZonePointUI.c.

◆ m_pStorageHandler

ref SCR_InventoryHitZoneUI m_pStorageHandler
protected

Definition at line 431 of file SCR_InventoryHitZonePointUI.c.

◆ m_sAnimWidgetName

string m_sAnimWidgetName
protected

Definition at line 435 of file SCR_InventoryHitZonePointUI.c.

◆ m_sBackground

string m_sBackground
protected

Definition at line 378 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighBleeding

string m_sHighBleeding = "#AR-DamageInfo_Bleeding_High"
protected

Definition at line 409 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighBloodLoss

string m_sHighBloodLoss = "#AR-DamageInfo_Bloodloss_High"
protected

Definition at line 414 of file SCR_InventoryHitZonePointUI.c.

◆ m_sHighDamage

string m_sHighDamage = "#AR-DamageInfo_Damage_High"
protected

Definition at line 404 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIcon

string m_sIcon
protected

Definition at line 370 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconOverlay

string m_sIconOverlay
protected

Definition at line 366 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconSalineBag

string m_sIconSalineBag
protected

Definition at line 386 of file SCR_InventoryHitZonePointUI.c.

◆ m_sIconTourniquet

string m_sIconTourniquet
protected

Definition at line 382 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowBleeding

string m_sLowBleeding = "#AR-DamageInfo_Bleeding_Low"
protected

Definition at line 411 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowBloodLoss

string m_sLowBloodLoss = "#AR-DamageInfo_Bloodloss_Low"
protected

Definition at line 416 of file SCR_InventoryHitZonePointUI.c.

◆ m_sLowDamage

string m_sLowDamage = "#AR-DamageInfo_Damage_Low"
protected

Definition at line 406 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumBleeding

string m_sMediumBleeding = "#AR-DamageInfo_Bleeding_Medium"
protected

Definition at line 410 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumBloodLoss

string m_sMediumBloodLoss = "#AR-DamageInfo_Bloodloss_Medium"
protected

Definition at line 415 of file SCR_InventoryHitZonePointUI.c.

◆ m_sMediumDamage

string m_sMediumDamage = "#AR-DamageInfo_Damage_Medium"
protected

Definition at line 405 of file SCR_InventoryHitZonePointUI.c.

◆ m_sOutline

string m_sOutline
protected

Definition at line 374 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereBleeding

string m_sSevereBleeding = "#AR-DamageInfo_Bleeding_Severe"
protected

Definition at line 408 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereBloodLoss

string m_sSevereBloodLoss = "#AR-DamageInfo_Bloodloss_Severe"
protected

Definition at line 413 of file SCR_InventoryHitZonePointUI.c.

◆ m_sSevereDamage

string m_sSevereDamage = "#AR-DamageInfo_Damage_Severe"
protected

Definition at line 403 of file SCR_InventoryHitZonePointUI.c.

◆ m_wAnim

Widget m_wAnim
protected

Definition at line 436 of file SCR_InventoryHitZonePointUI.c.

◆ m_wBackground

ImageWidget m_wBackground
protected

Definition at line 379 of file SCR_InventoryHitZonePointUI.c.

◆ m_wButton

ButtonWidget m_wButton
protected

Definition at line 390 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIcon

ImageWidget m_wIcon
protected

Definition at line 371 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconOverlay

Widget m_wIconOverlay
protected

Definition at line 367 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconSalineBag

ImageWidget m_wIconSalineBag
protected

Definition at line 387 of file SCR_InventoryHitZonePointUI.c.

◆ m_wIconTourniquet

ImageWidget m_wIconTourniquet
protected

Definition at line 383 of file SCR_InventoryHitZonePointUI.c.

◆ m_wOutline

ImageWidget m_wOutline
protected

Definition at line 375 of file SCR_InventoryHitZonePointUI.c.

◆ m_wRoot

Widget m_wRoot
protected

Definition at line 389 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_BLOOD

const float OPACITY_BLOOD = 0.5
protected

Definition at line 396 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_DEFAULT

const float OPACITY_DEFAULT = 0.4
protected

Definition at line 395 of file SCR_InventoryHitZonePointUI.c.

◆ OPACITY_SOLID

const float OPACITY_SOLID = 1
protected

Definition at line 397 of file SCR_InventoryHitZonePointUI.c.