UnityEditor.SketchUpImportDlg.OnGUI C# (CSharp) Method

OnGUI() private method

private OnGUI ( ) : void
return void
        private void OnGUI()
        {
            Rect position = new Rect(0f, 0f, base.position.width, base.position.height);
            int controlID = GUIUtility.GetControlID(FocusType.Keyboard, position);
            Rect rect2 = new Rect(0f, 0f, base.position.width, 25f);
            GUI.Label(rect2, string.Empty, Styles.styles.headerStyle);
            GUI.Label(new Rect(10f, 2f, base.position.width, 25f), Styles.styles.nodesLabel);
            Rect screenRect = new Rect(position.x, position.yMax - 30f, position.width, 30f);
            GUILayout.BeginArea(screenRect);
            GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.ExpandWidth(true), GUILayout.Height(1f) };
            GUILayout.Box(string.Empty, Styles.styles.boxBackground, options);
            GUILayout.Space(2f);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            bool flag = false;
            if (this.isModal)
            {
                if (GUILayout.Button(Styles.styles.okButton, new GUILayoutOption[0]))
                {
                    flag = true;
                }
            }
            else if (GUILayout.Button(Styles.styles.cancelButton, new GUILayoutOption[0]))
            {
                flag = true;
            }
            else if (GUILayout.Button(Styles.styles.okButton, new GUILayoutOption[0]))
            {
                flag = true;
                if (this.m_ModelEditor.IsAlive)
                {
                    (this.m_ModelEditor.Target as SketchUpImporterModelEditor).SetSelectedNodes(this.m_DataSource.FetchEnableNodes());
                }
            }
            GUILayout.Space(10f);
            GUILayout.EndHorizontal();
            GUILayout.EndArea();
            position.y = 18f;
            position.height -= (rect2.height + screenRect.height) - 7f;
            this.m_TreeView.OnEvent();
            this.m_TreeView.OnGUI(position, controlID);
            this.HandleKeyboardEvents();
            if (flag)
            {
                base.Close();
            }
        }