From bbaf27a3972e6e6687fb64a126d658e64ed90426 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Wed, 24 Apr 2024 06:55:23 -0700 Subject: [PATCH] Change health card patch to use the new variable name --- .../RJW_Menstruation/RJW_Menstruation/Patch/Pawn_Patch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/Pawn_Patch.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/Pawn_Patch.cs index c2f1176..26a66eb 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/Pawn_Patch.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/Pawn_Patch.cs @@ -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);