// Token: 0x06000219 RID: 537 RVA: 0x0000E92C File Offset: 0x0000CB2C protected override void DoGUI() { Vector2 vector = this.Style.CalcSize(GUIContent2.Temp(this.Text)); Rect rect = GUILayoutUtility.GetRect(vector.x, vector.y, this.Style, this.LayoutOptions); EditorGUI2.PathLabel(rect, this.Text, false); }
// Token: 0x06000227 RID: 551 RVA: 0x0000EC6C File Offset: 0x0000CE6C protected override void DoGUI() { Rect rect = GUILayoutUtility.GetRect(GUIContent2.Temp(this.Text), this.Style, this.LayoutOptions); int searchMode = this.SearchMode; string text = EditorGUI2.ToolbarSearchField(rect, this.Text, this.SearchModes, ref this.SearchMode); Rect lastRect = GUILayoutUtility.GetLastRect(); if (this.AcceptDrop && lastRect.Contains(Event.current.mousePosition) && DragAndDrop.paths != null && DragAndDrop.paths.Length > 0 && !string.IsNullOrEmpty(DragAndDrop.paths[0])) { if ((int)Event.current.type == 9 || (int)Event.current.type == 10) { DragAndDrop.visualMode = DragAndDropVisualMode.Copy; } if ((int)Event.current.type == 10 && DragAndDrop.paths != null) { string text2 = ""; foreach (string text3 in DragAndDrop.paths) { if (text2.Length > 0) { text2 += " || "; } object obj = text2; text2 = string.Concat(new object[] { obj, '"', text3.Trim(), '"' }); } text = text2; DragAndDrop.AcceptDrag(); base.Editor.Repaint(); } } if (searchMode != this.SearchMode || !string.Equals(text, this.Text, StringComparison.Ordinal)) { if (this._triggerTime < 0f) { EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.update, new EditorApplication.CallbackFunction(this.OnEditorApplicationUpdate)); } Event.current.Use(); this.Text = text; this._triggerTime = Time.realtimeSinceStartup; if (!string.IsNullOrEmpty(this.Text) && searchMode == this.SearchMode) { this._triggerTime += this.ExecDelay; } } }
// 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: 0x0600019D RID: 413 RVA: 0x0000C56D File Offset: 0x0000A76D protected void OnDrawAssetPath(FindAssetUsage.AssetProxy model, GUIListViewDrawItemArgs args) { EditorGUI2.PathLabel(args.ItemRect, model.AssetPath ?? "<no path available>", args.Selected); }
// Token: 0x0600019B RID: 411 RVA: 0x0000C524 File Offset: 0x0000A724 protected void OnDrawAssetName(FindAssetUsage.AssetProxy model, GUIListViewDrawItemArgs args) { EditorGUI2.PathLabel(args.ItemRect, model.Name, args.Selected); }
// Token: 0x060000D4 RID: 212 RVA: 0x000084B5 File Offset: 0x000066B5 private void OnDrawName(AssetBundleManifestUI.DependencyListbox.Model model, GUIListViewDrawItemArgs args) { EditorGUI2.PathLabel(args.ItemRect, model.Name, args.Selected); }
// 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); }
// 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); }
// 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); }
// Token: 0x06000154 RID: 340 RVA: 0x0000A8C2 File Offset: 0x00008AC2 public static void PathLabel(Rect position, string text, bool selected) { EditorGUI2.PathLabel(position, text, selected, GUIColors.SelectedText, EditorStyles.whiteLabel, GUIColors.Text, EditorStyles.whiteLabel); }