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); }