Exemple #1
0
        private void InitClientTable()
        {
            if (m_ClientTree != null)
            {
                return;
            }
            var column = RemoteDebugClientInfo.totalColumn;

            m_ClientTree = EditorTable.CreateTable(column);
            for (int i = 0; i < column; i++)
            {
                m_ClientTree.SetColumnHeader(i, RemoteDebugClientInfo.GetColumnHeader(i));
            }
            m_ClientTree.OnDoubleClickedItem = OnDoubleClickedItem;
            m_Panel.SetLeftTopPanel(m_ClientTree, false);
        }
Exemple #2
0
        private void InitAssetsTable()
        {
            if (m_AssetTree != null)
            {
                return;
            }
            var column = ABAssetsInfo.totalColumn;

            m_AssetTree = EditorTable.CreateTable(column, true);
            for (int i = 0; i < column; i++)
            {
                m_AssetTree.SetColumnHeader(i, ABAssetsInfo.GetColumnHeader(i));
            }
            m_AssetTree.OnSelectionChanged = OnSelectedAssetsList;
            m_Panel.SetRightTopPanel(m_AssetTree, false, k_AssetsToolbarHeight / 2);
        }
Exemple #3
0
        private void InitABDepTable()
        {
            if (m_ABDepTree != null)
            {
                return;
            }
            var column = ABInfo.totalColumn;

            m_ABDepTree = EditorTable.CreateTable(column);
            for (int i = 0; i < column; i++)
            {
                m_ABDepTree.SetColumnHeader(i, ABInfo.GetColumnHeader(i));
            }
            m_ABDepTree.OnSelectionChanged = OnSelectedABDepList;
            m_Panel.SetLeftBottomPanel(m_ABDepTree, false, k_DepToolbarHeight);
        }
        private void InitClientObjectsTable()
        {
            if (m_ClientObjectsTree != null)
            {
                return;
            }
            var column = HierarchyItemInfo.totalColumn;

            m_ClientObjectsTree = EditorTable.CreateTable(column);
            for (int i = 0; i < column; i++)
            {
                m_ClientObjectsTree.SetColumnHeader(i, HierarchyItemInfo.GetColumnHeader(i));
            }
            m_ClientObjectsTree.OnSelectionChanged = OnSelectedClientObjectList;
            m_ClientObjectsTree.Reload();
        }
 private void OnGUI_Table(Rect rect)
 {
     if (m_FileTree == null)
     {
         var column = PatchFileInfo.totalColumn;
         m_FileTree = EditorTable.CreateTable(column);
         for (int i = 0; i < column; i++)
         {
             m_FileTree.SetColumnHeader(i, PatchFileInfo.GetColumnHeader(i));
         }
         m_FileTree.OnSelectionChanged  = OnSelectedFileList;
         m_FileTree.OnDoubleClickedItem = OnDoubleClickedItem;
         RefreshFileList();
         m_FileTree.Reload();
     }
     m_FileTree.OnGUI(rect);
 }
Exemple #6
0
        private void OnGUI()
        {
            if (m_LTPanel == null)
            {
                m_LTPanel = new TestPanel();
                m_Panel.SetLeftTopPanel(m_LTPanel);
            }
            if (m_RTTable == null)
            {
                var column = TestInfo.totalColumn;
                m_RTTable = EditorTable.CreateTable(column);
                for (int i = 0; i < column; i++)
                {
                    m_RTTable.SetColumnHeader(0, TestInfo.GetColumnHeader(i));
                }
                m_RTTable.OnSelectionChanged = SelectedInfo;
                m_Panel.SetRightTopPanel(m_RTTable, false);
            }
            var panelRect = GetPanelArea();

            m_Panel.OnGUI(panelRect);
        }