Beispiel #1
0
        private static void Open()
        {
            TreeNodeDataCtrl.Inst.LoadEditorTreeNodeData();

            RedPointEditorWindow test = GetWindow <RedPointEditorWindow>();

            test.CreateWnd();
        }
Beispiel #2
0
        public void OpenWnd(ITreeNode node, RedPointEditorWindow parent)
        {
            ParentWnd = parent;

            titleContent = new GUIContent("创建子节点");

            curNode = node;

            parentNode = curNode.Parent;

            nodeName = null;

            childName = null;

            if (node.Id != 0)
            {
                childName = node.DisplayString;
            }

            comment = TreeNodeDataCtrl.Inst.GetRedPointComment(node.RedPoint);

            Show();
        }