コード例 #1
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard <BoneMeshEraserWizard>("BoneMeshEraser", "Erase triangles by bone", "Erase");
 }
コード例 #2
0
 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
ファイル: CreateCone.cs プロジェクト: Atsu30/HololensApp
 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
ファイル: BatchRename.cs プロジェクト: andresimon/CivilWar
 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
ファイル: FindObjects.cs プロジェクト: nikvasi777/UnifyGithub
 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
ファイル: CreateSceneLayout.cs プロジェクト: mowet601/prubik
 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");
 }
コード例 #18
0
    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");
 }
コード例 #20
0
 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");
 }
コード例 #23
0
 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
ファイル: FontMakerWizard.cs プロジェクト: swiftliang/NewGame
 static void CreateWindow()
 {
     ScriptableWizard.DisplayWizard <FontMakerWizard>("Convert FontMaker Config File", "Convert");
 }
コード例 #26
0
 static void RenderCubemap()
 {
     ScriptableWizard.DisplayWizard <RenderCubemapWizard>("Render cubemap", "Render!");
 }
コード例 #27
0
 static void CreateWizard()
 {
     ScriptableWizard.DisplayWizard("Replace GameObjects", typeof(ReplaceGameObjects), "Replace");
 }
コード例 #28
0
 public static void ShowWizard()
 {
     ScriptableWizard.DisplayWizard <SetupSceneWizard>(WizardTitle);
 }
コード例 #29
0
ファイル: BuildAtlases.cs プロジェクト: tanohmz/shapewars
    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");
 }