UnityEditor.UndoWindow.OnGUI C# (CSharp) Method

OnGUI() private method

private OnGUI ( ) : void
return void
        private void OnGUI()
        {
            GUILayout.Label("(Available only in Developer builds)", EditorStyles.boldLabel, new GUILayoutOption[0]);
            float minHeight = base.position.height - 60f;
            float minWidth = (base.position.width * 0.5f) - 5f;
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.Label("Undos", new GUILayoutOption[0]);
            GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.MinHeight(minHeight), GUILayout.MinWidth(minWidth) };
            this.undosScroll = GUILayout.BeginScrollView(this.undosScroll, EditorStyles.helpBox, options);
            int num3 = 0;
            foreach (string str in this.undos)
            {
                GUILayout.Label(string.Format("[{0}] - {1}", num3++, str), new GUILayoutOption[0]);
            }
            GUILayout.EndScrollView();
            GUILayout.EndVertical();
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.Label("Redos", new GUILayoutOption[0]);
            GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.MinHeight(minHeight), GUILayout.MinWidth(minWidth) };
            this.redosScroll = GUILayout.BeginScrollView(this.redosScroll, EditorStyles.helpBox, optionArray2);
            num3 = 0;
            foreach (string str2 in this.redos)
            {
                GUILayout.Label(string.Format("[{0}] - {1}", num3++, str2), new GUILayoutOption[0]);
            }
            GUILayout.EndScrollView();
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
        }