finished localizer
This commit is contained in:
parent
ca69225953
commit
b2af128d2d
|
|
@ -13,8 +13,9 @@ public static class RobloxXMLLocalizer
|
||||||
{
|
{
|
||||||
public enum DLType
|
public enum DLType
|
||||||
{
|
{
|
||||||
RBXL,
|
//RBXL and RBXM
|
||||||
RBXM,
|
XML,
|
||||||
|
//Items
|
||||||
Hat,
|
Hat,
|
||||||
Head,
|
Head,
|
||||||
Face,
|
Face,
|
||||||
|
|
@ -36,29 +37,59 @@ public static class RobloxXMLLocalizer
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case DLType.RBXL:
|
case DLType.XML:
|
||||||
//do whatever with it here
|
//meshes
|
||||||
break;
|
DownloadFromNodes(path, GlobalVars.Fonts);
|
||||||
case DLType.RBXM:
|
DownloadFromNodes(path, GlobalVars.Fonts, 1, 1, 1, 1);
|
||||||
//do whatever with it here
|
//skybox
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky, 0, 1, 0, 0);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky, 0, 2, 0, 0);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky, 0, 3, 0, 0);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky, 0, 4, 0, 0);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sky, 0, 5, 0, 0);
|
||||||
|
//decal
|
||||||
|
DownloadFromNodes(path, GlobalVars.Decal);
|
||||||
|
//texture
|
||||||
|
DownloadFromNodes(path, GlobalVars.Texture);
|
||||||
|
//tools and hopperbin
|
||||||
|
DownloadFromNodes(path, GlobalVars.Tool);
|
||||||
|
DownloadFromNodes(path, GlobalVars.HopperBin);
|
||||||
|
//sound
|
||||||
|
DownloadFromNodes(path, GlobalVars.Sound);
|
||||||
|
//gui
|
||||||
|
DownloadFromNodes(path, GlobalVars.ImageLabel);
|
||||||
|
//clothing
|
||||||
|
DownloadFromNodes(path, GlobalVars.Shirt);
|
||||||
|
DownloadFromNodes(path, GlobalVars.ShirtGraphic);
|
||||||
|
DownloadFromNodes(path, GlobalVars.Pants);
|
||||||
break;
|
break;
|
||||||
case DLType.Hat:
|
case DLType.Hat:
|
||||||
//do whatever with it here
|
//meshes
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemHatFonts);
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemHatFonts, 1, 1, 1, 1);
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemHatSound);
|
||||||
break;
|
break;
|
||||||
case DLType.Head:
|
case DLType.Head:
|
||||||
//do whatever with it here
|
//meshes
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemHeadFonts);
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemHeadFonts, 1, 1, 1, 1);
|
||||||
break;
|
break;
|
||||||
case DLType.Face:
|
case DLType.Face:
|
||||||
//do whatever with it here
|
//decal
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemFaceTexture);
|
||||||
break;
|
break;
|
||||||
case DLType.TShirt:
|
case DLType.TShirt:
|
||||||
//do whatever with it here
|
//texture
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemTShirtTexture);
|
||||||
break;
|
break;
|
||||||
case DLType.Shirt:
|
case DLType.Shirt:
|
||||||
//do whatever with it here
|
//texture
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemShirtTexture);
|
||||||
break;
|
break;
|
||||||
case DLType.Pants:
|
case DLType.Pants:
|
||||||
//do whatever with it here
|
//texture
|
||||||
|
DownloadFromNodes(path, GlobalVars.ItemPantsTexture);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
@ -66,16 +97,16 @@ public static class RobloxXMLLocalizer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void DownloadFromNodes(string filepath, AssetCacheDef assetdef)
|
||||||
|
{
|
||||||
|
DownloadFromNodes(filepath, assetdef.Class, assetdef.Id[0], assetdef.Ext[0], assetdef.Dir[0], assetdef.GameDir[0]);
|
||||||
|
}
|
||||||
|
|
||||||
public static void DownloadFromNodes(string filepath, AssetCacheDef assetdef, int idIndex, int extIndex, int outputPathIndex, int inGameDirIndex)
|
public static void DownloadFromNodes(string filepath, AssetCacheDef assetdef, int idIndex, int extIndex, int outputPathIndex, int inGameDirIndex)
|
||||||
{
|
{
|
||||||
DownloadFromNodes(filepath, assetdef.Class, assetdef.Id[idIndex], assetdef.Ext[extIndex], assetdef.Dir[outputPathIndex], assetdef.GameDir[inGameDirIndex]);
|
DownloadFromNodes(filepath, assetdef.Class, assetdef.Id[idIndex], assetdef.Ext[extIndex], assetdef.Dir[outputPathIndex], assetdef.GameDir[inGameDirIndex]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DownloadFromNodes(string filepath, AssetCacheDef assetdef, int idIndex, int extIndex,string outputPath, int inGameDirIndex)
|
|
||||||
{
|
|
||||||
DownloadFromNodes(filepath, assetdef.Class, assetdef.Id[idIndex], assetdef.Ext[extIndex], outputPath, assetdef.GameDir[inGameDirIndex]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DownloadFromNodes(string filepath, string itemClassValue, string itemIdValue, string fileext, string outputPath, string inGameDir)
|
public static void DownloadFromNodes(string filepath, string itemClassValue, string itemIdValue, string fileext, string outputPath, string inGameDir)
|
||||||
{
|
{
|
||||||
string oldfile = File.ReadAllText(filepath);
|
string oldfile = File.ReadAllText(filepath);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue