protected override void UpdateSize() { base.UpdateSize(); if (SelPawn.CanHaveFoodPolicy()) { this.size.x = Math.Max(this.size.x, PawnPolicyCard.Size.x); this.size.y += PawnPolicyCard.Size.y; } }
//[DetourMethod(typeof(ITab_Pawn_Needs), "FillTab")] protected override void FillTab() { NeedsCardUtility.DoNeedsMoodAndThoughts(new Rect(0, 0, this.size.x, RimWorld.NeedsCardUtility.GetSize(SelPawn).y), base.SelPawn, ref this.thoughtScrollPosition); //base.FillTab(); // ------ MOD ----------- if (SelPawn.CanHaveFoodPolicy()) { policyCardRect = new Rect(0, this.size.y - PawnPolicyCard.Size.y, PawnPolicyCard.Size.x, PawnPolicyCard.Size.y); //policyRect = new Rect(0, 0, PawnPolicyCard.RectSize.x, PawnPolicyCard.RectSize.y); PawnPolicyCard.Draw(policyCardRect, SelPawn); } // ------ MOD END ----------- }