private static int ThumbnailList(Rect rect, int selection, GUIContent[] thumbnails, int maxRowItems) { int num = 0; int index1 = 0; while (index1 < thumbnails.Length) { for (int index2 = 0; index2 < maxRowItems && index1 < thumbnails.Length; ++index1) { if (WebTemplateManagerBase.ThumbnailListItem(new Rect(rect.x + (float)index2 * 80f, rect.y + (float)num * 100f, 80f, 100f), index1 == selection, thumbnails[index1])) { selection = index1; } ++index2; } ++num; } return(selection); }
private static int ThumbnailList(Rect rect, int selection, GUIContent[] thumbnails, int maxRowItems) { int num = 0; int i = 0; while (i < thumbnails.Length) { int num2 = 0; while (num2 < maxRowItems && i < thumbnails.Length) { if (WebTemplateManagerBase.ThumbnailListItem(new Rect(rect.x + (float)num2 * 80f, rect.y + (float)num * 100f, 80f, 100f), i == selection, thumbnails[i])) { selection = i; } num2++; i++; } num++; } return(selection); }