private void DrawVisualization() { GUIContent msg = new GUIContent($"<color=#{debugTextColorHex}>{label}.{currentSegment.label}</color>"); Vector2 size = StratusGUIStyles.header.CalcSize(msg); StratusGUI.GUILayoutArea(windowAnchor, size, (Rect rect) => { GUILayout.Label(msg, StratusGUIStyles.header); }); }
protected override void OnBeforeRow(Rect rect, TreeViewItem <BehaviorTree.BehaviorNode> treeViewItem) { if (treeViewItem.item.data is StratusAIComposite) { StratusGUI.GUIBox(rect, StratusAIComposite.color); } else if (treeViewItem.item.data is StratusAITask) { StratusGUI.GUIBox(rect, StratusAITask.color); } else if (treeViewItem.item.data is StratusAIDecorator) { StratusGUI.GUIBox(rect, StratusAIDecorator.color); } }
private void DrawDebug() { if (currentlyReading) { string content = $"Story: {story.name}"; content += $"\nCurrent Text: {story.runtime.currentText}"; if (currentPath != null) { content += $"Current Path: {currentPath}"; } GUIContent msg = StratusGUI.Content(content, 9, debugTextColor); StratusGUI.GUILayoutArea(debugArea, StratusGUI.quarterScreen, (Rect rect) => { GUILayout.Label(msg, StratusGUIStyles.skin.label); }); } }
void Start() { //Overlay.Watch(() => Agent.Target, "Target", this); StratusGUI.Watch(() => Agent.currentState, "Behavior", this); }
//------------------------------------------------------------------------/ // Messages //------------------------------------------------------------------------/ void Start() { agent = GetComponent <StratusAgent>(); navigation = GetComponent <NavMeshAgent>(); StratusGUI.Watch(() => agent.currentState, "Behavior", this); }