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_ShowHideInEditorUIComponent.c
Go to the documentation of this file.
1
class
SCR_ShowHideInEditorUIComponent
:
ScriptedWidgetComponent
2
{
3
protected
Widget
m_Root
;
4
5
[
Attribute
(
"1"
)]
6
protected
bool
m_bShowInEditor
;
7
8
//------------------------------------------------------------------------------------------------
9
protected
void
OnEditorOpen
()
10
{
11
m_Root
.SetVisible(
m_bShowInEditor
);
12
}
13
14
//------------------------------------------------------------------------------------------------
15
protected
void
OnEditorClosed
()
16
{
17
m_Root
.SetVisible(!
m_bShowInEditor
);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
void
HandlerAttached
(
Widget
w)
22
{
23
m_Root
= w;
24
SCR_EditorManagerEntity
editorManagerEntity =
SCR_EditorManagerEntity
.GetInstance();
25
26
if
(!editorManagerEntity)
27
return
;
28
29
editorManagerEntity.GetOnOpened().Insert(
OnEditorOpen
);
30
editorManagerEntity.GetOnClosed().Insert(
OnEditorClosed
);
31
32
m_Root
.SetVisible(
m_bShowInEditor
== editorManagerEntity.IsOpened());
33
}
34
35
//------------------------------------------------------------------------------------------------
36
override
void
HandlerDeattached
(
Widget
w)
37
{
38
SCR_EditorManagerEntity
editorManagerEntity =
SCR_EditorManagerEntity
.GetInstance();
39
40
if
(!editorManagerEntity)
41
return
;
42
43
editorManagerEntity.GetOnOpened().Remove(
OnEditorOpen
);
44
editorManagerEntity.GetOnClosed().Remove(
OnEditorClosed
);
45
}
46
}
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_ShowHideInEditorUIComponent
Definition
SCR_ShowHideInEditorUIComponent.c:2
SCR_ShowHideInEditorUIComponent::OnEditorClosed
void OnEditorClosed()
Definition
SCR_ShowHideInEditorUIComponent.c:15
SCR_ShowHideInEditorUIComponent::m_Root
Widget m_Root
Definition
SCR_ShowHideInEditorUIComponent.c:3
SCR_ShowHideInEditorUIComponent::HandlerDeattached
override void HandlerDeattached(Widget w)
Definition
SCR_ShowHideInEditorUIComponent.c:36
SCR_ShowHideInEditorUIComponent::OnEditorOpen
void OnEditorOpen()
Definition
SCR_ShowHideInEditorUIComponent.c:9
SCR_ShowHideInEditorUIComponent::m_bShowInEditor
bool m_bShowInEditor
Definition
SCR_ShowHideInEditorUIComponent.c:6
SCR_ShowHideInEditorUIComponent::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_ShowHideInEditorUIComponent.c:21
ScriptedWidgetComponent
Definition
ScriptedWidgetComponent.c:13
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
UI
Components
Common
SCR_ShowHideInEditorUIComponent.c
Generated by
1.17.0