protected internal void RetrieveTexturePack(string url) { if (!game.AcceptedUrls.HasEntry(url) && !game.DeniedUrls.HasEntry(url)) { game.AsyncDownloader.RetrieveContentLength(url, true, "CL_" + url); string address = url; if (url.StartsWith("https://")) { address = url.Substring(8); } if (url.StartsWith("http://")) { address = url.Substring(7); } game.ShowWarning(new WarningScreen( game, "CL_" + url, true, true, "Do you want to download the server's texture pack?", DownloadTexturePack, null, WarningScreenTick, "Texture pack url:", address, "Download size: Determining...")); } else { DownloadTexturePack(url); } }
protected internal void RetrieveTexturePack(string url) { if (!game.AcceptedUrls.HasUrl(url) && !game.DeniedUrls.HasUrl(url)) { game.AsyncDownloader.RetrieveContentLength(url, true, "CL_" + url); game.ShowWarning(new WarningScreen( game, "CL_" + url, true, "Do you want to download the server's texture pack?", DownloadTexturePack, null, WarningScreenTick, "Texture pack url:", url, "Download size: Determining...")); } else { DownloadTexturePack(url); } }