static void CreateWizard() { ScriptableWizard.DisplayWizard <BoneMeshEraserWizard>("BoneMeshEraser", "Erase triangles by bone", "Erase"); }
private static void CreateWizard() { ScriptableWizard.DisplayWizard <TextureArrayWizard>("Create Texture Array", "Create"); }
static public void Open() { ScriptableWizard.DisplayWizard <StatShaderVariant>("StatShaderVariant", "Stat"); }
static public void Open() { ScriptableWizard.DisplayWizard <StatModelMat>("StatModelMat", "Stat"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard("Create Cone", typeof(CreateCone)); }
public static void ShowWizard() { ScriptableWizard.DisplayWizard <GenerateBuildingMeshWizard>("Generate Building Mesh", "Generate"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard <CreateMeshFromCsv>("Mesh Combine Wizard"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard <CreateCharacterWizard>("Create Chracter", "Create New", "Update Selected"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard("Batch Rename", typeof(BatchRename), "Rename"); }
private void DoToolbar(Rect rect, RepositoryInformation info) { Profiler.BeginSample("Git History Window Toolbar GUI"); GUI.Box(rect, GUIContent.none, "Toolbar"); Rect btRect = new Rect(rect.x, rect.y, 64, rect.height); GUIContent pushButtonContent = new GUIContent("Push", EditorGUIUtility.FindTexture("CollabPush"), "Push local changes to a remote repository."); if (info.CurrentOperation == CurrentOperation.Merge) { GUI.enabled = false; pushButtonContent.tooltip = "Do a Merge commit before pushing."; } else if (hasConflicts) { GUI.enabled = false; pushButtonContent.tooltip = "Resolve conflicts before pushing."; } if (GUI.Button(btRect, pushButtonContent, "toolbarbutton")) { if (GitExternalManager.TakePush()) { GitManager.Update(); } else { ScriptableWizard.DisplayWizard <GitPushWizard>("Push", "Push").Init(selectedBranch.LoadBranch()); } } btRect = new Rect(btRect.x + 64, btRect.y, 64, btRect.height); GUI.enabled = !hasConflicts; GUIContent pullButtonContent = EditorGUIUtility.IconContent("CollabPull"); pullButtonContent.tooltip = hasConflicts ? "Must resolve conflicts before pulling" : "Pull changes from remote repository by fetching them and then merging them. This is the same as calling Fetch then Merge."; pullButtonContent.text = "Pull"; if (GUI.Button(btRect, pullButtonContent, "toolbarbutton")) { Branch branch = selectedBranch.LoadBranch(); if (GitExternalManager.TakePull()) { AssetDatabase.Refresh(); GitManager.Update(); } else { ScriptableWizard.DisplayWizard <GitPullWizard>("Pull", "Pull").Init(branch); } } btRect = new Rect(btRect.x + 70, btRect.y, 64, btRect.height); GUIContent fetchButtonContent = EditorGUIUtility.IconContent("UniGit/GitFetch"); fetchButtonContent.tooltip = "Get changes from remote repository but do not merge them."; fetchButtonContent.text = "Fetch"; if (GUI.Button(btRect, fetchButtonContent, "toolbarbutton")) { Branch branch = selectedBranch.LoadBranch(); if (GitExternalManager.TakeFetch(branch.Remote.Name)) { GitManager.Update(); } else { ScriptableWizard.DisplayWizard <GitFetchWizard>("Fetch", "Fetch").Init(branch); } } btRect = new Rect(btRect.x + 64, btRect.y, 64, btRect.height); GUIContent mergeButtonContent = EditorGUIUtility.IconContent("UniGit/GitMerge"); mergeButtonContent.tooltip = hasConflicts ? "Must Resolve conflict before merging" : "Merge fetched changes from remote repository. Changes from the latest fetch will be merged."; mergeButtonContent.text = "Merge"; if (GUI.Button(btRect, mergeButtonContent, "toolbarbutton")) { if (GitExternalManager.TakeMerge()) { GitManager.Update(); } else { ScriptableWizard.DisplayWizard <GitMergeWizard>("Merge", "Merge"); } } GUI.enabled = true; btRect = new Rect(rect.x + rect.width - 64, btRect.y, 64, btRect.height); if (GUI.Button(btRect, new GUIContent(string.IsNullOrEmpty(selectedBranchName) ? "Branch" : selectedBranch.FriendlyName), "ToolbarDropDown")) { GenericMenu selectBranchMenu = new GenericMenu(); foreach (var branch in cachedBranches) { selectBranchMenu.AddItem(new GUIContent(branch.FriendlyName), false, (b) => { selectedBranchName = (string)b; UpdateSelectedBranch(); }, branch.FriendlyName); } selectBranchMenu.ShowAsContext(); } btRect = new Rect(btRect.x - 64, btRect.y, 64, btRect.height); GUI.enabled = !selectedBranch.IsRemote && !selectedBranch.IsCurrentRepositoryHead; GUIContent checkoutButtonContent = EditorGUIUtility.IconContent("UniGit/GitCheckout"); checkoutButtonContent.text = "Switch"; checkoutButtonContent.tooltip = selectedBranch.IsRemote ? "Cannot switch to remote branches." : selectedBranch.IsCurrentRepositoryHead ? "This branch is the active one" : "Switch to another branch"; if (GUI.Button(btRect, checkoutButtonContent, "toolbarbutton")) { } GUI.enabled = true; Profiler.EndSample(); }
static void FindMenuItem() { ScriptableWizard.DisplayWizard("Find", typeof(FindObjects), "Find", ""); }
static void CreateWizard() { ScriptableWizard.DisplayWizard <SpawnerPlateforme> ("Create Plateform", "Create new"); }
static void RenderCubemap() { ScriptableWizard.DisplayWizard <TRender2CubeMap>("Render cubemap", "Render!"); }
static void CreateWeapon() { ScriptableWizard.DisplayWizard("I don't give damn", typeof(IDontGiveDamn), "Run"); }
static void RenderCubemap() { ScriptableWizard.DisplayWizard("Render CubeMap", typeof(GenCubemap), "Render!"); }
private static void CreateWizard() { ScriptableWizard.DisplayWizard("Create Scene Layout", typeof(CreateSceneLayout), "Create"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard <MB_ConvertTextureArrayFormatWizard>("Convert Texture Array Format", "Close", "Convert"); }
static void CreateWizard() { Bone2DSetupEditor editor = ScriptableWizard.DisplayWizard <Bone2DSetupEditor>("Bone2D Setup", "Set"); editor.minSize = new Vector2(200, 400); }
static void SelectAllOfTAgWizard() { ScriptableWizard.DisplayWizard <SelectAllOfTag>("SelectAll Of Tag", "Spawn", "SetPos"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard( "Replace Selection", typeof(ReplaceSelection), "Replace"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard("Create Ragdoll", typeof(vRagdollBuilder)); //ScriptableWizard.DisplayWizard("Create Ragdoll", typeof (RagdollBuilder),"Create","Load Bones"); }
static public void Open() { ScriptableWizard.DisplayWizard <ExportPNG>("导出PNG", "导出PNG"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard <CreateMaterialFromTextures>("Create Materials", "Create"); }
// Use this for initialization static void CreateWizard() { ScriptableWizard.DisplayWizard("Create Plane", typeof(CreateQuad)); }
static void CreateWindow() { ScriptableWizard.DisplayWizard <FontMakerWizard>("Convert FontMaker Config File", "Convert"); }
static void RenderCubemap() { ScriptableWizard.DisplayWizard <RenderCubemapWizard>("Render cubemap", "Render!"); }
static void CreateWizard() { ScriptableWizard.DisplayWizard("Replace GameObjects", typeof(ReplaceGameObjects), "Replace"); }
public static void ShowWizard() { ScriptableWizard.DisplayWizard <SetupSceneWizard>(WizardTitle); }
static void BuildSpriteAtlases() { BuildAtlases ba = (BuildAtlases)ScriptableWizard.DisplayWizard("Build Atlases", typeof(BuildAtlases)); ba.LoadSettings(); }
private static void CreateWizard() { ScriptableWizard.DisplayWizard("JanusVR Export", typeof(JanusVR_Exporter), "Export"); }