private static void LoadSettings() { LocalizatorSettings.LoadSettings(); releaseTableLink = LocalizatorSettings.ReleaseTableLink; developmentTableLink = LocalizatorSettings.DevelopmentTableLink; downloadingTimeout = LocalizatorSettings.DownloadingTimeout; }
private void ShowSettingsTab() { CashLanguages(); releaseTableLink = EditorGUILayout.TextField("Release table link: ", releaseTableLink); developmentTableLink = EditorGUILayout.TextField("Development table link: ", developmentTableLink); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Downloading timeout:"); downloadingTimeout = (int)EditorGUILayout.Slider(downloadingTimeout, 1, 15); EditorGUILayout.EndHorizontal(); var popupStyle = GUI.skin.GetStyle("Popup"); popupStyle.fontSize = 11; var downloadingTypes = Enum.GetNames(typeof(DownloadingType)).ToArray(); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Downloading type:"); downloadingType = (DownloadingType)EditorGUILayout.Popup((int)downloadingType, downloadingTypes, popupStyle); EditorGUILayout.EndHorizontal(); var preprocessBuildDownloadingTypes = Enum.GetNames(typeof(PreprocessBuildDownloadingType)).ToArray(); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Preprocess build downloading type:"); preprocessBuildDownloadingType = (PreprocessBuildDownloadingType)EditorGUILayout.Popup((int)preprocessBuildDownloadingType, preprocessBuildDownloadingTypes, popupStyle); EditorGUILayout.EndHorizontal(); DrawSpace(3); EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Save settings")) { LocalizatorSettings.SetSettings(releaseTableLink, developmentTableLink, downloadingType, preprocessBuildDownloadingType, downloadingTimeout); LocalizatorSettings.SaveSettings(); correctlySaved = true; } if (GUILayout.Button("Close")) { Close(); } EditorGUILayout.EndHorizontal(); if (correctlySaved) { EditorGUILayout.HelpBox("Save successful.", MessageType.Info); } }
public void OnPreprocessBuild(BuildReport report) { Debug.Log("SIMPLE-LOCALIZATOR: preprocess build downloading localization started."); LocalizatorSettings.LoadSettings(CheckDownloadingLocalization); }
public static void Initialize() { LocalizatorSettings.LoadSettings(LoadTranslationFile); }