ui minor fix

This commit is contained in:
moreoreganostodump 2021-02-01 20:34:41 +09:00
parent c1dde0d447
commit 24a07fb0bf
5 changed files with 4 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View file

@ -179,7 +179,7 @@ namespace RJW_Menstruation
Rect genitalRect = new Rect(24, pawnRectHeight + 2*fontheight, genitalRectWidth, genitalRectHeight + fontheight*2);
Rect genitalIconRect = new Rect(genitalRect.x,genitalRect.y + fontheight ,genitalRectWidth,genitalRectHeight);
Rect genitalVaginaLabelRect = new Rect(genitalRect.x,genitalRect.y,genitalRectWidth,fontheight);
Rect genitalAnusLabelRect = new Rect(genitalRect.x,genitalRect.y + fontheight +genitalRectHeight ,genitalRectWidth,fontheight);
Rect genitalAnusLabelRect = new Rect(genitalRect.x,genitalRect.y +genitalRectHeight ,genitalRectWidth,fontheight);
vagina = Utility.GetGenitalIcon(pawn);
anal = Utility.GetAnalIcon(pawn);

View file

@ -88,6 +88,7 @@
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>..\..\..\..\..\RimWorldWin64_Data\Managed\Unity.TextMeshPro.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>

View file

@ -208,12 +208,12 @@ namespace RJW_Menstruation
public static string GetVaginaLabel(Pawn pawn)
{
var hediff = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_genitalsBPR(pawn)).Find((Hediff h) => h.def.defName.ToLower().Contains("vagina"));
return hediff.LabelBase + "\n" + hediff.LabelInBrackets;
return hediff.LabelBase + "\n(" + hediff.LabelInBrackets + ")";
}
public static string GetAnusLabel(Pawn pawn)
{
var hediff = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_anusBPR(pawn)).Find((Hediff h) => h.def.defName.ToLower().Contains("anus"));
return hediff.Label;
return hediff.LabelBase + "\n(" + hediff.LabelInBrackets + ")";
}