BRT_BuildReportWindow.DrawHelpScreen C# (CSharp) Method

DrawHelpScreen() private method

private DrawHelpScreen ( ) : void
return void
    void DrawHelpScreen()
    {
        GUI.SetNextControlName("BRT_HelpUnfocuser");
        GUI.TextField(new Rect(-100, -100, 10, 10), "");

        GUILayout.Space(10); // extra top padding

        GUILayout.BeginHorizontal();
        int newSelectedHelpIdx = GUILayout.SelectionGrid(_selectedHelpContentsIdx, _helpTypeLabels, 1);

        if (newSelectedHelpIdx != _selectedHelpContentsIdx)
        {
            GUI.FocusControl("BRT_HelpUnfocuser");
        }

        _selectedHelpContentsIdx = newSelectedHelpIdx;

            //GUILayout.Space((position.width - HELP_CONTENT_WIDTH) * 0.5f);

                if (_selectedHelpContentsIdx == HELP_TYPE_README_IDX)
                {
                    _readmeScrollPos = GUILayout.BeginScrollView(
                        _readmeScrollPos);

                        float readmeHeight = _usedSkin.GetStyle(HELP_CONTENT_GUI_STYLE).CalcHeight(new GUIContent(_readmeContents), HELP_CONTENT_WIDTH);

                        EditorGUILayout.SelectableLabel(_readmeContents, HELP_CONTENT_GUI_STYLE, GUILayout.Width(HELP_CONTENT_WIDTH), GUILayout.Height(readmeHeight));

                    GUILayout.EndScrollView();
                }
                else if (_selectedHelpContentsIdx == HELP_TYPE_CHANGELOG_IDX)
                {
                    _changelogScrollPos = GUILayout.BeginScrollView(
                        _changelogScrollPos);

                        float changelogHeight = _usedSkin.GetStyle(HELP_CONTENT_GUI_STYLE).CalcHeight(new GUIContent(_changelogContents), HELP_CONTENT_WIDTH);

                        EditorGUILayout.SelectableLabel(_changelogContents, HELP_CONTENT_GUI_STYLE, GUILayout.Width(HELP_CONTENT_WIDTH), GUILayout.Height(changelogHeight));

                    GUILayout.EndScrollView();
                }

        GUILayout.EndHorizontal();
    }