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_EditorNotificationEditorOnlyHintCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
(), SCR_BaseContainerHintCondition()]
2
class
SCR_EditorNotificationEditorOnlyHintCondition
:
SCR_BaseEditorHintCondition
3
{
4
//------------------------------------------------------------------------------------------------
5
protected
void
OnNotification
(
SCR_NotificationData
data
)
6
{
7
if
(!
data
)
8
return
;
9
10
if
(
data
.GetNotificationReceiverType() !=
ENotificationReceiver
.GM_ONLY &&
data
.GetNotificationReceiverType() !=
ENotificationReceiver
.LOCAL_GM_ONLY)
11
return
;
12
13
//~ Add 1 frame delay as in many causes the notifcation is shown after an attribute is changed and it will need to wait until menu is properly closed
14
GetGame
().GetCallqueue().CallLater(
DelayedShowHint
);
15
}
16
17
//------------------------------------------------------------------------------------------------
18
protected
void
DelayedShowHint
()
19
{
20
Activate
();
21
}
22
23
//------------------------------------------------------------------------------------------------
24
override
protected
void
OnInitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
25
{
26
SCR_NotificationsComponent notificationsManager = SCR_NotificationsComponent.GetInstance();
27
if
(notificationsManager)
28
notificationsManager.GetOnNotification().Insert(
OnNotification
);
29
}
30
31
//------------------------------------------------------------------------------------------------
32
override
protected
void
OnExitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
33
{
34
SCR_NotificationsComponent notificationsManager = SCR_NotificationsComponent.GetInstance();
35
if
(notificationsManager)
36
notificationsManager.GetOnNotification().Remove(
OnNotification
);
37
}
38
}
ENotificationReceiver
ENotificationReceiver
Definition
ENotificationReceiver.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
SCR_BaseEditorHintCondition
Definition
SCR_BaseEditorHintCondition.c:3
SCR_BaseHintCondition::Activate
void Activate()
Definition
SCR_BaseHintCondition.c:11
SCR_EditorNotificationEditorOnlyHintCondition
Definition
SCR_EditorNotificationEditorOnlyHintCondition.c:3
SCR_EditorNotificationEditorOnlyHintCondition::OnInitConditionEditor
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorNotificationEditorOnlyHintCondition.c:24
SCR_EditorNotificationEditorOnlyHintCondition::DelayedShowHint
void DelayedShowHint()
Definition
SCR_EditorNotificationEditorOnlyHintCondition.c:18
SCR_EditorNotificationEditorOnlyHintCondition::OnNotification
void OnNotification(SCR_NotificationData data)
Definition
SCR_EditorNotificationEditorOnlyHintCondition.c:5
SCR_EditorNotificationEditorOnlyHintCondition::OnExitConditionEditor
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorNotificationEditorOnlyHintCondition.c:32
SCR_NotificationData
Definition
SCR_NotificationData.c:7
scripts
Game
Components
Hints
HintConditions
SCR_EditorNotificationEditorOnlyHintCondition.c
Generated by
1.17.0