Ejemplo n.º 1
0
        private void RefreshView(CBParams assetList)
        {
            itemH      = 18f;
            tree       = new FR2_TreeUI();
            duplicated = new List <FR2_DuplicateFolder>();

            for (var i = 0; i < assetList.Count; i++)
            {
                duplicated.Add(new FR2_DuplicateFolder(assetList[i]));
            }
        }
Ejemplo n.º 2
0
        public FR2_RefTree(Func <T, List <T> > getChildren, Func <T, Rect, bool, float> itemDrawer)
        {
            GetChildren = getChildren;
            ItemDrawer  = itemDrawer;

            Map      = new Dictionary <T, FR2_RefTreeItem <T> >();
            DrawList = new List <T>();
            Drawer   = new FR2_TreeUI {
                itemH = 18f
            };

            selectedParents = new List <T>();
        }
Ejemplo n.º 3
0
        private void DrawUnused()
        {
            if (unusedArray == null)
            {
                unusedArray = new List <FR2_Asset>();
            }
            if (unusedScroller == null)
            {
                unusedScroller = new FR2_TreeUI();
            }

            unusedScroller.Draw(unusedArray.Count, (idx, r, s) =>
            {
                var item = unusedArray[idx];
                item.Draw(r, false, false);
            });
        }