Change health card patch to use the new variable name

This commit is contained in:
lutepickle 2024-04-24 06:55:23 -07:00
parent 88520cb8eb
commit bbaf27a397

View file

@ -55,7 +55,7 @@ namespace RJW_Menstruation
public const float buttonWidth = 50f;
public const float buttonHeight = 20f;
public static void Prefix(Rect leftRect, Pawn pawn, float curY)
public static void Prefix(Rect rect, Pawn pawn, float curY)
{
if (Configurations.EnableButtonInHT && pawn.ShowStatus() && pawn.ShouldCycle())
{
@ -63,7 +63,7 @@ namespace RJW_Menstruation
if (comp != null)
{
Text.Font = GameFont.Tiny;
Rect buttonRect = new Rect(leftRect.xMax - buttonWidth - 8f, curY + 4f, buttonWidth, buttonHeight);
Rect buttonRect = new Rect(rect.xMax - buttonWidth - 8f, curY + 4f, buttonWidth, buttonHeight);
if (Widgets.ButtonText(buttonRect, Translations.Button_HealthTab))
{
Dialog_WombStatus.ToggleWindow(pawn, comp);