Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HintEditorComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Editor", description: "Hints for editor interface. Works only with SCR_EditorBaseEntity!", icon: "WBData/ComponentEditorProps/componentEditor.png")]
3 {
4  [Attribute()]
5  protected ref SCR_HintConditionList m_Hints;
6 
7  void Init(IEntity owner)
8  {
9  m_Hints.Init(owner);
10  }
11  void Exit(IEntity owner)
12  {
13  m_Hints.Exit(owner);
14  }
15 };
17 {
18  [Attribute("1", desc: "When enabled, hints in the editor won't fade out on their own, players have to close them manually.")]
19  protected bool m_bInfiniteHints;
20 
21  override void EOnEditorActivate()
22  {
23  SCR_HintManagerComponent hintManager = SCR_HintManagerComponent.GetInstance();
24  if (!hintManager)
25  return;
26 
27  if (m_bInfiniteHints)
28  hintManager.SetDurationOverride(-1);
29 
30  SCR_HintEditorComponentClass prefabData = SCR_HintEditorComponentClass.Cast(GetEditorComponentData());
31  if (prefabData)
32  prefabData.Init(GetOwner());
33  }
34  override void EOnEditorDeactivate()
35  {
36  SCR_HintManagerComponent hintManager = SCR_HintManagerComponent.GetInstance();
37  if (!hintManager)
38  return;
39 
40  if (m_bInfiniteHints)
41  hintManager.SetDurationOverride(0);
42 
43  SCR_HintEditorComponentClass prefabData = SCR_HintEditorComponentClass.Cast(GetEditorComponentData());
44  if (prefabData)
45  prefabData.Exit(GetOwner());
46  }
47  override void EOnEditorClose()
48  {
49  SCR_HintManagerComponent.HideHint();
50  }
51 };
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_HintConditionList
Definition: SCR_HintConditionList.c:2
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_Hints
protected ref SCR_HintConditionList m_Hints
Definition: SCR_HintConditionComponent.c:3
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
SCR_BaseEditorComponentClass
Definition: SCR_BaseEditorComponent.c:2
SCR_HintEditorComponentClass
Definition: SCR_HintEditorComponent.c:2
SCR_HintEditorComponent
Definition: SCR_HintEditorComponent.c:16
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180