Compare commits

...

3 commits

Author SHA1 Message Date
ADHD_Coder
246b567248 Merge branch 'UI_vag_label_fix' into 'dev'
Fix UI so it displays the type of the linked vagina hediff

See merge request lutepickle/rjw_menstruation!14
2026-08-05 21:06:26 +00:00
lutepickle
5c83c807a3 Make InterspeciesImplantFactor public 2026-08-05 06:08:23 -07:00
ADHD_Coder
8ff3771a0e Fix UI so it displays the type of the vaginal the menstruationComp is linked to, instead of the first vagina the pawn has. 2025-11-17 13:55:13 -08:00
5 changed files with 8 additions and 6 deletions

View file

@ -1971,7 +1971,7 @@ namespace RJW_Menstruation
}
}
protected float InterspeciesImplantFactor(Pawn fertilizer)
public float InterspeciesImplantFactor(Pawn fertilizer)
{
if (fertilizer.def.defName == Pawn.def.defName) return 1.0f;
else

View file

@ -400,7 +400,7 @@ namespace RJW_Menstruation
GUI.DrawTexture(genitalIconRect, vagina, ScaleMode.ScaleToFit);
GUI.color = Color.white;
GUI.Label(genitalVaginaLabelRect, pawn.GetVaginaLabel(), fontstylecenter);
GUI.Label(genitalVaginaLabelRect, comp.GetVaginaLabel(), fontstylecenter);
GUI.Label(genitalAnusLabelRect, pawn.GetAnusLabel(), fontstylecenter);
}

View file

@ -325,10 +325,10 @@ namespace RJW_Menstruation
}
public static string GetVaginaLabel(this Pawn pawn)
public static string GetVaginaLabel(this HediffComp_Menstruation comp)
{
Hediff hediff = pawn.health.hediffSet.hediffs.Find(h => VariousDefOf.AllVaginas.Contains(h.def));
return hediff.LabelBase.CapitalizeFirst() + "\n(" + hediff.LabelInBrackets + ")" + "\n" + xxx.CountOfSex.LabelCap.CapitalizeFirst() + ": " + pawn.records.GetAsInt(xxx.CountOfSex);
Hediff hediff = comp.parent;
return hediff.LabelBase.CapitalizeFirst() + "\n(" + hediff.LabelInBrackets + ")" + "\n" + xxx.CountOfSex.LabelCap.CapitalizeFirst() + ": " + comp.parent.pawn.records.GetAsInt(xxx.CountOfSex);
}
public static string GetAnusLabel(this Pawn pawn)
{

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RJW Menstruation</identifier>
<version>1.6.2.4</version>
<version>1.6.2.5</version>
<dependencies>
</dependencies>
<incompatibleWith />

View file

@ -1,3 +1,5 @@
Version 1.6.2.5
Version 1.6.2.4
- Fix error on startup and missing womb status in RJW tab with RJW 6.1.4.