Update AssetSDK.cs

This commit is contained in:
Bitl 2022-01-22 12:25:31 -07:00
parent cc71d06052
commit df2e66cd05
1 changed files with 40 additions and 35 deletions

View File

@ -387,43 +387,43 @@ public partial class AssetSDK : Form
progressString = "Backing up RBXL..."; progressString = "Backing up RBXL...";
break; break;
case 5: case 5:
progressString = "Downloading RBXL Meshes and Textures..."; progressString = "Fixing RBXL Meshes and Textures...";
break; break;
case 10: case 10:
progressString = "Downloading RBXL Skybox Textures..."; progressString = "Fixing RBXL Skybox Textures...";
break; break;
case 15: case 15:
progressString = "Downloading RBXL Decal Textures..."; progressString = "Fixing RBXL Decal Textures...";
break; break;
case 20: case 20:
progressString = "Downloading RBXL Textures..."; progressString = "Fixing RBXL Textures...";
break; break;
case 25: case 25:
progressString = "Downloading RBXL Tool Textures..."; progressString = "Fixing RBXL Tool Textures...";
break; break;
case 30: case 30:
progressString = "Downloading RBXL HopperBin Textures..."; progressString = "Fixing RBXL HopperBin Textures...";
break; break;
case 40: case 40:
progressString = "Downloading RBXL Sounds..."; progressString = "Fixing RBXL Sounds...";
break; break;
case 50: case 50:
progressString = "Downloading RBXL GUI Textures..."; progressString = "Fixing RBXL GUI Textures...";
break; break;
case 60: case 60:
progressString = "Downloading RBXL Shirt Textures..."; progressString = "Fixing RBXL Shirt Textures...";
break; break;
case 65: case 65:
progressString = "Downloading RBXL T-Shirt Textures..."; progressString = "Fixing RBXL T-Shirt Textures...";
break; break;
case 70: case 70:
progressString = "Downloading RBXL Pants Textures..."; progressString = "Fixing RBXL Pants Textures...";
break; break;
case 80: case 80:
progressString = "Downloading RBXL Linked Scripts..."; progressString = "Fixing RBXL Linked Scripts...";
break; break;
case 90: case 90:
progressString = "Downloading RBXL Linked LocalScripts..."; progressString = "Fixing RBXL Linked LocalScripts...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -434,43 +434,43 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading RBXM Meshes and Textures..."; progressString = "Fixing RBXM Meshes and Textures...";
break; break;
case 10: case 10:
progressString = "Downloading RBXM Skybox Textures..."; progressString = "Fixing RBXM Skybox Textures...";
break; break;
case 15: case 15:
progressString = "Downloading RBXM Decal Textures..."; progressString = "Fixing RBXM Decal Textures...";
break; break;
case 20: case 20:
progressString = "Downloading RBXM Textures..."; progressString = "Fixing RBXM Textures...";
break; break;
case 25: case 25:
progressString = "Downloading RBXM Tool Textures..."; progressString = "Fixing RBXM Tool Textures...";
break; break;
case 30: case 30:
progressString = "Downloading RBXM HopperBin Textures..."; progressString = "Fixing RBXM HopperBin Textures...";
break; break;
case 40: case 40:
progressString = "Downloading RBXM Sounds..."; progressString = "Fixing RBXM Sounds...";
break; break;
case 50: case 50:
progressString = "Downloading RBXM GUI Textures..."; progressString = "Fixing RBXM GUI Textures...";
break; break;
case 60: case 60:
progressString = "Downloading RBXM Shirt Textures..."; progressString = "Fixing RBXM Shirt Textures...";
break; break;
case 65: case 65:
progressString = "Downloading RBXM T-Shirt Textures..."; progressString = "Fixing RBXM T-Shirt Textures...";
break; break;
case 70: case 70:
progressString = "Downloading RBXM Pants Textures..."; progressString = "Fixing RBXM Pants Textures...";
break; break;
case 80: case 80:
progressString = "Downloading RBXM Linked Scripts..."; progressString = "Fixing RBXM Linked Scripts...";
break; break;
case 90: case 90:
progressString = "Downloading RBXM Linked LocalScripts..."; progressString = "Fixing RBXM Linked LocalScripts...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -481,16 +481,16 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading Hat Meshes and Textures..."; progressString = "Fixing Hat Meshes and Textures...";
break; break;
case 25: case 25:
progressString = "Downloading Hat Sounds..."; progressString = "Fixing Hat Sounds...";
break; break;
case 50: case 50:
progressString = "Downloading Hat Linked Scripts..."; progressString = "Fixing Hat Linked Scripts...";
break; break;
case 75: case 75:
progressString = "Downloading Hat Linked LocalScripts..."; progressString = "Fixing Hat Linked LocalScripts...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -502,7 +502,7 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading Head Meshes and Textures..."; progressString = "Fixing Head Meshes and Textures...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -514,7 +514,7 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading Face Textures..."; progressString = "Fixing Face Textures...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -526,7 +526,7 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading T-Shirt Textures..."; progressString = "Fixing T-Shirt Textures...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -538,7 +538,7 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading Shirt Textures..."; progressString = "Fixing Shirt Textures...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -550,7 +550,7 @@ public partial class AssetSDK : Form
switch (percent) switch (percent)
{ {
case 0: case 0:
progressString = "Downloading Pants Textures..."; progressString = "Fixing Pants Textures...";
break; break;
case 95: case 95:
progressString = "Downloading extra assets..."; progressString = "Downloading extra assets...";
@ -744,6 +744,11 @@ public partial class AssetSDK : Form
FixURLSOrDownloadFromScript(path, GlobalPaths.AssetCacheDirAssets, GlobalPaths.AssetCacheAssetsGameDir, useURLs, url); FixURLSOrDownloadFromScript(path, GlobalPaths.AssetCacheDirAssets, GlobalPaths.AssetCacheAssetsGameDir, useURLs, url);
worker.ReportProgress(100); worker.ReportProgress(100);
} }
else
{
MessageBox.Show("Error: Unable to fix the asset. " + ex.Message, "Novetus Asset SDK - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
worker.ReportProgress(0);
}
return; return;
} }