private void DrawPlayerInfo(IPlayer player)
        {
            var OffsetX      = Hud.Window.Size.Width * OffsetXmultiplier;
            var OffsetY      = Hud.Window.Size.Height * OffsetYmultiplier;
            var portraitRect = player.PortraitUiElement.Rectangle;
            var YPos         = portraitRect.Y + OffsetY;
            var XPos         = portraitRect.X + OffsetX;

            var Layout = PortraitInfoFont.GetTextLayout(GetPlayerInfoText(player));

            PortraitInfoFont.DrawText(Layout, XPos, YPos);
        }
Exemplo n.º 2
0
        private void DrawPlayerInfo(IPlayer player)
        {
            var portraitRect = player.PortraitUiElement.Rectangle;
            var OffsetX      = portraitRect.Width * OffsetXmultiplier;
            var OffsetY      = portraitRect.Height * OffsetYmultiplier;
            var YPos         = portraitRect.Y + OffsetY;
            var XPos         = portraitRect.X + OffsetX;

            string text = String.Format("{0}: {1:mm\\:ss}",
                                        (player.IsInTown ? isInTown : notInTown),
                                        TimeSpan.FromMilliseconds(TownWatch[player.Index].ElapsedMilliseconds));

            var Layout = PortraitInfoFont.GetTextLayout(text);

            PortraitInfoFont.DrawText(Layout, XPos, YPos);
        }