public override void DoCell(Rect rect, Pawn pawn, PawnTable table) { if (pawn.drugs != null) { DrugPolicyUIUtility.DoAssignDrugPolicyButtons(rect, pawn); } }
private void DoRow(Rect rect, Pawn pawn) { Rect rect2 = new Rect(rect.x, rect.y, rect.width - 354f, 30f); Text.Anchor = TextAnchor.MiddleLeft; Text.WordWrap = false; Widgets.Label(rect2, pawn.LabelCap); Text.Anchor = TextAnchor.UpperLeft; Text.WordWrap = true; GUI.color = Color.white; DrugPolicyUIUtility.DoAssignDrugPolicyButtons(new Rect(rect.x + rect.width - 354f, rect.y, 354f, 30f), pawn); }