Ejemplo n.º 1
0
        public static void DisplayPreferenceGUI()
        {
            GUILayout.BeginArea(new Rect(134f, 39f, 352f, 352f));             // the rect in the preference window is bizarre...
            {
#if IS_CANDLELIGHT_SCENE_GUI_AVAILABLE
                EditorGUIX.DisplaySceneGUIToggle();
#endif
                EditorGUILayout.BeginVertical(TabAreaStyle, GUILayout.ExpandWidth(false));
                {
                    Instance.m_CurrentTab = EditorGUIX.DisplayTabGroup(
                        Instance.m_CurrentTab,
                        s_FeatureGroupLabels,
                        s_TabPages,
                        4
                        );
                }
                EditorGUILayout.EndVertical();
            }
            GUILayout.EndArea();
        }
Ejemplo n.º 2
0
        public static void DisplayPreferenceGUI()
        {
            Dictionary <int, System.Action> tabPages = new Dictionary <int, System.Action>();

            for (int i = 0; i < featureGroups.Count; ++i)
            {
                tabPages.Add(i, () => Instance.DisplayPreferences(featureGroups[Instance.currentTab]));
            }
            GUILayout.BeginArea(new Rect(134f, 39f, 352f, 352f));             // the rect in the preference window is bizarre...
            {
#if IS_CANDLELIGHT_SCENE_GUI_AVAILABLE
                EditorGUIX.DisplaySceneGUIToggle();
#endif
                EditorGUILayout.BeginVertical(TabAreaStyle, GUILayout.ExpandWidth(false));
                {
                    Instance.currentTab =
                        DisplayTabGroup(Instance.currentTab, featureGroups.ToArray(), tabPages);
                }
                EditorGUILayout.EndVertical();
            }
            GUILayout.EndArea();
        }