public void attachChildrent(string text) { var c = new YAMMNode(); c.setText(text); c.setParesent(this); }
public void tryAdd(Action<YAMMNode> continuous) { var ui = cast<UIMM>(); var pt = ui.mRoot.transformAbs(new PointF(100, 0)); UI.Instance.input((int)pt.X, (int)pt.Y, str => { var node = new YAMMNode(); node.setText(str); appendChild(node); if (continuous != null) { continuous(node); } }); }
public YAMMNode addNode(string name) { var node = new YAMMNode(); node.setText(name); mCurrent.appendChild(node); return node; }