public LineTreeItemCreater(int deepth, Transform parent, LineTreeOption option)
 {
     this.deepth = deepth;
     this.parent = parent;
     this.option = option;
     pool        = UIFacade.PanelPool;
 }
Пример #2
0
        public void InitTreeSelecter(int deepth, TreeNode node, LineTreeOption option)
        {
            this.node = node;
            var ruleget = option.ruleGetter;

            this.rule = ruleget(deepth);

            if (node.childern != null && node.childern.Length > 0)
            {
                InitContent(option.axisType);
                creater = new LineTreeItemCreater(deepth, childContent, option);
                var items = creater.CreateTreeSelectItems(node.childern.ToArray());
                foreach (var item in items)
                {
                    item.onSelection = OnSelection;
                }
            }
            else
            {
                //toggle.group = option.leafGroup;
            }

            ChargeRule();
        }
 public LineTreeItemCreater(int deepth, Transform parent, LineTreeOption option)
 {
     this.deepth = deepth;
     this.parent = parent;
     this.option = option;
 }