static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <BoneMeshEraserWizard>("BoneMeshEraser", "Erase triangles by bone", "Erase");
 }
 private static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <TextureArrayWizard>("Create Texture Array", "Create");
 }
示例#3
0
 static public void Open()
 {
     ScriptableWizard.DisplayWizard <StatShaderVariant>("StatShaderVariant", "Stat");
 }
示例#4
0
 static public void Open()
 {
     ScriptableWizard.DisplayWizard <StatModelMat>("StatModelMat", "Stat");
 }
示例#5
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("Create Cone", typeof(CreateCone));
 }
示例#6
0
 public static void ShowWizard()
 {
     ScriptableWizard.DisplayWizard <GenerateBuildingMeshWizard>("Generate Building Mesh", "Generate");
 }
示例#7
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <CreateMeshFromCsv>("Mesh Combine Wizard");
 }
示例#8
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <CreateCharacterWizard>("Create Chracter", "Create New", "Update Selected");
 }
示例#9
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("Batch Rename", typeof(BatchRename), "Rename");
 }
示例#10
0
        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();
        }
示例#11
0
 static void FindMenuItem()
 {
     ScriptableWizard.DisplayWizard("Find", typeof(FindObjects), "Find", "");
 }
示例#12
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <SpawnerPlateforme> ("Create Plateform", "Create new");
 }
示例#13
0
 static void RenderCubemap()
 {
     ScriptableWizard.DisplayWizard <TRender2CubeMap>("Render cubemap", "Render!");
 }
示例#14
0
 static void CreateWeapon()
 {
     ScriptableWizard.DisplayWizard("I don't give damn", typeof(IDontGiveDamn), "Run");
 }
示例#15
0
 static void RenderCubemap()
 {
     ScriptableWizard.DisplayWizard("Render CubeMap", typeof(GenCubemap), "Render!");
 }
示例#16
0
 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);
    }
示例#19
0
 static void SelectAllOfTAgWizard()
 {
     ScriptableWizard.DisplayWizard <SelectAllOfTag>("SelectAll Of Tag", "Spawn", "SetPos");
 }
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard(
         "Replace Selection", typeof(ReplaceSelection), "Replace");
 }
示例#21
0
        static void CreateWizard()
        {
            ScriptableWizard.DisplayWizard("Create Ragdoll", typeof(vRagdollBuilder));

            //ScriptableWizard.DisplayWizard("Create Ragdoll", typeof (RagdollBuilder),"Create","Load Bones");
        }
示例#22
0
 static public void Open()
 {
     ScriptableWizard.DisplayWizard <ExportPNG>("导出PNG", "导出PNG");
 }
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <CreateMaterialFromTextures>("Create Materials", "Create");
 }
示例#24
0
 // Use this for initialization
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("Create Plane", typeof(CreateQuad));
 }
示例#25
0
 static void CreateWindow()
 {
     ScriptableWizard.DisplayWizard <FontMakerWizard>("Convert FontMaker Config File", "Convert");
 }
 static void RenderCubemap()
 {
     ScriptableWizard.DisplayWizard <RenderCubemapWizard>("Render cubemap", "Render!");
 }
示例#27
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("Replace GameObjects", typeof(ReplaceGameObjects), "Replace");
 }
 public static void ShowWizard()
 {
     ScriptableWizard.DisplayWizard <SetupSceneWizard>(WizardTitle);
 }
示例#29
0
    static void BuildSpriteAtlases()
    {
        BuildAtlases ba = (BuildAtlases)ScriptableWizard.DisplayWizard("Build Atlases", typeof(BuildAtlases));

        ba.LoadSettings();
    }
示例#30
0
 private static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("JanusVR Export", typeof(JanusVR_Exporter), "Export");
 }