本文整理汇总了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;
}
示例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();
}
示例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);
}
示例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);
});
}
示例5: ShowWindow
public static void ShowWindow()
{
playgroundLanguage = PlaygroundSettingsC.GetLanguage();
window = EditorWindow.GetWindow<PlaygroundCreatePresetWindowC>(true, playgroundLanguage.presetWizard);
window.Show();
}
示例6: ShowWindow
public static void ShowWindow () {
window = EditorWindow.GetWindow<PlaygroundCreatePresetWindowC>(true, "Preset Wizard");
window.Show();
}
示例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();
}
示例8: ShowWindow
public static void ShowWindow () {
window = EditorWindow.GetWindow<PlaygroundInstallLanguageWindowC>(true, PlaygroundParticleWindowC.playgroundLanguage.languageInstallWizard);
window.Show();
}