Example #1
0
        private void OnDraw(object sender, EventArgs eventArgs)
        {
            if (!settings.AlwaysEnabled && !settings.ShowKey)
            {
                return;
            }

            foreach (var wave in waveManager.CreepWaves.ToList().Where(x => x.IsSpawned && !x.IsVisible))
            {
                var text = settings.ShowCreepsCount ? wave.Creeps.Count.ToString() : "C";

                if (settings.ShowOnMinimap)
                {
                    renderer.DrawText(
                        wave.PredictedPosition.WorldToMinimap() - new Vector2(1, 15),
                        text,
                        Color.DarkOrange,
                        16,
                        "Arial");
                }

                if (settings.ShowOnMap)
                {
                    var position = Drawing.WorldToScreen(wave.PredictedPosition);
                    if (position.IsZero)
                    {
                        continue;
                    }

                    renderer.DrawText(position, text, Color.DarkOrange, 25, "Arial");
                }
            }
        }
Example #2
0
 private void OnMinimapDraw(object sender, EventArgs e)
 {
     foreach (var ward in units.OfType <IWard>().ToList())
     {
         if (ward.ShowTexture)
         {
             render.DrawText(ward.Position.WorldToMinimap() - new Vector2(8, 15), "*", ward.Color, 30, "Arial");
         }
     }
 }
Example #3
0
        private void DrawShadowText(
            IRendererManager Render,
            Vector2 pos,
            string text,
            System.Drawing.Color color,
            float size,
            string font)
        {
            Render.DrawText(
                pos + 2,
                text,
                System.Drawing.Color.Black,
                size,
                font);

            Render.DrawText(
                pos,
                text,
                color,
                size,
                font);
        }
Example #4
0
 private void OnMinimapDraw(object sender, EventArgs e)
 {
     foreach (var ward in units.OfType <IWard>())
     {
         if (ward.ShowTexture)
         {
             render.DrawText(
                 ward.Position.WorldToMinimap() - new Vector2(8, 15),
                 "*",
                 ward is SentryWard ? System.Drawing.Color.Blue : System.Drawing.Color.Yellow,
                 30,
                 "Arial");
         }
     }
 }
Example #5
0
 private void Text(string text, Vector2 pos, System.Drawing.Color color)
 {
     renderer.DrawText(pos, text, color, 13f, "Arial");
 }