Exemplo n.º 1
0
 public AssetListTree(TreeViewState state, MultiColumnHeaderState mchs, AssetBundleManageTab ctrl) : base(state, new MultiColumnHeader(mchs))
 {
     m_controller = ctrl;
     showBorder   = true;
     showAlternatingRowBackgrounds     = true;
     DefaultStyles.label.richText      = true;
     multiColumnHeader.sortingChanged += OnSortingChanged;
 }
        private void OnEnable()
        {
            Rect subPos = GetSubWindowArea();

            if (m_ManageTab == null)
            {
                m_ManageTab = new AssetBundleManageTab();
            }
            m_ManageTab.OnEnable(subPos, this);
            if (m_BuildTab == null)
            {
                m_BuildTab = new AssetBundleBuildTab();
            }
            m_BuildTab.OnEnable(subPos, this);
            if (m_PreprocessingTab == null)
            {
                m_PreprocessingTab = new ABPreprocessingTab();
            }
            m_PreprocessingTab.OnEnable(subPos, this);

            m_RefreshTexture = EditorGUIUtility.FindTexture("Refresh");
        }
Exemplo n.º 3
0
 public AssetBundleTree(TreeViewState state, AssetBundleManageTab ctrl) : base(state)
 {
     AssetBundleModel.Model.Rebuild();
     m_controller = ctrl;
     showBorder   = true;
 }