public ASUpdateConflictResolveWindow(string[] conflicting)
{
float[] relativeSizes = new float[] { 20f, 80f };
int[] minSizes = new int[] { 100, 100 };
this.lvHeaderSplit1 = new SplitterState(relativeSizes, minSizes, null);
float[] singleArray2 = new float[] { 20f, 80f };
int[] numArray2 = new int[] { 100, 100 };
this.lvHeaderSplit2 = new SplitterState(singleArray2, numArray2, null);
this.dropDownMenuItems = new string[] { "Compare", "Compare Binary" };
this.downloadConflicts = new string[0];
this.nameConflicts = new string[0];
this.dConflictPaths = new string[0];
this.dNamingPaths = new string[0];
this.downloadResolutions = new DownloadResolution[0];
this.namingResolutions = new NameConflictResolution[0];
this.enableMergeButton = true;
this.iconSize = new Vector2(16f, 16f);
this.downloadResolutionString = new string[] { "Unresolved", "Skip Asset", "Discard My Changes", "Ignore Server Changes", "Merge" };
this.namingResolutionString = new string[] { "Unresolved", "Rename Local Asset", "Rename Server Asset" };
this.downloadConflictsToResolve = 0;
ArrayList list = new ArrayList();
ArrayList list2 = new ArrayList();
ArrayList list3 = new ArrayList();
ArrayList list4 = new ArrayList();
for (int i = 0; i < conflicting.Length; i++)
{
AssetStatus statusGUID = AssetServer.GetStatusGUID(conflicting[i]);
if (statusGUID == AssetStatus.Conflict)
{
list.Add(conflicting[i]);
DownloadResolution downloadResolution = AssetServer.GetDownloadResolution(conflicting[i]);
list2.Add(downloadResolution);
if (downloadResolution == DownloadResolution.Unresolved)
{
this.downloadConflictsToResolve++;
}
}
if ((AssetServer.GetPathNameConflict(conflicting[i]) != null) && (statusGUID != AssetStatus.ServerOnly))
{
list4.Add(conflicting[i]);
NameConflictResolution nameConflictResolution = AssetServer.GetNameConflictResolution(conflicting[i]);
list3.Add(nameConflictResolution);
if (nameConflictResolution == NameConflictResolution.Unresolved)
{
this.downloadConflictsToResolve++;
}
}
}
this.downloadConflicts = list.ToArray(typeof(string)) as string[];
this.downloadResolutions = list2.ToArray(typeof(DownloadResolution)) as DownloadResolution[];
this.namingResolutions = list3.ToArray(typeof(NameConflictResolution)) as NameConflictResolution[];
this.nameConflicts = list4.ToArray(typeof(string)) as string[];
this.enableContinueButton = this.downloadConflictsToResolve == 0;
this.dConflictPaths = new string[this.downloadConflicts.Length];
this.deletionConflict = new bool[this.downloadConflicts.Length];
for (int j = 0; j < this.downloadConflicts.Length; j++)
{
if (AssetServer.HasDeletionConflict(this.downloadConflicts[j]))
{
this.dConflictPaths[j] = ParentViewFolder.MakeNiceName(AssetServer.GetDeletedItemPathAndName(this.downloadConflicts[j]));
this.deletionConflict[j] = true;
}
else
{
this.dConflictPaths[j] = ParentViewFolder.MakeNiceName(AssetServer.GetAssetPathName(this.downloadConflicts[j]));
this.deletionConflict[j] = false;
}
}
this.dNamingPaths = new string[this.nameConflicts.Length];
for (int k = 0; k < this.nameConflicts.Length; k++)
{
this.dNamingPaths[k] = ParentViewFolder.MakeNiceName(AssetServer.GetAssetPathName(this.nameConflicts[k]));
}
this.showDownloadConflicts = this.downloadConflicts.Length > 0;
this.showNamingConflicts = this.nameConflicts.Length > 0;
this.lv1.totalRows = this.downloadConflicts.Length;
this.lv2.totalRows = this.nameConflicts.Length;
this.selectedLV1Items = new bool[this.downloadConflicts.Length];
this.selectedLV2Items = new bool[this.nameConflicts.Length];
this.DoSelectionChange();
}