コード例 #1
0
 private void MarkBoldItemsByGUID(string guid)
 {
     for (int i = 0; i < this.m_GUIItems.Length; i++)
     {
         GUIHistoryListItem item   = this.m_GUIItems[i];
         ParentViewState    assets = item.assets;
         int index = 0;
         item.boldAssets = new bool[assets.GetLineCount()];
         for (int j = 0; j < assets.folders.Length; j++)
         {
             ParentViewFolder folder = assets.folders[j];
             if (folder.guid == guid)
             {
                 item.boldAssets[index] = true;
             }
             index++;
             for (int k = 0; k < folder.files.Length; k++)
             {
                 if (folder.files[k].guid == guid)
                 {
                     item.boldAssets[index] = true;
                 }
                 index++;
             }
         }
     }
 }
コード例 #2
0
 private void MarkBoldItemsByGUID(string guid)
 {
     for (int i = 0; i < this.m_GUIItems.Length; i++)
     {
         ASHistoryWindow.GUIHistoryListItem gUIHistoryListItem = this.m_GUIItems[i];
         ParentViewState assets = gUIHistoryListItem.assets;
         int             num    = 0;
         gUIHistoryListItem.boldAssets = new bool[assets.GetLineCount()];
         for (int j = 0; j < assets.folders.Length; j++)
         {
             ParentViewFolder parentViewFolder = assets.folders[j];
             if (parentViewFolder.guid == guid)
             {
                 gUIHistoryListItem.boldAssets[num] = true;
             }
             num++;
             for (int k = 0; k < parentViewFolder.files.Length; k++)
             {
                 if (parentViewFolder.files[k].guid == guid)
                 {
                     gUIHistoryListItem.boldAssets[num] = true;
                 }
                 num++;
             }
         }
     }
 }