UnityEditor.ASUpdateConflictResolveWindow.DoGUI C# (CSharp) Method

DoGUI() public method

public DoGUI ( ASUpdateWindow parentWin ) : bool
parentWin ASUpdateWindow
return bool
        public bool DoGUI(ASUpdateWindow parentWin)
        {
            if (this.constants == null)
            {
                this.constants = new Constants();
            }
            bool enabled = GUI.enabled;
            EditorGUIUtility.SetIconSize(this.iconSize);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            if (this.showDownloadConflicts)
            {
                this.DoDownloadConflictsGUI();
            }
            if (this.showNamingConflicts)
            {
                this.DoNamingConflictsGUI();
            }
            GUILayout.EndVertical();
            EditorGUIUtility.SetIconSize(Vector2.zero);
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUI.enabled = this.lv1HasSelection && enabled;
            if (GUILayout.Button("Compare", this.constants.button, new GUILayoutOption[0]))
            {
                if (!this.DoShowDiff(false))
                {
                    Debug.Log("No differences found");
                }
                GUIUtility.ExitGUI();
            }
            GUI.enabled = enabled;
            GUILayout.FlexibleSpace();
            GUI.enabled = parentWin.CanContinue && enabled;
            GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.MinWidth(100f) };
            if (GUILayout.Button("Continue", this.constants.bigButton, options))
            {
                parentWin.DoUpdate(true);
                return false;
            }
            GUI.enabled = enabled;
            GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.MinWidth(100f) };
            if (GUILayout.Button("Cancel", this.constants.bigButton, optionArray2))
            {
                return false;
            }
            GUILayout.EndHorizontal();
            if (!this.splittersOk && (Event.current.type == EventType.Repaint))
            {
                this.splittersOk = true;
                parentWin.Repaint();
            }
            return true;
        }