// The matching end for BeginLayoutGroup internal static void EndLayoutGroup() { if (current.layoutGroups.Count == 0 || Event.current == null ) { Debug.LogError("EndLayoutGroup: BeginLayoutGroup must be called first."); return; } if (Event.current.type != EventType.Layout && Event.current.type != EventType.Used) { GUIDebugger.LogLayoutEndGroup(); } current.layoutGroups.Pop(); if (0 < current.layoutGroups.Count) { current.topLevel = (GUILayoutGroup)current.layoutGroups.Peek(); } else { current.topLevel = new GUILayoutGroup(); } }
internal static void EndLayoutGroup() { bool flag = GUILayoutUtility.current.layoutGroups.Count == 0 || Event.current == null; if (flag) { Debug.LogError("EndLayoutGroup: BeginLayoutGroup must be called first."); } else { bool flag2 = Event.current.type != EventType.Layout && Event.current.type != EventType.Used; if (flag2) { GUIDebugger.LogLayoutEndGroup(); } GUILayoutUtility.current.layoutGroups.Pop(); bool flag3 = 0 < GUILayoutUtility.current.layoutGroups.Count; if (flag3) { GUILayoutUtility.current.topLevel = (GUILayoutGroup)GUILayoutUtility.current.layoutGroups.Peek(); } else { GUILayoutUtility.current.topLevel = new GUILayoutGroup(); } } }
internal static void EndLayoutGroup() { if (Event.current.type != EventType.Layout && Event.current.type != EventType.Used) { GUIDebugger.LogLayoutEndGroup(); } EventType arg_31_0 = Event.current.type; GUILayoutUtility.current.layoutGroups.Pop(); GUILayoutUtility.current.topLevel = ((0 >= GUILayoutUtility.current.layoutGroups.Count) ? null : ((GUILayoutGroup)GUILayoutUtility.current.layoutGroups.Peek())); }
internal static void EndLayoutGroup() { if ((Event.current.type != EventType.Layout) && (Event.current.type != EventType.Used)) { GUIDebugger.LogLayoutEndGroup(); } EventType type = Event.current.type; current.layoutGroups.Pop(); current.topLevel = (0 >= current.layoutGroups.Count) ? null : ((GUILayoutGroup)current.layoutGroups.Peek()); }
internal static void EndLayoutGroup() { if (GUILayoutUtility.current.layoutGroups.Count == 0 || Event.current == null) { Debug.LogError("EndLayoutGroup: BeginLayoutGroup must be called first."); } else { if (Event.current.type != EventType.Layout && Event.current.type != EventType.Used) { GUIDebugger.LogLayoutEndGroup(); } EventType arg_5F_0 = Event.current.type; GUILayoutUtility.current.layoutGroups.Pop(); GUILayoutUtility.current.topLevel = ((0 >= GUILayoutUtility.current.layoutGroups.Count) ? null : ((GUILayoutGroup)GUILayoutUtility.current.layoutGroups.Peek())); } }