/// <summary> /// Begins the page. /// </summary> public bool BeginPage() { if (this.tabGroup.FixedHeight && this.isMessured == false) { this.IsVisible = true; } this.isSeen = true; if (this.IsVisible) { var rect = EditorGUILayout.BeginVertical(InnerContainerStyle, GUILayoutOptions.Width(this.tabGroup.InnerContainerWidth)); GUIHelper.PushHierarchyMode(false); GUIHelper.PushLabelWidth(this.tabGroup.LabelWidth - 4); if (Event.current.type == EventType.Repaint) { this.Rect = rect; } if (this.tabGroup.IsAnimating) { this.prevColor = GUI.color; var col = this.prevColor; col.a *= this.tabGroup.CurrentPage == this ? this.tabGroup.T : 1 - this.tabGroup.T; GUI.color = col; } } return(this.IsVisible); }