//called from menu item script
        public static void Init()
        {
            ReadyRoomSetupWindow window = (ReadyRoomSetupWindow)EditorWindow.GetWindow(typeof(ReadyRoomSetupWindow), true, "");
            window.minSize = new Vector2(500, 550);
            window.maxSize = new Vector2(500, 550);
            window.Show();

            UseEyeTracking = EditorPrefs.GetInt("useEyeTracking", -1);
            UseRoomScale = EditorPrefs.GetInt("useRoomScale", -1);
            UseGrabbableObjects = EditorPrefs.GetInt("useGrabbable", -1);

            //check that window.Grabbables is empty
            /*if (UseEyeTracking != -1 && UseGrabbableObjects != -1 && UseRoomScale != -1)
            {
                window.RefreshGrabbables(true);
                if (window.Grabbables.Count > 0)
                {
                    //user has done most of the setup, but still has grabbables to fix
                    window.currentPage = 4;
                    //IMPROVEMENT search pageids for index of 'grab components'
                }
                else
                {
                    //user has already run through the Ready Room setup. Unlikely that they will need to change this basic stuff
                    window.currentPage = window.pageids.Count - 1;
                }
            }*/
        }
Пример #2
0
 static void Cognitive3DAssessmentSetup()
 {
     //open window
     ReadyRoomSetupWindow.Init();
 }