internal void OnGUI()
		{
			if (Event.current.type == EventType.Layout)
			{
				return;
			}
			if (LayerVisibilityWindow.s_Styles == null)
			{
				LayerVisibilityWindow.s_Styles = new LayerVisibilityWindow.Styles();
			}
			Rect position = new Rect(1f, 1f, base.position.width - 2f, base.position.height - 2f);
			Rect viewRect = new Rect(0f, 0f, 1f, this.m_ContentHeight);
			bool flag = this.m_ContentHeight > position.height;
			float num = position.width;
			if (flag)
			{
				num -= 14f;
			}
			this.m_ScrollPosition = GUI.BeginScrollView(position, this.m_ScrollPosition, viewRect);
			this.Draw(num);
			GUI.EndScrollView();
			GUI.Label(new Rect(0f, 0f, base.position.width, base.position.height), GUIContent.none, LayerVisibilityWindow.s_Styles.background);
			if (Event.current.type == EventType.MouseMove)
			{
				Event.current.Use();
			}
			if (Event.current.type == EventType.KeyDown && Event.current.keyCode == KeyCode.Escape)
			{
				base.Close();
				GUIUtility.ExitGUI();
			}
		}
 internal void OnGUI()
 {
   if (Event.current.type == EventType.Layout)
     return;
   if (LayerVisibilityWindow.s_Styles == null)
     LayerVisibilityWindow.s_Styles = new LayerVisibilityWindow.Styles();
   Rect position = new Rect(1f, 1f, this.position.width - 2f, this.position.height - 2f);
   Rect viewRect = new Rect(0.0f, 0.0f, 1f, this.m_ContentHeight);
   bool flag = (double) this.m_ContentHeight > (double) position.height;
   float width = position.width;
   if (flag)
     width -= 14f;
   this.m_ScrollPosition = GUI.BeginScrollView(position, this.m_ScrollPosition, viewRect);
   this.Draw(width);
   GUI.EndScrollView();
   GUI.Label(new Rect(0.0f, 0.0f, this.position.width, this.position.height), GUIContent.none, LayerVisibilityWindow.s_Styles.background);
   if (Event.current.type == EventType.MouseMove)
     Event.current.Use();
   if (Event.current.type != EventType.KeyDown || Event.current.keyCode != KeyCode.Escape)
     return;
   this.Close();
   GUIUtility.ExitGUI();
 }