private void OnGUI()

in Editor/Deployment/DeploymentWindow.cs [129:199]


        private void OnGUI()
        {
            EditorGUIUtility.labelWidth = LabelWidthPixels;
            float scenarioHeight;

            using (new EditorGUILayout.HorizontalScope())
            {
                GUILayout.Space(LeftMarginPixels);

                using (new EditorGUILayout.VerticalScope())
                {
                    GUILayout.Space(TopMarginPixels);
                    EditorGUILayout.HelpBox(_labelDeploymentCosts, MessageType.Warning);

                    if (!_model.IsBootstrapped)
                    {
                        EditorGUILayout.HelpBox(_labelBootstrapWarning, MessageType.Warning);
                    }

                    GUILayout.Space(VerticalSpacingPixels);

                    using (new EditorGUI.DisabledScope(IsFormDisabled))
                    {
                        scenarioHeight = DrawScenarioSelection();
                        DrawSeparator();
                        scenarioHeight += DrawScenarioForm();
                    }

                    using (new EditorGUI.DisabledScope(false))
                    {
                        DrawSeparator();
                        GUILayout.Label(_labelCurrentStack);
                        GUILayout.Space(VerticalSpacingPixels);

                        using (new EditorGUILayout.HorizontalScope())
                        {
                            DrawInfo(_model.CurrentStackInfo.Status);

                            if (_model.IsDeploymentRunning)
                            {
                                _spinnerDrawer.Draw();
                            }
                        }

                        if (_model.IsDeploymentRunning)
                        {
                            GUILayout.Space(EditorGUIUtility.singleLineHeight - SpinnerSizePixels);
                        }

                        GUILayout.Space(VerticalSpacingPixels);
                        DrawInfo(_model.CurrentStackInfo.Details, GUILayout.Height(55));
                        DrawStackOutput(_labelCognitoClientId, _model.CurrentStackInfo.UserPoolClientId);
                        DrawStackOutput(_labelApiGateway, _model.CurrentStackInfo.ApiGatewayEndpoint);
                        GUILayout.Space(VerticalSpacingPixels);
                        DrawLink(_model.HasCurrentStack ? _cfnConsoleLinkButton : _deploymentHelpLinkButton);
                        GUILayout.Space(VerticalSpacingPixels);
                        DrawButtons();

                        if (_model.Status.IsDisplayed)
                        {
                            _statusLabel.Draw(_model.Status.Message, _model.Status.Type);
                        }
                    }
                }

                GUILayout.Space(RightMarginPixels);
            }

            UpdateWindowSize(scenarioHeight);
            UpdateSpinnerDrawer();
        }