Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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 static override bool VisibleInPalette()
35 {
36 return true;
37 }
38
39 //------------------------------------------------------------------------------------------------
40 protected static 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};
EAIDebugCategory
Definition SCR_AIWorld.c:12
Definition Color.c:13
static void VisualizeMessage(IEntity entity, string message, EAIDebugCategory category, float showTime, Color color=Color.White, float fontSize=16, bool ignoreCategory=false)
override void PrintInternal(string in)
override void OnInit(AIAgent owner)
static override bool VisibleInPalette()
static override string GetOnHoverDescription()
SCR_FieldOfViewSettings Attribute