public static void DrawPawnCard(Pawn pawn, Rect rect)
        {
            Text.Font = GameFont.Small;
            GUI.DrawTexture(new Rect(rect.x, rect.y, 100, 140), PortraitsCache.Get(pawn, new Vector2(100, 140)));
            Rect rect2 = rect;

            rect2.x     += 100;
            rect2.width  = 210;
            rect2.height = 30;
            Widgets.Label(rect2, pawn.Name.ToStringFull);
            rect2.y += 20;
            Widgets.DrawLineHorizontal(rect2.x, rect2.y, 210);

            Text.Font = GameFont.Tiny;
            Rect skillsRect = rect2;

            skillsRect.y     += 10;
            skillsRect.width  = 210;
            skillsRect.height = 24;
            GeoscapeWindow.DrawSkill(pawn.skills.GetSkill(SkillDefOf.Social), skillsRect);
            skillsRect.y += 30;
            GeoscapeWindow.DrawSkill(pawn.skills.GetSkill(SkillDefOf.Intellectual), skillsRect);
            skillsRect.y += 35;
            Widgets.Label(skillsRect, pawn.Faction.Name);
            if (pawn.Faction != Faction.OfPlayer)
            {
                skillsRect.y += 20;
                Widgets.Label(skillsRect, $"{pawn.Faction.PlayerRelationKind.GetLabel()}: {pawn.Faction.PlayerGoodwill.ToStringWithSign()}");
            }
        }
Exemplo n.º 2
0
        public AllianceManager(Alliance alliance, GeoscapeWindow window, Pawn negotiator)
        {
            Negotiator = negotiator;

            doCloseX   = true;
            forcePause = true;

            this.alliance  = alliance;
            GeoscapeWindow = window;
        }