protected override void FillTab()
        {
            Text.Font = GameFont.Small;
            Rect rect = new Rect(0f, 0f, this.size.x, this.size.y);

            rect       = rect.ContractedBy(10f);
            rect.yMin += 17f;
            InteractionCardUtility.DrawInteractionsLog(rect, this.SelPawnForCombatInfo, Find.BattleLog.RawEntries, 50);
        }
Exemple #2
0
        public static void DrawSocialCard(Rect rect, Pawn pawn)
        {
            GUI.BeginGroup(rect);
            Text.Font = GameFont.Small;
            float num   = (Prefs.DevMode ? 20f : 15f);
            Rect  rect2 = new Rect(0f, num, rect.width, rect.height - num).ContractedBy(10f);
            Rect  rect3 = rect2;
            Rect  rect4 = rect2;

            rect3.height *= 0.63f;
            rect4.y       = rect3.yMax + 17f;
            rect4.yMax    = rect2.yMax;
            GUI.color     = new Color(1f, 1f, 1f, 0.5f);
            Widgets.DrawLineHorizontal(0f, (rect3.yMax + rect4.y) / 2f, rect.width);
            GUI.color = Color.white;
            if (Prefs.DevMode && !pawn.Dead)
            {
                DrawDebugOptions(new Rect(5f, 5f, rect.width, 22f), pawn);
            }
            DrawRelationsAndOpinions(rect3, pawn);
            InteractionCardUtility.DrawInteractionsLog(rect4, pawn, Find.PlayLog.AllEntries, 12);
            GUI.EndGroup();
        }
Exemple #3
0
        public static void DrawSocialCard(Rect rect, Pawn pawn)
        {
            GUI.BeginGroup(rect);
            Text.Font = GameFont.Small;
            Rect rect2 = new Rect(0f, 20f, rect.width, (float)(rect.height - 20.0));
            Rect rect3 = rect2.ContractedBy(10f);
            Rect rect4 = rect3;
            Rect rect5 = rect3;

            rect4.height *= 0.63f;
            rect5.y       = (float)(rect4.yMax + 17.0);
            rect5.yMax    = rect3.yMax;
            GUI.color     = new Color(1f, 1f, 1f, 0.5f);
            Widgets.DrawLineHorizontal(0f, (float)((rect4.yMax + rect5.y) / 2.0), rect.width);
            GUI.color = Color.white;
            if (Prefs.DevMode)
            {
                Rect rect6 = new Rect(5f, 5f, rect.width, 22f);
                SocialCardUtility.DrawDebugOptions(rect6, pawn);
            }
            SocialCardUtility.DrawRelationsAndOpinions(rect4, pawn);
            InteractionCardUtility.DrawInteractionsLog(rect5, pawn, Find.PlayLog.AllEntries, 12);
            GUI.EndGroup();
        }