private static void LoadModules() { modules_are_being_loaded = true; Helper.DownloadStringASync(URL.PUBLIC_MODULES_COLLECTION, delegate(string s) { modules = new List <ModuleHeader>(); List <string> module_urls = Parser.ParseToObject <List <string> >(s); foreach (string url in module_urls) { Helper.DownloadStringASync(url, delegate(string data) { ModuleHeader new_module = new ModuleHeader(); new_module.url = url; new_module.available_module = Parser.ParseToObject <ModuleInfo>(data); InitInstalledModule(new_module); if (new_module.available_module.requirement != null) { new_module.available_requirement_fullfilled = new_module.available_module.requirement.Test(); } modules.Add(new_module); //Debug.Log(Parser.ObjectToString(new_module)); Helper.RepaintEditorWindow(typeof(Settings)); }); } }); }
public static void thry_vrc_tools_version_callback(string s) { string[] data = Regex.Split(s, @"\r?\n"); if (data.Length > 1) { thry_vrc_tools_version = data[0]; thry_vrc_tools_vrc_sdk_versions_string = data[1]; thry_vrc_tools_vrc_sdk_versions = Regex.Split(data[1], ","); thry_vrc_tools_version_loaded = true; Helper.RepaintEditorWindow(typeof(Settings)); CheckVRCVersionCallback(""); } }
public static void thry_vrc_tools_file_list_callback(string s) { string[] fileNames = Regex.Split(s, @"\r?\n"); string path = AssetDatabase.GUIDToAssetPath(AssetDatabase.FindAssets("ThrySettings")[0]); path = Regex.Replace(path, @"/Editor/ThrySettings.cs", "/ThryTools/"); foreach (string file in fileNames) { Helper.downloadFileToPath(THRY_VRC_TOOLS_REPO_URL + file, path + file); } Helper.WriteStringToFile(thry_vrc_tools_version, path + THRY_VRC_TOOLS_VERSION_PATH + ".txt"); has_vrc_tools = true; thry_vrc_tools_installed_version = thry_vrc_tools_version; Helper.RepaintEditorWindow(typeof(Settings)); }