Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HealthTooltipDetail.c
Go to the documentation of this file.
3 {
4  //------------------------------------------------------------------------------------------------
5  override void UpdateDetail(SCR_EditableEntityComponent entity)
6  {
7  super.UpdateDetail(entity);
8 
9  SetBarAndPercentageValue(m_DamageManager.GetHealthScaled());
10  }
11 
12  //------------------------------------------------------------------------------------------------
13  override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
14  {
15  if (!super.InitDetail(entity, widget))
16  return false;
17 
18  if (m_DamageManager.GetState() == EDamageState.DESTROYED)
19  return false;
20 
21  return m_DamageManager.IsDamageHandlingEnabled();
22  }
23 }
EDamageState
EDamageState
Definition: EDamageState.c:12
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_DpsConditionBarBaseTooltipDetail
Definition: SCR_DpsConditionBarBaseTooltipDetail.c:2
m_DamageManager
DamageManagerComponent m_DamageManager
Definition: SCR_AITargetInfo.c:19
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468
SCR_HealthTooltipDetail
Definition: SCR_HealthTooltipDetail.c:2