4 AIAgent m_AgentForVisualize;
9 [
Attribute(
"10.0", UIWidgets.EditBox,
"Show time")]
10 private float m_fShowTime;
12 [
Attribute(
"20.0", UIWidgets.EditBox,
"FontSize")]
13 private float m_fFontSize;
16 protected override void PrintInternal(
string in)
18 if (m_AgentForVisualize)
19 SCR_AIDebugVisualization.VisualizeMessage(m_AgentForVisualize.GetControlledEntity(), in, m_eAICategory, m_fShowTime, Color.FromInt(
UIColors.CONTRAST_COLOR.PackToInt()), m_fFontSize);
23 override void OnInit(AIAgent owner)
26 AIGroup group = AIGroup.Cast(owner);
28 m_AgentForVisualize = group.GetLeaderAgent();
30 m_AgentForVisualize = owner;
34 protected override bool VisibleInPalette()
40 protected override string GetOnHoverDescription()
42 return "BT node for vizualize debug messsages in workbench. String can be in In port or as parameter";