private void ShowLoadingTab()
        {
            EditorGUILayout.LabelField("Development table", EditorStyles.boldLabel);
            EditorGUILayout.LabelField("Status:", GetDownloadingStatus(developmentTableDownloadStatus), GetDownloadingMessageStyle(developmentTableDownloadStatus));
            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Download"))
            {
                developmentTableDownloadStatus = DownloadingStatus.Downloading;
                LocalizatorWebLoader.DownloadTranslationFileFromEditorWindow(BuildType.Development, () => OnDownloadingEnded(BuildType.Development));
            }
            DrawSpace(2);
            EditorGUILayout.EndHorizontal();

            DrawSpace(2);

            EditorGUILayout.LabelField("Release table", EditorStyles.boldLabel);
            EditorGUILayout.LabelField("Status:", GetDownloadingStatus(releaseTableDownloadStatus), GetDownloadingMessageStyle(releaseTableDownloadStatus));
            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Download"))
            {
                releaseTableDownloadStatus = DownloadingStatus.Downloading;
                LocalizatorWebLoader.DownloadTranslationFileFromEditorWindow(BuildType.Release, () => OnDownloadingEnded(BuildType.Release));
            }
            DrawSpace(2);
            EditorGUILayout.EndHorizontal();
            DrawCloseButton();
        }
示例#2
0
 private static void LoadTranslationFile()
 {
     LocalizatorWebLoader.DownloadTranslationFile(ParseTranslationFile);
 }