private void OverlapPreview(float actualSize, string s, UnityEngine.Object o, EditorWrapper p) { float num = 5f; Rect position = new Rect(num, this.m_TopSize + num, base.position.width - num * 2f, actualSize - num * 2f); if (p != null && p.HasPreviewGUI()) { p.OnPreviewGUI(position, this.m_Styles.previewTextureBackground); } else { if (o != null) { this.DrawObjectIcon(position, this.m_ListArea.m_SelectedObjectIcon); } } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(position, s, this.m_Styles.largeStatus); } else { EditorGUI.DoDropShadowLabel(position, EditorGUIUtility.TempContent(s), this.m_Styles.largeStatus, 0.3f); } }
void WidePreview(float actualSize, string s, UnityObject o, EditorWrapper p) { float margin = kPreviewMargin; Rect previewRect = new Rect(margin, m_TopSize + margin, actualSize - margin * 2, actualSize - margin * 2); Rect labelRect = new Rect(m_PreviewSize + 3, m_TopSize + (m_PreviewSize - kPreviewExpandedAreaHeight) * 0.5f, m_Parent.window.position.width - m_PreviewSize - 3 - margin, kPreviewExpandedAreaHeight); if (p != null && p.HasPreviewGUI()) { p.OnPreviewGUI(previewRect, Styles.previewTextureBackground); } else if (o != null) { DrawObjectIcon(previewRect, m_ListArea.m_SelectedObjectIcon); } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(labelRect, s, Styles.smallStatus); } else { GUI.Label(labelRect, s, Styles.smallStatus); } }
private void WidePreview(float actualSize, string s, UnityEngine.Object o, EditorWrapper p) { float num = 5f; Rect position = new Rect(num, this.m_TopSize + num, actualSize - num * 2f, actualSize - num * 2f); Rect position2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + (this.m_PreviewSize - 75f) * 0.5f, this.m_Parent.window.position.width - this.m_PreviewSize - 3f - num, 75f); if (p != null && p.HasPreviewGUI()) { p.OnPreviewGUI(position, this.m_Styles.previewTextureBackground); } else { if (o != null) { this.DrawObjectIcon(position, this.m_ListArea.m_SelectedObjectIcon); } } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(position2, s, this.m_Styles.smallStatus); } else { GUI.Label(position2, s, this.m_Styles.smallStatus); } }
void OverlapPreview(float actualSize, string s, UnityObject o, EditorWrapper p) { float margin = kPreviewMargin; Rect previewRect = new Rect(margin, m_TopSize + margin, position.width - margin * 2, actualSize - margin * 2); if (p != null && p.HasPreviewGUI()) { p.OnPreviewGUI(previewRect, Styles.previewTextureBackground); } else if (o != null) { DrawObjectIcon(previewRect, m_ListArea.m_SelectedObjectIcon); } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(previewRect, s, Styles.largeStatus); } else { EditorGUI.DoDropShadowLabel(previewRect, EditorGUIUtility.TempContent(s), Styles.largeStatus, .3f); } }
private void WidePreview(float actualSize, string s, UnityEngine.Object o, EditorWrapper p) { float x = 5f; Rect position = new Rect(x, this.m_TopSize + x, actualSize - (x * 2f), actualSize - (x * 2f)); Rect rect2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + ((this.m_PreviewSize - 75f) * 0.5f), ((base.m_Parent.window.position.width - this.m_PreviewSize) - 3f) - x, 75f); if ((p != null) && p.HasPreviewGUI()) { p.OnPreviewGUI(position, this.m_Styles.previewTextureBackground); } else if (o != null) { this.DrawObjectIcon(position, this.m_ListArea.m_SelectedObjectIcon); } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(rect2, s, this.m_Styles.smallStatus); } else { GUI.Label(rect2, s, this.m_Styles.smallStatus); } }
private void WidePreview(float actualSize, string s, UnityEngine.Object o, EditorWrapper p) { float x = 5f; Rect position1 = new Rect(x, this.m_TopSize + x, actualSize - x * 2f, actualSize - x * 2f); Rect position2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + (float)(((double)this.m_PreviewSize - 75.0) * 0.5), (float)((double)this.m_Parent.window.position.width - (double)this.m_PreviewSize - 3.0) - x, 75f); if (p != null && p.HasPreviewGUI()) { p.OnPreviewGUI(position1, this.m_Styles.previewTextureBackground); } else if (o != (UnityEngine.Object)null) { this.DrawObjectIcon(position1, this.m_ListArea.m_SelectedObjectIcon); } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(position2, s, this.m_Styles.smallStatus); } else { GUI.Label(position2, s, this.m_Styles.smallStatus); } }
private void WidePreview(float actualSize, string s, UnityEngine.Object o, EditorWrapper p) { float x = 5f; Rect position1 = new Rect(x, this.m_TopSize + x, actualSize - x * 2f, actualSize - x * 2f); Rect position2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + (float) (((double) this.m_PreviewSize - 75.0) * 0.5), (float) ((double) this.m_Parent.window.position.width - (double) this.m_PreviewSize - 3.0) - x, 75f); if (p != null && p.HasPreviewGUI()) p.OnPreviewGUI(position1, this.m_Styles.previewTextureBackground); else if (o != (UnityEngine.Object) null) this.DrawObjectIcon(position1, this.m_ListArea.m_SelectedObjectIcon); if (EditorGUIUtility.isProSkin) EditorGUI.DropShadowLabel(position2, s, this.m_Styles.smallStatus); else GUI.Label(position2, s, this.m_Styles.smallStatus); }
private void WidePreview(float actualSize, string s, Object o, EditorWrapper p) { float x = 5f; Rect position = new Rect(x, this.m_TopSize + x, actualSize - (x * 2f), actualSize - (x * 2f)); Rect rect2 = new Rect(this.m_PreviewSize + 3f, this.m_TopSize + ((this.m_PreviewSize - 75f) * 0.5f), ((base.m_Parent.window.position.width - this.m_PreviewSize) - 3f) - x, 75f); if ((p != null) && p.HasPreviewGUI()) { p.OnPreviewGUI(position, this.m_Styles.previewTextureBackground); } else if (o != null) { this.DrawObjectIcon(position, this.m_ListArea.m_SelectedObjectIcon); } if (EditorGUIUtility.isProSkin) { EditorGUI.DropShadowLabel(rect2, s, this.m_Styles.smallStatus); } else { GUI.Label(rect2, s, this.m_Styles.smallStatus); } }