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_EntityTooltipDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_EntityTooltipDetail
3
{
4
[
Attribute
()]
5
protected
LocalizedString
m_sDisplayName
;
6
7
[
Attribute
(
params
:
"layout"
)]
8
protected
ResourceName
m_Layout
;
9
10
protected
Widget
m_Widget
;
11
12
[
Attribute
(
"1"
,
"If false hides label"
)]
13
protected
bool
m_bShowLabel
;
14
15
//------------------------------------------------------------------------------------------------
17
bool
NeedUpdate
()
18
{
19
return
false
;
20
}
21
22
//------------------------------------------------------------------------------------------------
29
bool
CreateDetail
(
SCR_EditableEntityComponent
entity,
Widget
parent,
TextWidget
label,
bool
setFrameslot =
true
)
30
{
31
if
(label)
32
label.SetText(
m_sDisplayName
);
33
34
WorkspaceWidget
workspace = parent.GetWorkspace();
35
m_Widget
= workspace.CreateWidgets(
m_Layout
, parent);
36
37
if
(
InitDetail
(entity,
m_Widget
))
38
{
39
return
true
;
40
}
41
else
42
{
43
m_Widget
.RemoveFromHierarchy();
44
m_Widget
= null;
45
return
false
;
46
}
47
}
48
49
//------------------------------------------------------------------------------------------------
52
void
UpdateDetail
(
SCR_EditableEntityComponent
entity);
53
54
//------------------------------------------------------------------------------------------------
59
bool
InitDetail
(
SCR_EditableEntityComponent
entity,
Widget
widget);
60
61
//------------------------------------------------------------------------------------------------
63
bool
GetShowLabel
()
64
{
65
return
m_bShowLabel
;
66
}
67
}
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
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
LocalizedString
Definition
LocalizedString.c:22
ResourceName
Definition
ResourceName.c:13
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EntityTooltipDetail
Definition
SCR_EntityTooltipDetail.c:3
SCR_EntityTooltipDetail::GetShowLabel
bool GetShowLabel()
Definition
SCR_EntityTooltipDetail.c:63
SCR_EntityTooltipDetail::NeedUpdate
bool NeedUpdate()
Definition
SCR_EntityTooltipDetail.c:17
SCR_EntityTooltipDetail::InitDetail
bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
SCR_EntityTooltipDetail::CreateDetail
bool CreateDetail(SCR_EditableEntityComponent entity, Widget parent, TextWidget label, bool setFrameslot=true)
Definition
SCR_EntityTooltipDetail.c:29
SCR_EntityTooltipDetail::m_bShowLabel
bool m_bShowLabel
Definition
SCR_EntityTooltipDetail.c:13
SCR_EntityTooltipDetail::m_Layout
ResourceName m_Layout
Definition
SCR_EntityTooltipDetail.c:8
SCR_EntityTooltipDetail::m_sDisplayName
LocalizedString m_sDisplayName
Definition
SCR_EntityTooltipDetail.c:5
SCR_EntityTooltipDetail::UpdateDetail
void UpdateDetail(SCR_EditableEntityComponent entity)
SCR_EntityTooltipDetail::m_Widget
Widget m_Widget
Definition
SCR_EntityTooltipDetail.c:10
TextWidget
Definition
TextWidget.c:16
Widget
Definition
Widget.c:13
WorkspaceWidget
Definition
WorkspaceWidget.c:16
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
UI
Components
Tooltips
Tooltips
Details
SCR_EntityTooltipDetail.c
Generated by
1.17.0