public static LanguageRootImport ShowWindow(EditRootLanguageFileWindow parentWindow) { LanguageRootImport languageUpdateWindow = (LanguageRootImport)EditorWindow.GetWindow <LanguageRootImport>("Import Root Keys"); languageUpdateWindow.Initialize(parentWindow); return(languageUpdateWindow); }
void Initialize(EditRootLanguageFileWindow parentWindow) { //this.chosenCulture = chosenCulture; this.parentWindow = parentWindow; if (chosenFileFormat >= availableFileFormats.Length) { chosenFileFormat = 0; } }
void ShowRootEditWindow(Dictionary <string, LocalizedObject> rootValues) { if (editRootWindow == null) { editRootWindow = EditRootLanguageFileWindow.ShowWindow(); editRootWindow.Show(); } else { editRootWindow = EditRootLanguageFileWindow.ShowWindow(); editRootWindow.SetRootValues(rootValues); editRootWindow.Show(); } }