Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DamageDisabledTooltipDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_DamageDisabledTooltipDetail
:
SCR_EntityTooltipDetail
3
{
4
protected
TextWidget m_Text;
5
6
[
Attribute
(
"loc INVINCIBLE"
)]
7
protected
LocalizedString
m_sInvincibleText;
8
9
//------------------------------------------------------------------------------------------------
10
override
bool
InitDetail(
SCR_EditableEntityComponent
entity, Widget widget)
11
{
12
m_Text = TextWidget.Cast(widget);
13
if
(!m_Text)
14
return
false
;
15
16
if
(entity.Type() == SCR_EditablePlayerDelegateComponent)
17
return
false
;
18
19
DamageManagerComponent
damageManager =
DamageManagerComponent
.Cast(entity.GetOwner().FindComponent(
DamageManagerComponent
));
20
if
(damageManager && (damageManager.IsDamageHandlingEnabled() || damageManager.GetState() ==
EDamageState
.DESTROYED))
21
return
false
;
22
23
m_Text.SetText(m_sInvincibleText);
24
25
return
true
;
26
}
27
}
EDamageState
EDamageState
Definition:
EDamageState.c:12
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition:
SCR_KeyBindingMenuConfig.c:113
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EntityTooltipDetail
Definition:
SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
DamageManagerComponent
Definition:
DamageManagerComponent.c:12
LocalizedString
Definition:
LocalizedString.c:21
SCR_DamageDisabledTooltipDetail
Definition:
SCR_DamageDisabledTooltipDetail.c:2
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
UI
Components
Tooltips
Tooltips
Details
SCR_DamageDisabledTooltipDetail.c
Generated by
1.8.17