Esempio n. 1
0
        public void Draw(IEnumerable <Player> players, ITextRenderer textRenderer)
        {
            float yPos = 3.0f;

            textRenderer.DrawInScreen($"           Kills      Deaths", new Vector3(-7.0f, yPos, 1.0f), new Vector3(1.0f, 10f, 0.0f), 0.5f);
            yPos -= 0.5f;
            foreach (var p in players)
            {
                textRenderer.DrawInScreen($"Player{p.ID}    {p.KillCount}            {p.DeathCount}", new Vector3(-7.0f, yPos, 1.0f), new Vector3(1.0f, 1.0f, 0.0f), 0.5f);
                yPos -= 0.5f;
            }
        }