示例#1
0
        public static void ShowWindow()
        {
            TBEditorStyles.SetupSharedStyles();
            int platforms = 2;

            #if TB_HAS_XBOX_LIVE
            int xboxIndex = platforms;
            platforms++;
            #endif
            #if TB_HAS_UNITY_PS4
            int psnIndex = platforms;
            platforms++;
            #endif

            toolbarImages    = new Texture[platforms];
            toolbarImages[0] = EditorGUIUtility.Load("TButt/Icons/oculus.png") as Texture2D;
            toolbarImages[1] = EditorGUIUtility.Load("TButt/Icons/steam.png") as Texture2D;
            #if TB_HAS_XBOX_LIVE
            toolbarImages[xboxIndex] = EditorGUIUtility.Load("TButt/Icons/windows.png") as Texture2D;
            #endif
            #if TB_HAS_UNITY_PS4
            toolbarImages[psnIndex] = EditorGUIUtility.Load("TButt/Icons/playstation.png") as Texture2D;
            #endif

            crossImage = EditorGUIUtility.Load("TButt/Icons/cross.png") as Texture2D;
            checkImage = EditorGUIUtility.Load("TButt/Icons/check.png") as Texture2D;

            RefreshSettings();

            window = EditorWindow.GetWindow(typeof(TBEditorServiceSettings), true, "Service Settings", true);
        }
示例#2
0
 public static void ShowWindow()
 {
     hasCompiled = false;
     TBEditorStyles.SetupSharedStyles();
     ReadSettings();
     window = EditorWindow.GetWindow(typeof(TBEditorInputSettings), true, "Input Settings", true);
     ClearAllButtonMapCaches();
 }
示例#3
0
 public static void ShowControllerMatrixHeader(bool show, VRPlatform platform, GUIStyle color)
 {
     if (show)
     {
         EditorGUILayout.BeginVertical(color, new GUILayoutOption[1] {
             GUILayout.Width(controllerColumnWidth)
         });
         GUILayout.Label(TBEditorStyles.GetPlatformIcon(platform), TBEditorStyles.h1centered);
         EditorGUILayout.EndVertical();
     }
 }
示例#4
0
        void ShowGlobalControlSettings()
        {
            EditorGUILayout.BeginVertical(TBEditorStyles.sectionBox);
            EditorGUILayout.BeginVertical();
            TBEditorStyles.ShowFakeFoldoutBox(ref showGlobalSettings, "More Input Settings", TBEditorStyles.h1);
            EditorGUILayout.Separator();
            EditorGUILayout.EndVertical();

            if (showGlobalSettings)
            {
                EditorGUILayout.Separator();
                GUILayout.BeginHorizontal();
                ShowOtherGlobalOptions();
                GUILayout.EndHorizontal();
            }

            EditorGUILayout.EndVertical();
        }
示例#5
0
        public static void ShowWindow()
        {
            TBEditorStyles.SetupSharedStyles();

            toolbarImages    = new Texture[6];
            toolbarImages[0] = EditorGUIUtility.Load("TButt/Icons/global.png") as Texture2D;
            toolbarImages[1] = EditorGUIUtility.Load("TButt/Icons/oculus.png") as Texture2D;
            toolbarImages[2] = EditorGUIUtility.Load("TButt/Icons/steam.png") as Texture2D;
            toolbarImages[3] = EditorGUIUtility.Load("TButt/Icons/google.png") as Texture2D;
            toolbarImages[4] = EditorGUIUtility.Load("TButt/Icons/windows.png") as Texture2D;
            #if TB_HAS_UNITY_PS4
            toolbarImages[5] = EditorGUIUtility.Load("TButt/Icons/playstation.png") as Texture2D;
            #endif

            crossImage = EditorGUIUtility.Load("TButt/Icons/cross.png") as Texture2D;
            checkImage = EditorGUIUtility.Load("TButt/Icons/check.png") as Texture2D;

            displaySettingsDictionary = new Dictionary <VRPlatform, TBSettings.TBDisplaySettings>();
            RefreshSettings();

            // Grab the current build settings and parse them.
            window = EditorWindow.GetWindow(typeof(TBEditorSDKSettings), true, "Core Settings", true);
        }