Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DeathDateToolDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_DeathDateToolDetail
:
SCR_EntityTooltipDetail
3
{
4
[
Attribute
(
"RowHolder"
)]
5
protected
string
m_sRowHolderName
;
6
7
[
Attribute
(defvalue:
"0.5 0.5 0.5 1"
,
desc
:
"Color of Text."
)]
8
protected
ref
Color
m_WidgetColor
;
9
10
//[Attribute("{B3B00EAA6B2DC305}UI/Textures/Notifications/Notification_Player_Died.edds")]
11
//protected ResourceName m_sDiedIcon;
12
13
//------------------------------------------------------------------------------------------------
14
override
bool
CreateDetail
(
SCR_EditableEntityComponent
entity,
Widget
parent,
TextWidget
label,
bool
setFrameslot =
true
)
15
{
16
if
(label)
17
label.SetColor(
m_WidgetColor
);
18
19
return
super.CreateDetail(entity, parent, label, setFrameslot);
20
}
21
22
//------------------------------------------------------------------------------------------------
23
override
bool
InitDetail
(
SCR_EditableEntityComponent
entity,
Widget
widget)
24
{
25
SCR_ExtendedIdentityComponent
extendedIdentityComponent =
SCR_ExtendedIdentityComponent
.Cast(entity.GetOwner().FindComponent(
SCR_ExtendedIdentityComponent
));
26
if
(!extendedIdentityComponent)
27
return
false
;
28
29
//~ Check if allowed to show bio
30
BaseContainer
editorSettings =
GetGame
().GetGameUserSettings().GetModule(
"SCR_EditorSettings"
);
31
bool
showBioTooltip =
true
;
32
33
if
(editorSettings)
34
editorSettings.Get(
"m_bShowIdentityBioTooltip"
, showBioTooltip);
35
36
if
(!showBioTooltip)
37
return
false
;
38
39
SCR_RowTooltipEditorUIComponent
rowTooltip =
SCR_RowTooltipEditorUIComponent
.Cast(widget.FindHandler(
SCR_RowTooltipEditorUIComponent
));
40
if
(!rowTooltip)
41
{
42
Widget
rowHolder = widget.FindAnyWidget(
m_sRowHolderName
);
43
if
(rowHolder)
44
rowTooltip =
SCR_RowTooltipEditorUIComponent
.Cast(rowHolder.FindHandler(
SCR_RowTooltipEditorUIComponent
));
45
}
46
47
if
(!rowTooltip)
48
return
false
;
49
50
SCR_IdentityManagerComponent
identityManager =
SCR_IdentityManagerComponent
.
GetInstance
();
51
if
(!identityManager)
52
return
false
;
53
54
int
currentRowIndex = 0;
55
56
//~ Death/Destruction
57
string
format, day, month, year, time;
58
59
if
(identityManager.
GetDeathDateAndTimeString
(
SCR_ExtendedCharacterIdentityComponent
.Cast(extendedIdentityComponent), format, day, month, year, time))
60
{
61
//rowTooltip.AddIcon(currentRowIndex, m_sDiedIcon, m_WidgetColor);
62
63
if
(rowTooltip.
AddText
(currentRowIndex, format,
m_WidgetColor
, day, month, year))
64
currentRowIndex++;
65
66
//~ Death date
67
rowTooltip.
AddText
(currentRowIndex, time,
m_WidgetColor
);
68
}
69
70
return
currentRowIndex > 0;
71
}
72
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition
SCR_KeyBindingMenuConfig.c:116
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
BaseContainer
Definition
BaseContainer.c:13
Color
Definition
Color.c:13
SCR_DeathDateToolDetail
Definition
SCR_DeathDateToolDetail.c:3
SCR_DeathDateToolDetail::m_sRowHolderName
string m_sRowHolderName
Definition
SCR_DeathDateToolDetail.c:5
SCR_DeathDateToolDetail::InitDetail
override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
Definition
SCR_DeathDateToolDetail.c:23
SCR_DeathDateToolDetail::CreateDetail
override bool CreateDetail(SCR_EditableEntityComponent entity, Widget parent, TextWidget label, bool setFrameslot=true)
Definition
SCR_DeathDateToolDetail.c:14
SCR_DeathDateToolDetail::m_WidgetColor
ref Color m_WidgetColor
Definition
SCR_DeathDateToolDetail.c:8
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EntityTooltipDetail
Definition
SCR_EntityTooltipDetail.c:3
SCR_ExtendedCharacterIdentityComponent
Definition
SCR_ExtendedCharacterIdentityComponent.c:6
SCR_ExtendedIdentityComponent
Definition
SCR_ExtendedIdentityComponent.c:6
SCR_IdentityManagerComponent
Definition
SCR_IdentityManagerComponent.c:7
SCR_IdentityManagerComponent::GetInstance
static SCR_IdentityManagerComponent GetInstance()
Definition
SCR_IdentityManagerComponent.c:62
SCR_IdentityManagerComponent::GetDeathDateAndTimeString
bool GetDeathDateAndTimeString(SCR_ExtendedCharacterIdentityComponent identityComponent, out string formatDate, out string dayString, out string monthString, out string yearString, out string time)
Definition
SCR_IdentityManagerComponent.c:383
SCR_RowTooltipEditorUIComponent
Definition
SCR_RowTooltipEditorUIComponent.c:2
SCR_RowTooltipEditorUIComponent::AddText
bool AddText(int rowIndex, string text, Color color=null, string param1=string.Empty, string param2=string.Empty, string param3=string.Empty, string param4=string.Empty, string param5=string.Empty)
Definition
SCR_RowTooltipEditorUIComponent.c:16
TextWidget
Definition
TextWidget.c:16
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
UI
Components
Tooltips
Tooltips
Details
SCR_DeathDateToolDetail.c
Generated by
1.17.0