示例#1
0
 //Start Function
 private void OnEnable()
 {
     GenerateSections();
     GenerateStyle();
     GenerateTextures();
     _window = (LazySceneLoaderCategoryWindow)GetWindow(typeof(LazySceneLoaderCategoryWindow));
 }
示例#2
0
        private void DrawSubHeading()
        {
            GUILayout.BeginArea(subMenuSection);
            GUILayout.BeginHorizontal(stylePadding);

            if (GUILayout.Button("Edit Categories", GUILayout.MaxWidth(100)))
            {
                LazySceneLoaderCategoryWindow.Init();
            }

            if (GUILayout.Button("Add Scenes", GUILayout.MaxWidth(100)))
            {
                LazySceneLoaderSceneAdderWindow.Init();
            }

            GUILayout.FlexibleSpace();

            if (GUILayout.Button("Help", GUILayout.MaxWidth(100)))
            {
                Application.OpenURL("https://www.lazyfridaystudio.com/lazysceneloader");
            }

            GUILayout.EndHorizontal();
            GUILayout.EndArea();
        }
示例#3
0
 public static void Init()
 {
     // Get existing open window or if none, make a new one:
     _window = (LazySceneLoaderCategoryWindow)GetWindow(typeof(LazySceneLoaderCategoryWindow));
     _window.titleContent.text        = "Category Editor";
     _window.position                 = new Rect(GUIUtility.GUIToScreenPoint(Event.current.mousePosition).x, GUIUtility.GUIToScreenPoint(Event.current.mousePosition).y, 600, 300);
     _window.autoRepaintOnSceneChange = false;
 }