private static float GetRowHeight(SocialCardUtility.CachedSocialTabEntry entry, float rowWidth, Pawn selPawnForSocialInfo) { float width; float width2; float num; float num2; float num3; SocialCardUtility.CalculateColumnsWidths(rowWidth, out width, out width2, out num, out num2, out num3); float num4 = 0f; num4 = Mathf.Max(num4, Text.CalcHeight(SocialCardUtility.GetRelationsString(entry, selPawnForSocialInfo), width)); num4 = Mathf.Max(num4, Text.CalcHeight(SocialCardUtility.GetPawnLabel(entry.otherPawn), width2)); return(num4 + 3f); }
private static float GetRowHeight(CachedSocialTabEntry entry, float rowWidth, Pawn selPawnForSocialInfo) { float width = default(float); float width2 = default(float); float num = default(float); float num2 = default(float); float num3 = default(float); SocialCardUtility.CalculateColumnsWidths(rowWidth, out width, out width2, out num, out num2, out num3); float a = 0f; a = Mathf.Max(a, Text.CalcHeight(SocialCardUtility.GetRelationsString(entry, selPawnForSocialInfo), width)); a = Mathf.Max(a, Text.CalcHeight(SocialCardUtility.GetPawnLabel(entry.otherPawn), width2)); return((float)(a + 3.0)); }
private static void DrawPawnLabel(Pawn pawn, Rect rect) { GUI.color = SocialCardUtility.PawnLabelColor; Widgets.Label(rect, SocialCardUtility.GetPawnLabel(pawn)); }