public NodePrintController(VisualTask node) { _node = node; _box = node.Box; _divider = node.Divider; _iconMain = new TextureLoader(_node.Task.IconPath); }
public BehaviorTreePrinter(IBehaviorTree tree, Vector2 windowSize) { StatusIcons = new StatusIcons(); SharedStyles = new GuiStyleCollection(); var container = new GraphContainerVertical(); container.SetGlobalPosition(SCROLL_PADDING, SCROLL_PADDING); _root = new VisualTask(tree.Root, container); container.CenterAlignChildren(); _containerSize = new Rect(0, 0, container.Width + SCROLL_PADDING * 2, container.Height + SCROLL_PADDING * 2); CenterScrollView(windowSize, container); }