mirror of
https://gitgud.io/ll.mirrors/sizedapparel.git
synced 2024-08-15 00:43:40 +00:00
Mirror of 1.4.23 from Lovers Lab
This commit is contained in:
parent
b501ddfb0f
commit
e47a1fc4f0
730 changed files with 646 additions and 182 deletions
|
@ -156,11 +156,9 @@ namespace SizedApparel
|
|||
|
||||
string path;
|
||||
string extraPath = null;
|
||||
string raceExtraPath = null;
|
||||
string racePath = null;
|
||||
|
||||
|
||||
|
||||
//string raceExtraPath = null;
|
||||
//string racePath = null;
|
||||
|
||||
//path = agr.sourceApparel.def.apparel.wornGraphicPath + "_" + __instance.pawn.story.bodyType.defName;
|
||||
path = sourceGraphic.path;
|
||||
|
@ -185,12 +183,15 @@ namespace SizedApparel
|
|||
path = path + genderSting;
|
||||
|
||||
if (wearerDefName != null)
|
||||
racePath = path + "_" + wearerDefName;
|
||||
{
|
||||
//racePath = path + "_" + wearerDefName;
|
||||
path = path + "_" + wearerDefName;
|
||||
}
|
||||
if (breastHediffName != null)
|
||||
{
|
||||
extraPath = path + "_" + breastHediffName;
|
||||
if (wearerDefName != null)
|
||||
raceExtraPath = path + "_" + wearerDefName + "_" + breastHediffName;
|
||||
//if (wearerDefName != null)
|
||||
// raceExtraPath = path + "_" + wearerDefName + "_" + breastHediffName;
|
||||
}
|
||||
|
||||
|
||||
|
@ -206,10 +207,12 @@ namespace SizedApparel
|
|||
Graphic graphic = null;
|
||||
bool findBigger = true; // if false : search smaller first
|
||||
string pathString = "";
|
||||
while (offset < SizedApparelUtility.breastsSizeStrings.Length)
|
||||
|
||||
while (offset < SizedApparelUtility.breastsSizeStrings.Length) //Search Bigger
|
||||
{
|
||||
if (breastHediffName != null)
|
||||
{
|
||||
/*
|
||||
if(raceExtraPath != null)
|
||||
{
|
||||
pathString = raceExtraPath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -224,7 +227,7 @@ namespace SizedApparel
|
|||
//Log.Message(extraPath + BreastSeverityString(breastSeverity, offset, findBigger) + ":Extra Texture Found");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
pathString = extraPath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -243,7 +246,7 @@ namespace SizedApparel
|
|||
}
|
||||
if (SizedApparelSettings.Debug && SizedApparelSettings.DetailLog)
|
||||
Log.Message("[Sized Apparel] (" + pathString + ")apparel texture is missing");
|
||||
|
||||
/*
|
||||
if(racePath != null)
|
||||
{
|
||||
pathString = racePath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -258,7 +261,7 @@ namespace SizedApparel
|
|||
//Log.Message(path + BreastSeverityString(breastSeverity, offset, findBigger) + ":Texture Found");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
pathString = path + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -282,13 +285,16 @@ namespace SizedApparel
|
|||
if (indexOut == -1)
|
||||
break;
|
||||
}
|
||||
if (validTexture == false)
|
||||
|
||||
|
||||
if (validTexture == false) // Search Smaller
|
||||
{
|
||||
offset = 0;
|
||||
while (offset < SizedApparelUtility.breastsSizeStrings.Length)
|
||||
{
|
||||
if (breastHediffName != null)
|
||||
{
|
||||
/*
|
||||
if (raceExtraPath != null)
|
||||
{
|
||||
pathString = raceExtraPath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, !findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -305,7 +311,7 @@ namespace SizedApparel
|
|||
//Log.Message(extraPath + BreastSeverityString(breastSeverity, offset, !findBigger) + ":Extra Texture Found");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
pathString = extraPath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, !findBigger, ref indexOut, ref severityOut);
|
||||
if (ContentFinder<Texture2D>.Get((pathString + "_south"), false) != null) // checking special texture like udder
|
||||
|
@ -325,7 +331,7 @@ namespace SizedApparel
|
|||
|
||||
//Log.Warning(extraPath + BreastSeverityString(breastSeverity, offset, !findBigger) + ":Extra Texture Not Found.");
|
||||
}
|
||||
|
||||
/*
|
||||
if(racePath != null)
|
||||
{
|
||||
pathString = racePath + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, !findBigger, ref indexOut, ref severityOut);
|
||||
|
@ -341,7 +347,7 @@ namespace SizedApparel
|
|||
//Log.Message(path + BreastSeverityString(breastSeverity, offset, !findBigger) + ":Texture Found");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
pathString = path + SizedApparelUtility.BreastSeverityString(breastSeverity, offset, !findBigger, ref indexOut, ref severityOut);
|
||||
if ((ContentFinder<Texture2D>.Get((pathString + "_south"), false) != null))
|
||||
|
@ -388,11 +394,12 @@ namespace SizedApparel
|
|||
result = validTexture;
|
||||
|
||||
|
||||
/*
|
||||
//Find Humanlike for Alien. ps. null for search defealt texturepath
|
||||
if(result == false & wearerDefName != null)
|
||||
{
|
||||
GetSizedApparelGraphic(sourceGraphic, breastSeverity, null , breastHediffName, customPose);
|
||||
}
|
||||
}*/
|
||||
return graphic;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue