static void Prefix(Pawn selPawn, ref float y, ref float width, Thing thing, ref bool inventory) { if (selPawn == null || thing == null) { return; } NUPUtility.DrawThingRow(selPawn, ref y, ref width, thing, ref inventory); }
public static void Prefix(ITab_Pawn_Gear __instance, ref float y, ref float width, Thing thing, ref bool inventory) { Pawn SelPawnForGear = Traverse.Create(__instance).Property("SelPawnForGear").GetValue <Pawn>(); NUPUtility.DrawThingRow(SelPawnForGear, ref y, ref width, thing, ref inventory); }