当前位置: 首页>>代码示例>>C#>>正文


C# EditorWindow.Show方法代码示例

本文整理汇总了C#中EditorWindow.Show方法的典型用法代码示例。如果您正苦于以下问题:C# EditorWindow.Show方法的具体用法?C# EditorWindow.Show怎么用?C# EditorWindow.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EditorWindow的用法示例。


在下文中一共展示了EditorWindow.Show方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Display

	static public void Display(string title, string okButton, Action<string> callback){
		self = EditorWindow.GetWindow<ISEditorInputDialog> ();
		self.Show ();

		GUIContent t = new GUIContent ();
		t.text = title;
		self.titleContent = t;
		ok = okButton;

		callbackAction = callback;
	}
开发者ID:LingJiJian,项目名称:Smashy-Cars,代码行数:11,代码来源:ISEditorInputDialog.cs

示例2: iNew_ItemClick

 private void iNew_ItemClick(object sender, ItemClickEventArgs e)
 {
     n++;
     var temp = new EditorWindow(this);
     #if XNA
     temp.Creator = this;
     #endif
     temp.MdiParent = this;
     temp.Text = "APP_NEWDIALOG0" + n;
     temp.Show();
 }
开发者ID:sgrzeda,项目名称:rose,代码行数:11,代码来源:RoseForm.cs

示例3: OnInspectorGUI

		public override void OnInspectorGUI () {
			DrawDefaultInspector();

			if (GUILayout.Button("Edit Skill Tree")) {
				window = EditorWindow.GetWindow<GraphController>();
				window.Show();
			}
			
			// If this isn't set your changes will not take effect
			if (GUI.changed) EditorUtility.SetDirty(target);
		}
开发者ID:ariessanchezsulit,项目名称:unity-skill-tree-editor,代码行数:11,代码来源:SkillTreeEditor.cs

示例4: AddRefMenuItems

 private void AddRefMenuItems(ContextMenuStrip conMenu, IEnumerable<ItemReference> refs)
 {
   var gen = new Editor.ScriptMenuGenerator();
   gen.SetItems(refs);
   gen.Conn = _wizard.Connection;
   gen.ConnData = _wizard.ConnectionInfo.First();
   conReferenceOptions.Items.Clear();
   EditorScript.BuildMenu(conMenu.Items, gen.GetScripts(), async s =>
   {
     var win = new EditorWindow();
     var result = win.SetConnection(_wizard.ConnectionInfo.First());
     win.Show();
     await result;
     win.Execute(s);
   });
 }
开发者ID:rneuber1,项目名称:InnovatorAdmin,代码行数:16,代码来源:ExportSelect.cs

示例5: ShowWindow

 public static void ShowWindow()
 {
     playgroundLanguage = PlaygroundSettingsC.GetLanguage();
     window = EditorWindow.GetWindow<PlaygroundCreatePresetWindowC>(true, playgroundLanguage.presetWizard);
     window.Show();
 }
开发者ID:herman-rogers,项目名称:EscapeFromKingCandy,代码行数:6,代码来源:PlaygroundCreatePresetWindowC.cs

示例6: ShowWindow

	public static void ShowWindow () {
		window = EditorWindow.GetWindow<PlaygroundCreatePresetWindowC>(true, "Preset Wizard");
        window.Show();
	}
开发者ID:imclab,项目名称:Unity-csharp-shmup-template,代码行数:4,代码来源:PlaygroundCreatePresetWindowC.cs

示例7: Editor

        public void Editor()
        {
            // open, do nothing, close
            EditorWindow editor = new EditorWindow();
            editor.Show();
            this.WaitForRenderingComplete();
            editor.Close();

            // open, create template database, close
            string templateDatabaseFilePath = this.GetUniqueFilePathForTest(TestConstant.File.DefaultNewTemplateDatabaseFileName);
            if (File.Exists(templateDatabaseFilePath))
            {
                File.Delete(templateDatabaseFilePath);
            }
            editor = new EditorWindow();
            PrivateObject editorAccessor = new PrivateObject(editor);
            editor.Show();
            this.WaitForRenderingComplete();
            editorAccessor.Invoke(TestConstant.InitializeDataGridMethodName, templateDatabaseFilePath);
            this.WaitForRenderingComplete();
            editor.Close();

            // open, load existing database, pop dialogs, close
            // InitializeDataGrid() sets the template pane active but without the explicit set in test code the event gets dropped, resulting the EditChoiceList
            // show failing because the UIElement its position is referenced to is not visible.
            editor = new EditorWindow();
            editor.Show();
            this.WaitForRenderingComplete();
            editorAccessor.Invoke(TestConstant.InitializeDataGridMethodName, templateDatabaseFilePath);
            this.WaitForRenderingComplete();

            editor.TemplatePane.IsActive = true;
            this.WaitForRenderingComplete();

            this.ShowDialog(new AboutEditor(editor));
            this.ShowDialog(new EditChoiceList(editor.TemplateDataGrid, new List<string>() { "Choice0", "Choice1", "Choice2", "Choice3" }, editor));

            editor.Close();
        }
开发者ID:CascadesCarnivoreProject,项目名称:Timelapse,代码行数:39,代码来源:UserInterfaceTests.cs

示例8: ShowWindow

	public static void ShowWindow () {
		window = EditorWindow.GetWindow<PlaygroundInstallLanguageWindowC>(true, PlaygroundParticleWindowC.playgroundLanguage.languageInstallWizard);
		window.Show();
	}
开发者ID:rohunb,项目名称:Capstone_Space_Game,代码行数:4,代码来源:PlaygroundInstallLanguageWindowC.cs


注:本文中的EditorWindow.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。