public bool Frame(int instanceID, bool frame, bool ping)
 {
   if (ObjectListArea.s_Styles == null)
     ObjectListArea.s_Styles = new ObjectListArea.Styles();
   int itemIdx = -1;
   if (this.GetCreateAssetUtility().IsCreatingNewAsset() && this.m_State.m_NewAssetIndexInList != -1 && this.GetCreateAssetUtility().instanceID == instanceID)
     itemIdx = this.m_State.m_NewAssetIndexInList;
   if (frame)
     this.Reveal(instanceID);
   if (itemIdx == -1)
     itemIdx = this.m_LocalAssets.IndexOf(instanceID);
   if (itemIdx == -1)
     return false;
   if (frame)
   {
     float yOffset = 0.0f;
     this.CenterRect(ObjectListArea.AdjustRectForFraming(this.m_LocalAssets.m_Grid.CalcRect(itemIdx, yOffset)));
     this.Repaint();
   }
   if (ping)
     this.BeginPing(instanceID);
   return true;
 }
 public void OnGUI(Rect position, int keyboardControlID)
 {
   if (ObjectListArea.s_Styles == null)
     ObjectListArea.s_Styles = new ObjectListArea.Styles();
   ObjectListArea.s_VCEnabled = Provider.isActive;
   Event current = Event.current;
   this.m_TotalRect = position;
   this.FrameLastClickedItemIfWanted();
   GUI.Label(this.m_TotalRect, GUIContent.none, ObjectListArea.s_Styles.iconAreaBg);
   this.m_KeyboardControlID = keyboardControlID;
   if (current.type == EventType.MouseDown && position.Contains(Event.current.mousePosition))
   {
     GUIUtility.keyboardControl = this.m_KeyboardControlID;
     this.m_AllowRenameOnMouseUp = true;
     this.Repaint();
   }
   bool flag = this.m_KeyboardControlID == GUIUtility.keyboardControl;
   if (flag != this.m_State.m_HadKeyboardFocusLastEvent)
   {
     this.m_State.m_HadKeyboardFocusLastEvent = flag;
     if (flag)
     {
       if (current.type == EventType.MouseDown)
         this.m_AllowRenameOnMouseUp = false;
       if (this.m_GotKeyboardFocus != null)
         this.m_GotKeyboardFocus();
     }
   }
   int instanceID;
   if (current.keyCode == KeyCode.Tab && current.type == EventType.KeyDown && (!flag && !this.IsShowingAny(this.GetSelection())) && this.m_LocalAssets.InstanceIdAtIndex(0, out instanceID))
     Selection.activeInstanceID = instanceID;
   this.HandleKeyboard(true);
   this.HandleZoomScrolling();
   this.HandleListArea();
   this.DoOffsetSelection();
   this.HandleUnusedEvents();
 }
		public void BeginPing(int instanceID)
		{
			if (ObjectListArea.s_Styles == null)
			{
				ObjectListArea.s_Styles = new ObjectListArea.Styles();
			}
			int num = this.m_LocalAssets.IndexOf(instanceID);
			if (num != -1)
			{
				string text = null;
				HierarchyProperty hierarchyProperty = new HierarchyProperty(HierarchyType.Assets);
				if (hierarchyProperty.Find(instanceID, null))
				{
					text = hierarchyProperty.name;
				}
				if (text == null)
				{
					return;
				}
				this.m_Ping.m_TimeStart = Time.realtimeSinceStartup;
				this.m_Ping.m_AvailableWidth = this.m_VisibleRect.width;
				this.m_pingIndex = num;
				float num2 = (!ObjectListArea.s_VCEnabled) ? 0f : 14f;
				GUIContent gUIContent = new GUIContent((!this.m_LocalAssets.ListMode) ? this.GetCroppedLabelText(instanceID, text, (float)this.m_WidthUsedForCroppingName) : text);
				string label = gUIContent.text;
				if (this.m_LocalAssets.ListMode)
				{
					this.m_Ping.m_PingStyle = ObjectListArea.s_Styles.ping;
					Vector2 vector = this.m_Ping.m_PingStyle.CalcSize(gUIContent);
					this.m_Ping.m_ContentRect.width = vector.x + num2 + 16f;
					this.m_Ping.m_ContentRect.height = vector.y;
					this.m_LeftPaddingForPinging = ((!hierarchyProperty.isMainRepresentation) ? 28 : 16);
					FilteredHierarchy.FilterResult res = this.m_LocalAssets.LookupByInstanceID(instanceID);
					this.m_Ping.m_ContentDraw = delegate(Rect r)
					{
						ObjectListArea.LocalGroup.DrawIconAndLabel(r, res, label, hierarchyProperty.icon, false, false);
					};
				}
				else
				{
					this.m_Ping.m_PingStyle = ObjectListArea.s_Styles.miniPing;
					Vector2 vector2 = this.m_Ping.m_PingStyle.CalcSize(gUIContent);
					this.m_Ping.m_ContentRect.width = vector2.x;
					this.m_Ping.m_ContentRect.height = vector2.y;
					this.m_Ping.m_ContentDraw = delegate(Rect r)
					{
						TextAnchor alignment = ObjectListArea.s_Styles.resultsGridLabel.alignment;
						ObjectListArea.s_Styles.resultsGridLabel.alignment = TextAnchor.UpperLeft;
						ObjectListArea.s_Styles.resultsGridLabel.Draw(r, label, false, false, false, false);
						ObjectListArea.s_Styles.resultsGridLabel.alignment = alignment;
					};
				}
				Vector2 vector3 = this.CalculatePingPosition();
				this.m_Ping.m_ContentRect.x = vector3.x;
				this.m_Ping.m_ContentRect.y = vector3.y;
				this.Repaint();
			}
		}
 public void BeginPing(int instanceID)
 {
   if (ObjectListArea.s_Styles == null)
     ObjectListArea.s_Styles = new ObjectListArea.Styles();
   int num1 = this.m_LocalAssets.IndexOf(instanceID);
   if (num1 == -1)
     return;
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   ObjectListArea.\u003CBeginPing\u003Ec__AnonStorey3F pingCAnonStorey3F = new ObjectListArea.\u003CBeginPing\u003Ec__AnonStorey3F();
   string fullText = (string) null;
   // ISSUE: reference to a compiler-generated field
   pingCAnonStorey3F.hierarchyProperty = new HierarchyProperty(HierarchyType.Assets);
   // ISSUE: reference to a compiler-generated field
   if (pingCAnonStorey3F.hierarchyProperty.Find(instanceID, (int[]) null))
   {
     // ISSUE: reference to a compiler-generated field
     fullText = pingCAnonStorey3F.hierarchyProperty.name;
   }
   if (fullText == null)
     return;
   this.m_Ping.m_TimeStart = Time.realtimeSinceStartup;
   this.m_Ping.m_AvailableWidth = this.m_VisibleRect.width;
   this.m_pingIndex = num1;
   float num2 = !ObjectListArea.s_VCEnabled ? 0.0f : 14f;
   GUIContent content = new GUIContent(!this.m_LocalAssets.ListMode ? this.GetCroppedLabelText(instanceID, fullText, (float) this.m_WidthUsedForCroppingName) : fullText);
   // ISSUE: reference to a compiler-generated field
   pingCAnonStorey3F.label = content.text;
   if (this.m_LocalAssets.ListMode)
   {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     ObjectListArea.\u003CBeginPing\u003Ec__AnonStorey3E pingCAnonStorey3E = new ObjectListArea.\u003CBeginPing\u003Ec__AnonStorey3E();
     // ISSUE: reference to a compiler-generated field
     pingCAnonStorey3E.\u003C\u003Ef__ref\u002463 = pingCAnonStorey3F;
     this.m_Ping.m_PingStyle = ObjectListArea.s_Styles.ping;
     Vector2 vector2 = this.m_Ping.m_PingStyle.CalcSize(content);
     this.m_Ping.m_ContentRect.width = (float) ((double) vector2.x + (double) num2 + 16.0);
     this.m_Ping.m_ContentRect.height = vector2.y;
     // ISSUE: reference to a compiler-generated field
     this.m_LeftPaddingForPinging = !pingCAnonStorey3F.hierarchyProperty.isMainRepresentation ? 28 : 16;
     // ISSUE: reference to a compiler-generated field
     pingCAnonStorey3E.res = this.m_LocalAssets.LookupByInstanceID(instanceID);
     // ISSUE: reference to a compiler-generated method
     this.m_Ping.m_ContentDraw = new System.Action<Rect>(pingCAnonStorey3E.\u003C\u003Em__53);
   }
   else
   {
     this.m_Ping.m_PingStyle = ObjectListArea.s_Styles.miniPing;
     Vector2 vector2 = this.m_Ping.m_PingStyle.CalcSize(content);
     this.m_Ping.m_ContentRect.width = vector2.x;
     this.m_Ping.m_ContentRect.height = vector2.y;
     // ISSUE: reference to a compiler-generated method
     this.m_Ping.m_ContentDraw = new System.Action<Rect>(pingCAnonStorey3F.\u003C\u003Em__54);
   }
   Vector2 pingPosition = this.CalculatePingPosition();
   this.m_Ping.m_ContentRect.x = pingPosition.x;
   this.m_Ping.m_ContentRect.y = pingPosition.y;
   this.Repaint();
 }
		public bool Frame(int instanceID, bool frame, bool ping)
		{
			if (ObjectListArea.s_Styles == null)
			{
				ObjectListArea.s_Styles = new ObjectListArea.Styles();
			}
			int num = -1;
			if (this.GetCreateAssetUtility().IsCreatingNewAsset() && this.m_State.m_NewAssetIndexInList != -1 && this.GetCreateAssetUtility().instanceID == instanceID)
			{
				num = this.m_State.m_NewAssetIndexInList;
			}
			if (frame)
			{
				this.Reveal(instanceID);
			}
			if (num == -1)
			{
				num = this.m_LocalAssets.IndexOf(instanceID);
			}
			if (num != -1)
			{
				if (frame)
				{
					float yOffset = 0f;
					Rect r = this.m_LocalAssets.m_Grid.CalcRect(num, yOffset);
					this.CenterRect(ObjectListArea.AdjustRectForFraming(r));
					this.Repaint();
				}
				if (ping)
				{
					this.BeginPing(instanceID);
				}
				return true;
			}
			return false;
		}