コード例 #1
0
        public static LanguageRootImport ShowWindow(EditRootLanguageFileWindow parentWindow)
        {
            LanguageRootImport languageUpdateWindow = (LanguageRootImport)EditorWindow.GetWindow <LanguageRootImport>("Import Root Keys");

            languageUpdateWindow.Initialize(parentWindow);

            return(languageUpdateWindow);
        }
コード例 #2
0
 void Initialize(EditRootLanguageFileWindow parentWindow)
 {
     //this.chosenCulture = chosenCulture;
     this.parentWindow = parentWindow;
     if (chosenFileFormat >= availableFileFormats.Length)
     {
         chosenFileFormat = 0;
     }
 }
コード例 #3
0
 void ShowRootEditWindow(Dictionary <string, LocalizedObject> rootValues)
 {
     if (editRootWindow == null)
     {
         editRootWindow = EditRootLanguageFileWindow.ShowWindow();
         editRootWindow.Show();
     }
     else
     {
         editRootWindow = EditRootLanguageFileWindow.ShowWindow();
         editRootWindow.SetRootValues(rootValues);
         editRootWindow.Show();
     }
 }