// Token: 0x060001D6 RID: 470 RVA: 0x0000D1F8 File Offset: 0x0000B3F8
        private void DrawItem(GUIListViewOrganizeColumnWindow.Item item, Rect rect, bool active)
        {
            rect.x     += 2f;
            rect.width -= 4f;
            if (active)
            {
                Color color = GUI.color;
                GUI.color = GUIColors.ActiveSelection;
                EditorGUI.DrawPreviewTexture(rect, EditorGUIUtility.whiteTexture);
                EditorGUIUtility.AddCursorRect(rect, MouseCursor.MoveArrow);
                float num = 4f;
                Rect  rect2;
                rect2 = new Rect(rect.x, 0f, rect.width, num);
                if (item.OrgItemAbove != null && item.OrgItemBelow != null)
                {
                    rect2.y      = item.OrgItemAbove.FadeY + (float)this._itemheight - num * 0.5f;
                    rect2.height = item.OrgItemBelow.FadeY - item.OrgItemAbove.FadeY - (float)this._itemheight + num;
                }
                if (item.OrgItemAbove != null && item.OrgItemBelow == null)
                {
                    rect2.y      = item.OrgItemAbove.FadeY + (float)this._itemheight - num * 0.5f;
                    rect2.height = num;
                }
                if (item.OrgItemAbove == null && item.OrgItemBelow != null)
                {
                    rect2.y      = item.OrgItemBelow.FadeY - num * 0.5f;
                    rect2.height = num;
                }
                EditorGUI.DrawPreviewTexture(rect2, EditorGUIUtility.whiteTexture);
                GUI.color = color;
            }
            else
            {
                EditorGUI.HelpBox(rect, "", 0);
            }
            GUIListViewColumn column = item.Column;
            string            text   = string.IsNullOrEmpty(column.PopupText) ? column.Text : column.PopupText;

            EditorGUI2.Label(rect, GUIListViewOrganizeColumnWindow.TempContent(text, column.Image, ""), active);
            rect.x    += rect.width - 16f;
            rect.width = 16f;
            if (GUI.Toggle(rect, item.Visible, GUIListViewOrganizeColumnWindow.TempContent("", null, "Show Column")) != item.Visible)
            {
                item.Visible = !item.Visible;
            }
        }
 // Token: 0x060000B6 RID: 182 RVA: 0x00007C9C File Offset: 0x00005E9C
 private void OnDrawSize(AssetBundleManifestUI.Listbox.Model model, GUIListViewDrawItemArgs args)
 {
     args.ItemRect.y = args.ItemRect.y + 3f;
     EditorGUI2.Label(args.ItemRect, EditorUtility2.FormatBytes(model.Size), args.Selected);
 }
Exemple #3
0
 // Token: 0x06000152 RID: 338 RVA: 0x0000A794 File Offset: 0x00008994
 public static void Label(Rect position, string text, bool selected, Color color)
 {
     EditorGUI2.Label(position, GUIContent2.Temp(text), selected, GUIColors.SelectedText, EditorStyles.whiteLabel, color, EditorStyles.whiteLabel);
 }
Exemple #4
0
 // Token: 0x06000150 RID: 336 RVA: 0x0000A753 File Offset: 0x00008953
 public static void Label(Rect position, GUIContent content, bool selected)
 {
     EditorGUI2.Label(position, content, selected, GUIColors.SelectedText, EditorStyles.whiteLabel, GUIColors.Text, EditorStyles.whiteLabel);
 }