public void QueryForItems(List <WelcomeWindowToolbarItem> items) { items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "uFrame", Action = () => Application.OpenURL("http://invertgamestudios.com"), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_main"), ActionArea = new Rect(3, 3, 792, 359) }); items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "Graph Designer", Action = () => ElementsDesigner.Init(), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_1"), ActionArea = new Rect(4, 290, 199, 65) }); items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "Documentation", Action = () => uFrameHelp.ShowWindow(), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_3"), ActionArea = new Rect(12, 293, 315, 63) }); items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "Wiki", Action = () => Application.OpenURL("https://www.penflip.com/bartlomiejwolk/uframe-documentation"), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_5"), ActionArea = new Rect(592, 281, 191, 76) }); items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "Community", Action = () => Application.OpenURL("http://invertgamestudios.com/members/slackinvite"), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_4"), ActionArea = new Rect(453, 295, 322, 61) }); items.Add(new WelcomeWindowToolbarItem() { ActionTitle = "Examples", Action = () => SetupDefaultProject(), Header = ElementDesignerStyles.GetSkinTexture("splashscreen_2"), ActionArea = new Rect(459, 294, 325, 63) }); }
private void SetupDefaultProject() { if (!ExampleUnityPackageExists) { EditorUtility.DisplayDialog("Example project package not found!", string.Format("uFrame is unable to locate {0}. Have you removed it?", AbsoluteExampleUnityPackagePath), "Ok"); return; } if ( !EditorUtility.DisplayDialog("Example project setup", "Example Project is about to be set up! It will be imported into Assets/ExampleProject folder.", "Continue", "Cancel")) { return; } ExampleProjectNeedInstall = true; AssetDatabase.ImportPackage(AbsoluteExampleUnityPackagePath, false); ElementsDesigner.Init(); }