Fixed faces and t-shirts

This commit is contained in:
Bitl 2021-07-28 07:53:19 -07:00
parent 1f3fa96353
commit 664b1359ba
4 changed files with 9 additions and 7 deletions

View File

@ -62,7 +62,7 @@ public class IconLoader
if (CopyToItemDir)
{
ItemPath = openFileDialog1.FileName;
ItemPath = ItemDir + "\\" + ItemNameFixed + ".png";
}
installOutcome = "Icon " + openFileDialog1.SafeFileName + " installed!";

View File

@ -84,10 +84,10 @@ public class GlobalPaths
public static readonly string hatdirTextures = hatdir + DirTextures;
public static readonly string hatdirSounds = hatdir + DirSounds;
public static readonly string hatdirScripts = hatdir + DirScripts;
public static readonly string facedirTextures = facedir + DirTextures;
public static readonly string facedirTextures = facedir; //+ DirTextures;
public static readonly string headdirFonts = headdir + DirFonts;
public static readonly string headdirTextures = headdir + DirTextures;
public static readonly string tshirtdirTextures = tshirtdir + DirTextures;
public static readonly string tshirtdirTextures = tshirtdir; //+ DirTextures;
public static readonly string shirtdirTextures = shirtdir + DirTextures;
public static readonly string pantsdirTextures = pantsdir + DirTextures;
@ -95,10 +95,10 @@ public class GlobalPaths
public static readonly string hatGameDirTextures = hatGameDir + TexturesGameDir;
public static readonly string hatGameDirSounds = hatGameDir + SoundsGameDir;
public static readonly string hatGameDirScripts = hatGameDir + ScriptsGameDir;
public static readonly string faceGameDirTextures = faceGameDir + TexturesGameDir;
public static readonly string faceGameDirTextures = faceGameDir; //+ TexturesGameDir;
public static readonly string headGameDirFonts = headGameDir + FontsGameDir;
public static readonly string headGameDirTextures = headGameDir + TexturesGameDir;
public static readonly string tshirtGameDirTextures = tshirtGameDir + TexturesGameDir;
public static readonly string tshirtGameDirTextures = tshirtGameDir; //+ TexturesGameDir;
public static readonly string shirtGameDirTextures = shirtGameDir + TexturesGameDir;
public static readonly string pantsGameDirTextures = pantsGameDir + TexturesGameDir;
#endregion

View File

@ -1012,10 +1012,10 @@ class SDKFuncs
SetItemCoordVals(doc, RobloxDefs.ItemHeadFonts, coordoptions[0], coordoptions[1], coordoptions[2], "Vector3", "Scale");
break;
case RobloxFileType.Face:
SetItemFontVals(doc, RobloxDefs.ItemFaceTexture, 0, 0, 0, assetfilenames[0], assetfilenames[2]);
SetItemFontVals(doc, RobloxDefs.ItemFaceTexture, 0, 0, 0, "", assetfilenames[2]);
break;
case RobloxFileType.TShirt:
SetItemFontVals(doc, RobloxDefs.ItemTShirtTexture, 0, 0, 0, assetfilenames[0], assetfilenames[2]);
SetItemFontVals(doc, RobloxDefs.ItemTShirtTexture, 0, 0, 0, "", assetfilenames[2]);
break;
case RobloxFileType.Shirt:
SetItemFontVals(doc, RobloxDefs.ItemShirtTexture, 0, 0, 0, assetfilenames[0], assetfilenames[2]);

View File

@ -72,7 +72,9 @@ public partial class ItemCreationSDK : Form
if (type == RobloxFileType.TShirt || type == RobloxFileType.Face)
{
Option1Path = icon.ItemPath;
if (Option1TextBox.ReadOnly) Option1TextBox.ReadOnly = false;
Option1TextBox.Text = Path.GetFileName(Option1Path);
if (!Option1TextBox.ReadOnly) Option1TextBox.ReadOnly = true;
}
}
}