예제 #1
0
 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());
     }
 }
예제 #2
0
 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() + ")");
     }
 }