Beispiel #1
0
        public override void DoCell(Rect rect, Pawn pawn, PawnTable table)
        {
            base.DoCell(rect, pawn, table);

            // Only run once
            if (!mayDrawLordGroups)
            {
                return;
            }
            mayDrawLordGroups = false;

            MainTabUtility.DrawLordGroups(rect, table, pawn);
        }
        public override void DoCell(Rect rect, Pawn pawn, PawnTable table)
        {
            base.DoCell(rect, pawn, table);

            // As this is the first column shown we can watch from here
            // Move accordingly
            if (Multiplayer.IsRunning)
            {
                var compGuest = pawn.CompGuest();
                if (compGuest != null)
                {
                    Multiplayer.guestFields?.Watch(compGuest);
                }
            }

            // Only run once
            if (!mayDrawLordGroups)
            {
                return;
            }
            mayDrawLordGroups = false;

            MainTabUtility.DrawLordGroups(rect, table, pawn);
        }