void OnGUI()
    {
        EditorGUILayout.BeginHorizontal(GUILayout.ExpandHeight(true));

        //Vertical
        GUILayout.BeginVertical(GUILayout.Width(10));
        EditorGUILayout.LabelField("Model to test:");
        op = (TABS)EditorGUILayout.EnumPopup(op);

        //Slider
        EditorGUILayout.LabelField("", GUI.skin.horizontalSlider, GUILayout.ExpandWidth(true));

        //TextArea
        var areaStyle = new GUIStyle(GUI.skin.label);

        areaStyle.wordWrap  = true;
        areaStyle.alignment = TextAnchor.UpperCenter;
        EditorGUILayout.LabelField("Readme: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
                                   , areaStyle, GUILayout.Width(200), GUILayout.ExpandHeight(true));

        GUILayout.EndVertical();
        //EndVertical

        EditorGUILayout.LabelField("", GUI.skin.verticalSlider, GUILayout.Width(5), GUILayout.ExpandHeight(true));
        ShowCurrentOption();

        EditorGUILayout.EndHorizontal();
    }
Пример #2
0
 public void NavigateToTab(TABS tab)
 {
     SelectedTab = tab;
 }
Пример #3
0
 public void SelectTab(TABS tab)
 {
     tabControl.SelectedIndex = (int)tab;
 }