Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIVisualizeDebug.c
Go to the documentation of this file.
1 // BT node for visualizing strings over AIs
3 {
4  AIAgent m_AgentForVisualize;
5 
6  [Attribute("0", UIWidgets.ComboBox, "Debug category", "", ParamEnumArray.FromEnum(EAIDebugCategory) )]
7  private EAIDebugCategory m_eAICategory;
8 
9  [Attribute("10.0", UIWidgets.EditBox, "Show time")]
10  private float m_fShowTime;
11 
12  [Attribute("20.0", UIWidgets.EditBox, "FontSize")]
13  private float m_fFontSize;
14 
15  //------------------------------------------------------------------------------------------------
16  protected override void PrintInternal(string in)
17  {
18  if (m_AgentForVisualize)
19  SCR_AIDebugVisualization.VisualizeMessage(m_AgentForVisualize.GetControlledEntity(), in, m_eAICategory, m_fShowTime, Color.FromInt(UIColors.CONTRAST_COLOR.PackToInt()), m_fFontSize);
20  }
21 
22  //------------------------------------------------------------------------------------------------
23  override void OnInit(AIAgent owner)
24  {
25  super.OnInit(owner);
26  AIGroup group = AIGroup.Cast(owner);
27  if (group)
28  m_AgentForVisualize = group.GetLeaderAgent();
29  else
30  m_AgentForVisualize = owner;
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  protected override bool VisibleInPalette()
35  {
36  return true;
37  }
38 
39  //------------------------------------------------------------------------------------------------
40  protected override string GetOnHoverDescription()
41  {
42  return "BT node for vizualize debug messsages in workbench. String can be in In port or as parameter";
43  }
44 };
SCR_AIDebugVisualization
Definition: SCR_AIDebugVisualization.c:9
SCR_AIVisualizeDebug
Definition: SCR_AIVisualizeDebug.c:2
SCR_AIDebugTask
Definition: SCR_AIDebugTask.c:2
EAIDebugCategory
EAIDebugCategory
Definition: SCR_AIWorld.c:11
Attribute
typedef Attribute
Post-process effect of scripted camera.
UIColors
Definition: Constants.c:16