Rename the TextureCache members to something more sensible
This commit is contained in:
parent
13b1ceb0a1
commit
af82bad406
|
@ -103,13 +103,14 @@ namespace RJW_Menstruation
|
|||
|
||||
public static readonly Dictionary<Stage, Texture2D> StageTexture = new Dictionary<Stage, Texture2D>()
|
||||
{
|
||||
{ Stage.Follicular, TextureCache.HumanTexture },
|
||||
{ Stage.ClimactericFollicular, TextureCache.HumanTexture },
|
||||
{ Stage.Luteal, TextureCache.FertilityTexture },
|
||||
{ Stage.ClimactericLuteal, TextureCache.FertilityTexture },
|
||||
{ Stage.Bleeding, TextureCache.KhorneTexture },
|
||||
{ Stage.ClimactericBleeding, TextureCache.KhorneTexture },
|
||||
{ Stage.Recover, TextureCache.NurgleTexture }
|
||||
{ Stage.Follicular, TextureCache.FollicularTexture },
|
||||
{ Stage.ClimactericFollicular, TextureCache.FollicularTexture },
|
||||
{ Stage.Luteal, TextureCache.LutealTexture },
|
||||
{ Stage.ClimactericLuteal, TextureCache.LutealTexture },
|
||||
{ Stage.Bleeding, TextureCache.BleedingTexture },
|
||||
{ Stage.ClimactericBleeding, TextureCache.BleedingTexture },
|
||||
{ Stage.Pregnant, TextureCache.PregnantTexture },
|
||||
{ Stage.Recover, TextureCache.RecoverTexture }
|
||||
};
|
||||
|
||||
|
||||
|
@ -565,7 +566,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!StageTexture.TryGetValue(CurrentVisibleStage, out Texture2D tex)) tex = TextureCache.TzeentchTexture;
|
||||
if (!StageTexture.TryGetValue(CurrentVisibleStage, out Texture2D tex)) tex = TextureCache.PregnantTexture;
|
||||
return tex;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace RJW_Menstruation
|
|||
[StaticConstructorOnStartup]
|
||||
public static class TextureCache
|
||||
{
|
||||
|
||||
// Milk bars
|
||||
public static Texture2D MilkTexture
|
||||
{
|
||||
get
|
||||
|
@ -15,46 +15,52 @@ namespace RJW_Menstruation
|
|||
return milktexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D SlaaneshTexture
|
||||
// Sex drive
|
||||
public static Texture2D SexDriveTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (slaaneshtexturecache == null) slaaneshtexturecache = SolidColorMaterials.NewSolidColorTexture(0.686f, 0.062f, 0.698f, 1.0f);
|
||||
return slaaneshtexturecache;
|
||||
if (sexdrivetexturecache == null) sexdrivetexturecache = SolidColorMaterials.NewSolidColorTexture(0.686f, 0.062f, 0.698f, 1.0f);
|
||||
return sexdrivetexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D KhorneTexture
|
||||
// Bleeding, vulnerability
|
||||
public static Texture2D BleedingTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (khornetexturecache == null) khornetexturecache = SolidColorMaterials.NewSolidColorTexture(0.415f, 0.0f, 0.003f, 1.0f);
|
||||
return khornetexturecache;
|
||||
if (bleedingtexturecache == null) bleedingtexturecache = SolidColorMaterials.NewSolidColorTexture(0.415f, 0.0f, 0.003f, 1.0f);
|
||||
return bleedingtexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D TzeentchTexture
|
||||
// Pregnant, default, formerly sex ability
|
||||
public static Texture2D PregnantTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (tzeentchtexturecache == null) tzeentchtexturecache = SolidColorMaterials.NewSolidColorTexture(0.082f, 0.453f, 0.6f, 1.0f);
|
||||
return tzeentchtexturecache;
|
||||
if (pregnanttexturecache == null) pregnanttexturecache = SolidColorMaterials.NewSolidColorTexture(0.082f, 0.453f, 0.6f, 1.0f);
|
||||
return pregnanttexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D NurgleTexture
|
||||
// Recover, count of egg births
|
||||
public static Texture2D RecoverTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (nurgletexturecache == null) nurgletexturecache = SolidColorMaterials.NewSolidColorTexture(0.6f, 0.83f, 0.35f, 1.0f);
|
||||
return nurgletexturecache;
|
||||
if (recovertexturecache == null) recovertexturecache = SolidColorMaterials.NewSolidColorTexture(0.6f, 0.83f, 0.35f, 1.0f);
|
||||
return recovertexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D HumanTexture
|
||||
// Follicular, count of humanlike births
|
||||
public static Texture2D FollicularTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (humantexturecache == null) humantexturecache = SolidColorMaterials.NewSolidColorTexture(0.878f, 0.674f, 0.411f, 1.0f);
|
||||
return humantexturecache;
|
||||
if (folliculartexturecache == null) folliculartexturecache = SolidColorMaterials.NewSolidColorTexture(0.878f, 0.674f, 0.411f, 1.0f);
|
||||
return folliculartexturecache;
|
||||
}
|
||||
}
|
||||
// Count of animal births
|
||||
public static Texture2D AnimalTexture
|
||||
{
|
||||
get
|
||||
|
@ -63,20 +69,22 @@ namespace RJW_Menstruation
|
|||
return animaltexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D FertilityTexture
|
||||
// Luteal, fertility
|
||||
public static Texture2D LutealTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (fertilitytexturecache == null) fertilitytexturecache = SolidColorMaterials.NewSolidColorTexture(0.843f, 0.474f, 0.6f, 1.0f);
|
||||
return fertilitytexturecache;
|
||||
if (lutealtexturecache == null) lutealtexturecache = SolidColorMaterials.NewSolidColorTexture(0.843f, 0.474f, 0.6f, 1.0f);
|
||||
return lutealtexturecache;
|
||||
}
|
||||
}
|
||||
public static Texture2D GhalmarazTexture
|
||||
// Unused, formerly count of whored
|
||||
public static Texture2D WhoredTexture
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ghalmaraztexturecache == null) ghalmaraztexturecache = SolidColorMaterials.NewSolidColorTexture(0.7f, 0.7f, 0.0f, 1.0f);
|
||||
return ghalmaraztexturecache;
|
||||
if (whoredtexturecache == null) whoredtexturecache = SolidColorMaterials.NewSolidColorTexture(0.7f, 0.7f, 0.0f, 1.0f);
|
||||
return whoredtexturecache;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,14 +93,14 @@ namespace RJW_Menstruation
|
|||
public static readonly Texture2D GatherCum_Pussy = ContentFinder<Texture2D>.Get("UI/Icon/ToPussy");
|
||||
|
||||
private static Texture2D milktexturecache = SolidColorMaterials.NewSolidColorTexture(0.992f, 1.0f, 0.960f, 1.0f);
|
||||
private static Texture2D slaaneshtexturecache = SolidColorMaterials.NewSolidColorTexture(0.686f, 0.062f, 0.698f, 1.0f);
|
||||
private static Texture2D khornetexturecache = SolidColorMaterials.NewSolidColorTexture(0.415f, 0.0f, 0.003f, 1.0f);
|
||||
private static Texture2D tzeentchtexturecache = SolidColorMaterials.NewSolidColorTexture(0.082f, 0.453f, 0.6f, 1.0f);
|
||||
private static Texture2D nurgletexturecache = SolidColorMaterials.NewSolidColorTexture(0.6f, 0.83f, 0.35f, 1.0f);
|
||||
private static Texture2D humantexturecache = SolidColorMaterials.NewSolidColorTexture(0.878f, 0.674f, 0.411f, 1.0f);
|
||||
private static Texture2D sexdrivetexturecache = SolidColorMaterials.NewSolidColorTexture(0.686f, 0.062f, 0.698f, 1.0f);
|
||||
private static Texture2D bleedingtexturecache = SolidColorMaterials.NewSolidColorTexture(0.415f, 0.0f, 0.003f, 1.0f);
|
||||
private static Texture2D pregnanttexturecache = SolidColorMaterials.NewSolidColorTexture(0.082f, 0.453f, 0.6f, 1.0f);
|
||||
private static Texture2D recovertexturecache = SolidColorMaterials.NewSolidColorTexture(0.6f, 0.83f, 0.35f, 1.0f);
|
||||
private static Texture2D folliculartexturecache = SolidColorMaterials.NewSolidColorTexture(0.878f, 0.674f, 0.411f, 1.0f);
|
||||
private static Texture2D animaltexturecache = SolidColorMaterials.NewSolidColorTexture(0.411f, 0.521f, 0.878f, 1.0f);
|
||||
private static Texture2D fertilitytexturecache = SolidColorMaterials.NewSolidColorTexture(0.843f, 0.474f, 0.6f, 1.0f);
|
||||
private static Texture2D ghalmaraztexturecache = SolidColorMaterials.NewSolidColorTexture(0.7f, 0.7f, 0.0f, 1.0f);
|
||||
private static Texture2D lutealtexturecache = SolidColorMaterials.NewSolidColorTexture(0.843f, 0.474f, 0.6f, 1.0f);
|
||||
private static Texture2D whoredtexturecache = SolidColorMaterials.NewSolidColorTexture(0.7f, 0.7f, 0.0f, 1.0f);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -397,15 +397,15 @@ namespace RJW_Menstruation
|
|||
float statvalue;
|
||||
const float height = 24f;
|
||||
statvalue = pawn.GetStatValue(xxx.sex_drive_stat);
|
||||
FillableBarLabeled(lineRect, " " + xxx.sex_drive_stat.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue / 2, TextureCache.SlaaneshTexture, Texture2D.blackTexture, xxx.sex_drive_stat.description);
|
||||
FillableBarLabeled(lineRect, " " + xxx.sex_drive_stat.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue / 2, TextureCache.SexDriveTexture, Texture2D.blackTexture, xxx.sex_drive_stat.description);
|
||||
lineRect.y += height;
|
||||
|
||||
statvalue = pawn.GetStatValue(xxx.vulnerability_stat);
|
||||
FillableBarLabeled(lineRect, " " + xxx.vulnerability_stat.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue / 2, TextureCache.KhorneTexture, Texture2D.blackTexture, xxx.vulnerability_stat.description);
|
||||
FillableBarLabeled(lineRect, " " + xxx.vulnerability_stat.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue / 2, TextureCache.BleedingTexture, Texture2D.blackTexture, xxx.vulnerability_stat.description);
|
||||
lineRect.y += height;
|
||||
|
||||
statvalue = pawn.records.GetValue(xxx.CountOfBirthHuman);
|
||||
FillableBarLabeled(lineRect, " " + xxx.CountOfBirthHuman.LabelCap.CapitalizeFirst() + " " + statvalue, statvalue / 10, TextureCache.HumanTexture, Texture2D.blackTexture, xxx.CountOfBirthHuman.description);
|
||||
FillableBarLabeled(lineRect, " " + xxx.CountOfBirthHuman.LabelCap.CapitalizeFirst() + " " + statvalue, statvalue / 10, TextureCache.FollicularTexture, Texture2D.blackTexture, xxx.CountOfBirthHuman.description);
|
||||
lineRect.y += height;
|
||||
|
||||
statvalue = pawn.records.GetValue(xxx.CountOfBirthAnimal);
|
||||
|
@ -413,12 +413,12 @@ namespace RJW_Menstruation
|
|||
lineRect.y += height;
|
||||
|
||||
statvalue = pawn.records.GetValue(xxx.CountOfBirthEgg);
|
||||
FillableBarLabeled(lineRect, " " + xxx.CountOfBirthEgg.LabelCap.CapitalizeFirst() + " " + statvalue, statvalue / 100, TextureCache.NurgleTexture, Texture2D.blackTexture, xxx.CountOfBirthEgg.description);
|
||||
FillableBarLabeled(lineRect, " " + xxx.CountOfBirthEgg.LabelCap.CapitalizeFirst() + " " + statvalue, statvalue / 100, TextureCache.RecoverTexture, Texture2D.blackTexture, xxx.CountOfBirthEgg.description);
|
||||
lineRect.y += height * 4;
|
||||
|
||||
statvalue = Configurations.ImplantationChance * comp.ImplantFactor;
|
||||
float fertchance = comp.GetFertilityChance();
|
||||
FillableBarLabeled(lineRect, " " + xxx.reproduction.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue, TextureCache.FertilityTexture, Texture2D.blackTexture, Translations.FertilityDesc(String.Format("{0:0.##}", fertchance * 100)));
|
||||
FillableBarLabeled(lineRect, " " + xxx.reproduction.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue, TextureCache.LutealTexture, Texture2D.blackTexture, Translations.FertilityDesc(String.Format("{0:0.##}", fertchance * 100)));
|
||||
Rect overayRect = new Rect(lineRect.x, lineRect.y, lineRect.width * Math.Min(1.0f, fertchance), lineRect.height);
|
||||
GUI.DrawTexture(overayRect, TextureCache.FertChanceTex);
|
||||
lineRect.y += height;
|
||||
|
|
Loading…
Reference in New Issue