Exemplo n.º 1
0
        public override void DrawMutable()
        {
            var canvas = GetValue <EpCanvas>();

            if (canvas == null)
            {
                ImGui.Text("<null EpCanvas>");
            }
            else
            {
                EpCanvasInspector.inspectTree(canvas.root);
            }
        }
Exemplo n.º 2
0
 // TODO: consider using more recursive solution
 public static void inspectTree(ContainerNode node)
 {
     if (inspectNode(node))
     {
         foreach (var child in node.children)
         {
             if (child is ContainerNode parent)
             {
                 EpCanvasInspector.inspectTree(parent);
             }
             else
             {
                 inspectNode(child);
             }
             handleClick(node);
             ImGui.TreePop();
         }
     }
     ImGui.TreePop();
 }
Exemplo n.º 3
0
 override protected void imGuiDrawImpl()
 {
     EpCanvasInspector.inspectTree(this.canvas.root);
 }