private static void DrawMyOpinion(CachedSocialTabEntry entry, Rect rect, Pawn selPawnForSocialInfo) { if (entry.otherPawn.RaceProps.Humanlike && selPawnForSocialInfo.RaceProps.Humanlike) { int opinionOfOtherPawn = entry.opinionOfOtherPawn; GUI.color = SocialCardUtility.OpinionLabelColor(opinionOfOtherPawn); Widgets.Label(rect, opinionOfOtherPawn.ToStringWithSign()); } }
private static void DrawHisOpinion(CachedSocialTabEntry entry, Rect rect, Pawn selPawnForSocialInfo) { if (entry.otherPawn.RaceProps.Humanlike && selPawnForSocialInfo.RaceProps.Humanlike) { int opinionOfMe = entry.opinionOfMe; Color color = SocialCardUtility.OpinionLabelColor(opinionOfMe); GUI.color = new Color(color.r, color.g, color.b, 0.4f); Widgets.Label(rect, "(" + opinionOfMe.ToStringWithSign() + ")"); } }