public void Draw(RenderTarget target, RenderStates states)
        {
            // Пишем буквы (по горизонтали)
            for (int i = 0; i < width; i++)
            {
                char symbol = (char)(65 + i);
                text.DisplayedString = symbol.ToString();
                // Сверху
                text.Position = new Vector2f((float)(i * Utilities.GetInstance().TILE_SIZE +
                                                     Utilities.GetInstance().TILE_SIZE / 2.0), (float)(Utilities.GetInstance().TILE_SIZE / 6.0));
                Utilities.CenterOrigin(text);
                text.Draw(target, states);
            }

            // Пишем цифры (по вертикали)
            for (int i = 0; i < height; i++)
            {
                int symbol = i + 1;
                text.DisplayedString = symbol.ToString();
                // Слева
                text.Position = new Vector2f((float)(Utilities.GetInstance().TILE_SIZE / 6.0),
                                             (float)(i * Utilities.GetInstance().TILE_SIZE + Utilities.GetInstance().TILE_SIZE / 2.0));
                Utilities.CenterOrigin(text);
                text.Draw(target, states);
            }
        }
Example #2
0
        private static void Drawing_OnEndScene(EventArgs args)
        {
            if (Core.GameTickCount - Changed < 3000)
            {
                Recallbar.RecallBarDraw(Player.Instance, null);
            }

            foreach (var tp in DetectedTeleports.Where(t => t.Sender != null && menu.CheckBoxValue(t.Sender.Name())))
            {
                var timer = (tp.TimeLeft / 1000).ToString("F1");
                if (tp.Sender != null)
                {
                    var c = Color.GreenYellow;
                    if (tp.Sender.IsEnemy)
                    {
                        c = Color.Red;
                    }
                    trackettext.Draw($"{tp.Sender.Name()}: {tp.Args.Type} {timer}", c, tp.Sender.ServerPosition.WorldToScreen());
                }
                if (tp.EndTarget != null)
                {
                    var c = Color.GreenYellow;
                    if (tp.EndTarget.IsEnemy)
                    {
                        c = Color.Red;
                    }
                    trackettext.Draw($"{tp.Sender.Name()}: {tp.Args.Type} {timer}", c, tp.EndTarget.ServerPosition.WorldToScreen());
                }

                if (menu.CheckBoxValue("draw"))
                {
                    Recallbar.RecallBarDraw(tp.Sender, tp);
                }
            }
        }
Example #3
0
        public override void Draw()
        {
            if (Data.GameMode == Mode.Normal)
            {
                var names = new[] { "白", "緑" };
                resultText.Draw($"{names[Data.Winner]}DICEの勝ち!", new Vector2D(100, 100), Palette.White);

                resultDices[Data.Winner].DrawAt(Window.Center);
            }
            else
            {
                string name;
                if (Data.Winner == 0)
                {
                    name = "DICEの勝ち!";

                    resultDices[0].DrawAt(Window.Center);
                }
                else
                {
                    name = "与謝野の勝ち!";

                    yosano.DrawAt(Window.Center + new Vector2D(0, 100));
                }

                resultText.Draw(name, new Vector2D(100, 100), Palette.White);
            }

            resultText.Draw("スペースキー : 再開", new Vector2D(100, 125), Palette.White);
            resultText.Draw("エスケープキー : 終了", new Vector2D(100, 150), Palette.Lightgrey);
        }
        public override void Draw()
        {
            text.Draw("与謝野モード突入!! HPを入力!", new Vector2D(200, 140), Palette.White);
            text.Draw("簡単:~100, 普通:100~500, 難しい:500~", new Vector2D(100, 340), Palette.White);

            hpText.Draw($"{yosanoHp}", Window.Center, Palette.Yellowgreen);
        }
Example #5
0
        public override void Draw()
        {
            gameField.DrawFrame(Palette.White);

            var statusOrigin = new[]
            {
                new Vector2D(530, 10),
                new Vector2D(10, 10)
            };

            for (int i = 0; i < 2; i++)
            {
                var player = players[i];

                player.Draw();


                foreach (var bullet in player.Bullets)
                {
                    bullet.Draw();
                }

                gameText.Draw($"HP : {player.Hp}", statusOrigin[i], player.HpColor());
                gameText.Draw($"ShotSize: {player.ShotSize}", statusOrigin[i] + (0, 30), Palette.White);
            }

            item.Draw();

            gameText.Draw(Data.GameMode.ToName(), new Vector2D(280, 10), Palette.Darkgray);
        }
Example #6
0
 public void Draw(Rectangle cursorLocation, bool click)
 {
     if (StaticSprite.Hitbox.Intersects(cursorLocation))
     {
         HoverSprite.Draw();
         Text.Draw();
         if (click)
         {
             OnClick?.Invoke(null, new ButtonEventArgs());
             GameData.Instance.CurrentSkin.Click.Play();
         }
         if (!MouseIsOver)
         {
             MouseIsOver = true;
             OnMouseEnter?.Invoke(null, new ButtonEventArgs());
             GameData.Instance.CurrentSkin.MouseOver.Play();
         }
     }
     else
     {
         MouseIsOver = false;
         StaticSprite.Draw();
         Text.Draw();
     }
 }
Example #7
0
        internal static void Drawing_OnDraw(EventArgs args)
        {
            if (DrawingsMenu["draw"].Cast <CheckBox>().CurrentValue == false)
            {
                return;
            }

            if (DrawingsMenu["drawTxt"].Cast <CheckBox>().CurrentValue)
            {
                if (Program.RootMenu["active"].Cast <CheckBox>().CurrentValue || Program.RootMenu["activekey"].Cast <KeyBind>().CurrentValue)
                {
                    SmiteStatus.Position  = Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(40, -40);
                    SmiteStatus.Color     = Color1.CadetBlue;
                    SmiteStatus.TextValue = "Smite : ON";
                    SmiteStatus.Draw();
                }
                else
                {
                    SmiteStatus.Position  = Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(40, -40);
                    SmiteStatus.Color     = Color1.DarkRed;
                    SmiteStatus.TextValue = "Smite : OFF";
                    SmiteStatus.Draw();
                }
            }

            if (DrawingsMenu["smite"].Cast <CheckBox>().CurrentValue)
            {
                if (Smite.IsReady())
                {
                    new Circle()
                    {
                        Color = Color1.CadetBlue, Radius = 500f + 20, BorderWidth = 2f
                    }
                }
Example #8
0
        public override void Update()
        {
            if (String.IsNullOrEmpty(text.DisplayedString))
            {
                return;
            }

            var y = charHeight * 2.2f;

            backgroundSprite.Position = new Vector2f(0, Program.Window.Size.Y - y);
            backgroundSprite.Scale    = new Vector2f(Program.Window.Size.X, y);
            backgroundSprite.Draw(Program.Window, RenderStates.Default);


            var prev = text.Color;

            text.Position += new Vector2f(1, 1);
            text.Color     = Config.Colors["shadow"];
            text.Draw(Program.Window, RenderStates.Default);

            text.Color     = prev;
            text.Position -= new Vector2f(1, 1);
            text.Position  = new Vector2f((int)(Program.Window.Size.X / 2f - text.GetLocalBounds().Width / 2), Program.Window.Size.Y - charHeight * 2.4f);
            text.Draw(Program.Window, RenderStates.Default);
        }
Example #9
0
        private void DrawSingleRecallBar(float X, float Y, Recall recall)
        {
            int opacity = (int)((recallTrackerMenu["opacity"].Cast <Slider>().CurrentValue / 100f) * 255);

            DrawingHelper.DrawRectangle(X, Y, recallbarWidth, recallbarHeight, Color.FromArgb(opacity, Color.Black));
            DrawingHelper.DrawRectangle(X + 1, Y + 1, recallbarWidth - 2, recallbarHeight - 2, Color.FromArgb(opacity, Color.Black));
            DrawingHelper.DrawRectangle(X + 2, Y + 2, recallbarWidth - 4, recallbarHeight - 4, Color.FromArgb(opacity, Color.Gray));

            if (!recall.IsAborted)
            {
                DrawingHelper.DrawFilledRectangle(X + 2, Y + 2, (recallbarWidth - 4) * recall.Percent(), recallbarHeight - 4, Color.FromArgb(opacity, DrawingHelper.Interpolate(Color.Red, Color.LawnGreen, recall.Percent())));
            }
            else
            {
                DrawingHelper.DrawFilledRectangle(X + 2, Y + 2, (recallbarWidth - 4) * recall.Percent(), recallbarHeight - 4, Color.FromArgb(opacity, Color.SlateGray));
            }

            Text.TextValue = recall.Name;
            Text.Position  = new Vector2(X + recallbarWidth + 3, Y);
            Text.Draw();

            Text.Position  = new Vector2(X + recallbarWidth + 6 + Text.Bounding.Width, Y);
            Text.TextValue = "(" + Math.Round(recall.HealthPercent) + "%)";
            Text.Color     = DrawingHelper.Interpolate(Color.Red, Color.LawnGreen, recall.HealthPercent / 100f);
            Text.Draw();

            Text.Color = Color.AntiqueWhite;
        }
Example #10
0
        private void Drawing_OnEndScene(EventArgs args)
        {
            if (Loading.IsLoadingComplete)
            {
                if (HaxorMenu.haxorMenu.Get <CheckBox>("hmEnemyExp").CurrentValue)
                {
                    foreach (var item in EntityManager.Heroes.Enemies.Where(o => o.IsHPBarRendered))
                    {
                        int expPerc = (int)Math.Ceiling(item.Experience.XPPercentage);

                        text.Draw(expPerc.ToString() + "%", Color.Gold, GetExpLocation(item));
                    }
                }

                if (HaxorMenu.haxorMenu.Get <CheckBox>("hmAllyExp").CurrentValue)
                {
                    foreach (var item in EntityManager.Heroes.Allies.Where(o => o.IsHPBarRendered))
                    {
                        int expPerc = (int)Math.Ceiling(item.Experience.XPPercentage);

                        text.Draw(expPerc.ToString() + "%", Color.Gold, GetExpLocation(item));
                    }
                }
            }
        }
Example #11
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 protected override void Draw(GameTime gameTime)
 {
     GraphicsDevice.Clear(Color.Gray);
     text.Draw(new Vector2(5, 5), SLConstant.Help + "\n" + frameinfo.FPS.ToString() + " FPS", Color.PeachPuff);
     text.Draw(new Vector2(5, 70), "Unicode Text: ¦«¦²¦µ¦¶¦·¦¸¦°", Color.Red, 10f * (float)SLConstant.Rad_p_Deg, Vector2.Zero, Vector2.One);
     //model.Draw();
     vsc.BatchDraw(GraphicsDevice);
 }
Example #12
0
        public override void Draw()
        {
            titleText.Draw("ゲームモードを選んでください", new Vector2D(120, 50), Palette.White);
            titleText.Draw("モード変更 [Space] , 開始 [Enter]", new Vector2D(100, 380), Palette.Gray);
            titleText.Draw("二人用", new Vector2D(280, 420), Palette.White);

            titleText.Draw(Data.GameMode.ToName(), new Vector2D(200, 80), Palette.White);

            modeImages[(int)Data.GameMode].DrawAt(Window.Center);
        }
        private void Drawing_OnEndScene(EventArgs args)
        {
            if (kb.CurrentValue)
            {
                Drawing.DrawCircle(Game.CursorPos, range.CurrentValue, Color.BurlyWood);
                foreach (GameObject obj in nearbyObjects)
                {
                    Drawing.DrawCircle(obj.Position, 40, Color.Aqua);
                }

                if (nearbyObjects.Any())
                {
                    Line.DrawLine(Color.Red, Game.CursorPos.WorldToScreen(),
                                  nearbyObjects.First().Position.WorldToScreen());
                }
            }

            if (selectedObject == null)
            {
                return;
            }
            display.Draw(proper, Color.Chartreuse, 10, 10);
            display.Draw(val, Color.Chartreuse, 230, 10);

            display.Draw(proper2, Color.Chartreuse, 400, 10);
            display.Draw(val2, Color.Chartreuse, 620, 10);

            display.Draw(proper3, Color.Chartreuse, 800, 10);
            display.Draw(val3, Color.Chartreuse, 1020, 10);

            display.Draw(proper4, Color.Chartreuse, 1100, 60);
            display.Draw(val4, Color.Chartreuse, 1320, 60);
        }
Example #14
0
 public void Draw()
 {
     frameText.Color    = Color.Black;
     frameText.Position = new Vector2f(frameText.Position.X + 1, frameText.Position.Y + 1);
     frameText.Draw(Program.Window, RenderStates.Default);
     frameText.Color    = Color.White;
     frameText.Position = new Vector2f(frameText.Position.X - 1, frameText.Position.Y - 1);
     frameText.Draw(Program.Window, RenderStates.Default);
     fpsText.Color    = Color.Black;
     fpsText.Position = new Vector2f(fpsText.Position.X + 1, fpsText.Position.Y + 1);
     fpsText.Draw(Program.Window, RenderStates.Default);
     fpsText.Color    = Color.White;
     fpsText.Position = new Vector2f(fpsText.Position.X - 1, fpsText.Position.Y - 1);
     fpsText.Draw(Program.Window, RenderStates.Default);
 }
Example #15
0
        public static void OnDamageDraw(EventArgs args)
        {
            var disable    = GameMenu.DrawMenu["disable"].Cast <CheckBox>().CurrentValue;
            var drawDamage = GameMenu.DrawMenu["drawDamage"].Cast <CheckBox>().CurrentValue;

            if (disable)
            {
                return;
            }

            if (drawDamage)
            {
                foreach (var ai in EntityManager.Heroes.Enemies)
                {
                    if (ai.IsValidTarget())
                    {
                        var drawn = 0;
                        if (Modes.Combo.ComboDamage(ai) >= ai.Health && drawn == 0)
                        {
                            KillableText.Position  = Drawing.WorldToScreen(ai.Position) - new Vector2(40, -40);
                            KillableText.Color     = Color.Firebrick;
                            KillableText.TextValue = "100% Killable";
                            KillableText.Draw();
                            drawn = 1;
                        }

                        if (Modes.Combo.ComboDamage(ai) + 300 >= ai.Health && drawn == 0)
                        {
                            KillableText.Position  = Drawing.WorldToScreen(ai.Position) - new Vector2(40, -40);
                            KillableText.Color     = Color.AntiqueWhite;
                            KillableText.TextValue = "50% Killable - HP Left: " +
                                                     (Math.Abs((int)ai.Health - (int)Modes.Combo.ComboDamage(ai)));
                            KillableText.Draw();
                            drawn = 1;
                        }

                        if (Modes.Combo.ComboDamage(ai) < ai.Health && drawn == 0)
                        {
                            KillableText.Position  = Drawing.WorldToScreen(ai.Position) - new Vector2(40, -40);
                            KillableText.Color     = Color.ForestGreen;
                            KillableText.TextValue = "Not Killable - HP Left: " +
                                                     (Math.Abs((int)ai.Health - (int)Modes.Combo.ComboDamage(ai)));
                            KillableText.Draw();
                        }
                    }
                }
            }
        }
Example #16
0
        /// <summary>
        /// Draw Stimuli
        /// </summary>
        protected override void Draw()
        {
            GraphicsDevice.Clear(ex.Exdesign.bgcolor);

            if (GO_OVER)
            {
                bars[ex.Flow.SliceCount].Draw(GraphicsDevice);
                ex.Flow.Info = ex.Flow.TrialCount.ToString() + " / " + ex.Exdesign.trial.ToString() + " Trials\n" +
                               ex.Flow.StiCount.ToString() + " / " + ex.Exdesign.stimuli[0].ToString() + " Stimuli";
                text.Draw(ex.Flow.Info);
            }
            else
            {
                text.Draw();
            }
        }
Example #17
0
 public static void DrawText(RenderTarget target, Color color, string text, Vector2f position)
 {
     _text.Position        = position;
     _text.Color           = color;
     _text.DisplayedString = text;
     _text.Draw(target, RenderStates.Default);
 }
Example #18
0
        private static void DrawLine(Obj_AI_Base unit)
        {
            var damage = _damageToUnit(unit);

            if (damage <= 0)
            {
                return;
            }

            var barPos = unit.HPBarPosition;

            var percentHealthAfterDamage = Math.Max(0, unit.TotalShieldHealth() - damage) /
                                           (unit.MaxHealth + unit.AllShield + unit.AttackShield + unit.MagicShield);
            var yPos = barPos.Y + _yOffset;
            var currentHealthPercentage = unit.TotalShieldHealth() /
                                          (unit.MaxHealth + unit.AllShield + unit.AttackShield + unit.MagicShield);

            var startPoint = barPos.X + _xOffset + percentHealthAfterDamage * _width;
            var endPoint   = barPos.X + _xOffset + currentHealthPercentage * _width;


            Drawing.DrawLine(startPoint, yPos, endPoint, yPos, _height, Color.MediumVioletRed);

            if (damage > unit.Health)
            {
                Text.X         = (int)barPos.X + _xOffset + 130;
                Text.Y         = (int)barPos.Y + _xOffset - 13;
                Text.TextValue = "KILLABLE: " + (unit.Health - damage);
                Text.Draw();
            }
            Drawing.DrawLine(startPoint, yPos, startPoint, yPos + _height, 2, Color.Lime);
        }
Example #19
0
 public static void Draw(RenderWindow Window)
 {
     Menu.Draw(Window, RenderStates.Default);
     Won.Draw(Window, RenderStates.Default);
     Button.Draw(Window, RenderStates.Default);
     okButton.Draw(Window, RenderStates.Default);
 }
Example #20
0
        public override void Draw()
        {
            foreach (var obj in ObjectManager.Get <Obj_AI_Base>().Where(o => o.IsValidTarget() && o.RendCount() > 0 && DrawMenu.CheckBoxValue("EDMG")))
            {
                float x = obj.HPBarPosition.X;
                float y = obj.HPBarPosition.Y;
                Edmg.Color = System.Drawing.Color.White;
                if (obj is Obj_AI_Minion)
                {
                    x = obj.HPBarPosition.X + 110;
                    y = obj.HPBarPosition.Y - 20;
                }
                if (obj.EKill())
                {
                    Edmg.Color = System.Drawing.Color.Red;
                }
                Edmg.TextValue = (int)obj.EDamage(obj.RendCount()) + " / " + (int)obj.TotalShieldHealth();
                Edmg.Position  = new Vector2(x, y);
                Edmg.Draw();
            }

            foreach (var spell in SpellList.Where(s => DrawMenu.CheckBoxValue(s.Slot)))
            {
                Circle.Draw(spell.IsReady() ? SharpDX.Color.Chartreuse : SharpDX.Color.OrangeRed, spell.Range, user);
            }
        }
Example #21
0
        public override void Draw(SpriteBatch batch)
        {
            Base.Draw(batch);

            playrandom.Draw(batch);
            repeat.Draw(batch);
            stop.Draw(batch);
            pause.Draw(batch);
            play.Draw(batch);

            string np = string.Format("Now playing: {0}", NowPlaying ?? "nothing");

            nowPlaying.text     = np;
            nowPlaying.position = new Vector2(1366 - (nowPlaying.useFont.MeasureString(np).X + 15), 768 - 50);
            nowPlaying.Draw(batch);

            if (MediaPlayer.State != MediaState.Stopped)
            {
                download.np    = NowPlaying;
                download.music = music;
                download.rect  = new Rectangle(1366 - ((int)nowPlaying.useFont.MeasureString(np).X + 30 + 180), 768 - 65, 180, 50);
                download.Draw(batch);

                if (MouseTouching.RectWithIn(download.rect))
                {
                    message.Draw(batch);
                }
            }

            base.Draw(batch);
        }
Example #22
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            try
            {
                if (Game.MapId != GameMapId.HowlingAbyss)
                {
                    Logger.Send("AramBuddy only supports Howling Abyss. " + Game.MapId + " will never be supported", Logger.LogLevel.Error);
                    return;
                }

                textsize = Drawing.Width <= 1280 || Drawing.Height <= 720 ? 10F : 40F;
                text     = new Text("YOUR ORBWALKER IS DISABLED", new Font("Euphemia", textsize, FontStyle.Bold))
                {
                    Color = System.Drawing.Color.White, Position = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f)
                };

                Chat.OnClientSideMessage += delegate(ChatClientSideMessageEventArgs eventArgs)
                {
                    if (eventArgs.Message.ToLower().Contains("portaio") && !CrashAIODetected)
                    {
                        var warnmsg = "AramBuddy does not work with CrashAIO\nDisable CrashAIO in order to use AramBuddy !";
                        Chat.Print(warnmsg);
                        Logger.Send(warnmsg, Logger.LogLevel.Warn);
                        Notifications.Show(new SimpleNotification("AramBuddy", warnmsg), 20000);
                        Drawing.OnEndScene += delegate
                        {
                            text.TextValue = warnmsg;
                            text.Position  = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f);
                            text.Draw();
                        };
                        CrashAIODetected = true;
                    }
                };

                // Creates The Menu
                CreateMenu();

                // Checks for updates
                //CheckVersion.Init();

                // Inits KappaEvade
                KappaEvade.Init();

                // Initialize the AutoShop.
                AutoShop.Setup.Init();

                Timer                    = Game.Time;
                TimeToStart              = new Random().Next(10000, 30000) + Game.Ping;
                Game.OnTick             += Game_OnTick;
                Events.OnGameEnd        += Events_OnGameEnd;
                Player.OnPostIssueOrder += Player_OnPostIssueOrder;
                Drawing.OnEndScene      += Drawing_OnEndScene;

                Logger.Send("Starting after: " + (TimeToStart / 1000).ToString("F1") + " Second/s", Logger.LogLevel.Event);
            }
            catch (Exception ex)
            {
                Logger.Send("Program Error At Loading_OnLoadingComplete", ex, Logger.LogLevel.Error);
            }
        }
Example #23
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (Rect.Contains(Mouse.GetState().X, Mouse.GetState().Y))
     {
         Text.Draw(spriteBatch);
     }
 }
Example #24
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            if (Spells.Q.IsLearned && Extension.GetCheckBoxValue(Meniu.Drawing, "draw.q"))
            {
                Circle.Draw(Color.MediumAquamarine, Spells.Q.Range, ObjectManager.Player.ServerPosition);
            }
            if (Spells.E.IsLearned && Extension.GetCheckBoxValue(Meniu.Drawing, "draw.e"))
            {
                Circle.Draw(Color.GreenYellow, Spells.E.Range, ObjectManager.Player.ServerPosition);
            }
            if (Extension.GetCheckBoxValue(Meniu.Drawing, "draw.r.a"))
            {
                foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => x.IsHPBarRendered && Prediction.Health.GetPrediction(x, Spells.R.CastDelay + Game.Ping) <= Spells.GetDamage(x, SpellSlot.R)))
                {
                    Text = new Text("", new System.Drawing.Font("calibri", 16, System.Drawing.FontStyle.Regular));
                    string txt = enemy.ChampionName + " " + "Is Killable with R";
                    Text.X = 950;
                    Text.Y = 650;
                    Text.TextValue = txt;
                    Text.Draw();
                }
            }
            DamageIndicator.HealthbarEnabled = Extension.GetCheckBoxValue(Meniu.Drawing, "indicator");
            DamageIndicator.PercentEnabled = Extension.GetCheckBoxValue(Meniu.Drawing, "percent.indicator");

        }
Example #25
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            _spriteBatch.Begin();

            // if (State == GameState.Intro) particleEngine.Draw(_spriteBatch);


            //Draw the colorgradient background. Might want to change this to a big image??
            for (int i = 0; i < ScreenSize.X; i++)
            {
                _background.Position = new Vector2(1 * i, 0);
                _background.Draw(_spriteBatch);
            }
            if (State != GameState.Intro)
            {
                for (int i = 0; i < ScreenSize.X / 64; i++)
                {
                    _spriteBatch.Draw(texture: _blackbottom, position: new Vector2(i * _blackbottom.Width, GroundLevel + 10), drawRectangle: null, sourceRectangle: null, origin: new Vector2(0, 0), rotation: 0f, scale: new Vector2(1, 5));
                }
            }

            //HERE WE DRAW ALL SPRITES CONTAINED IN THE LISTS IN OUR CURRENT LEVEL
            Level.Draw(_spriteBatch);

            DrawHUD();
            Text.Draw(_spriteBatch);
            _spriteBatch.End();
            base.Draw(gameTime);
        }
Example #26
0
        private static void OnDraw(EventArgs args)
        {
            MenuSliderButton drawTarget = mainMenu.GetValue <MenuSliderButton>("drawTarget");

            if (drawTarget.Enabled)
            {
                AIHeroClient target = TargetSelector.GetTarget(drawTarget.Value);
                if (target != null)
                {
                    Circle.DrawCircle(target.Position, target.BoundingRadius + 50, Color.Yellow, 2);
                }
            }

            if (mainMenu.GetValue <MenuBool>("drawW").Enabled&& (W.IsReady() || !mainMenu.GetValue <MenuBool>("drawWOE").Enabled))
            {
                Circle.DrawCircle(Player.Position, W.Range, Color.White, 2);
            }

            if (Orbwalker.ActiveMode == OrbwalkerMode.LaneClear && mainMenu.GetValue <MenuBool>("drawPanic").Enabled&& mainMenu.GetValue <MenuKeyBind>("panicClear").Active)
            {
                Drawing.WorldToScreen(Game.CursorPos, out Vector2 mouse);
                status.X = (int)mouse.X;
                status.Y = (int)mouse.Y - 20;
                status.Draw();
            }

            if (mainMenu.GetValue <MenuBool>("drawE").Enabled&& mainMenu.GetValue <MenuKeyBind>("manualE").Active)
            {
                Drawing.WorldToScreen(Player.Position, out Vector2 pos);
                statusE.X = (int)pos.X;
                statusE.Y = (int)pos.Y + 20;
                statusE.Draw();
            }
        }
Example #27
0
        private static void Drawing_OnEndScene(EventArgs args)
        {
            if (!Recalls.Any() && !Menu["alwaysDrawFrame"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

            int x = (int)((Drawing.Width * 0.846875) + Menu["recallX"].Cast <Slider>().CurrentValue);
            int y = (int)(Drawing.Height * 0.5555555555555556) + Menu["recallY"].Cast <Slider>().CurrentValue;

            TopSprite.Draw(new Vector2(x + 1, y));
            int bonus = 0;

            foreach (var recall in Recalls.ToList())
            {
                BackSprite.Draw(new Vector2(x, y + 18 + bonus));
                Text.Draw(Menu["drawPlayerNames"].Cast <CheckBox>().CurrentValue ? recall.Unit.Name.Truncate(10) : recall.Unit.ChampionName.Truncate(10), Color.White, x + 15, y + bonus + 27);
                Text.Draw(recall.PercentComplete() + "%", Color.White, new Vector2(x + 258, y + bonus + 26));
                Line.DrawLine(Color.White, 10, new Vector2[] { new Vector2(x + 80, y + bonus + 33), new Vector2(x + 250, y + bonus + 33) });
                Line.DrawLine(recall.IsAborted ? Color.Orange : BarColour(recall.PercentComplete()), 10, new Vector2[] { new Vector2(x + 80, y + bonus + 33), new Vector2(x + 80 + (170 * (recall.PercentComplete() / 100)), y + bonus + 33) });
                bonus += 31;

                if (recall.ExpireTime < Environment.TickCount && Recalls.Contains(recall))
                {
                    Recalls.Remove(recall);
                }
            }

            BottomSprite.Draw(new Vector2(x + 1, y + bonus + 18));
        }
        protected override void DrawScreen(SpriteBatch batch)
        {
            pauseTitle.Draw(batch);

            exitGameButton.Draw(batch);
            continueButton.Draw(batch);
        }
Example #29
0
 private static void OnDraw(EventArgs args)
 {
     if (Player.Instance.IsDead)
     {
         return;
     }
     if (Config.DrawSmiteRange)
     {
         Circle.Draw(Color.Gold, SpellManager.Smite.Range, Player.Instance.Position);
     }
     if (Config.DrawSmiteStatus)
     {
         var enabled = Config.SmiteEnabled || Config.SmiteEnabledToggle;
         Text.Position  = Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(40, -60);
         Text.Color     = enabled ? FontColor.LightSeaGreen : FontColor.DarkRed;
         Text.TextValue = enabled ? "Smite: ENABLED" : "Smite: disabled";
         Text.Draw();
     }
     if (Config.DrawSmiteable)
     {
         var monsters =
             EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, SpellManager.Smite.Range + 500.0f)
             .Where(e => !e.IsDead && e.Health > 0 && !e.IsInvulnerable && e.IsVisible && e.Health < Damages.SmiteDmgMonster(e) && Util.MonstersNames.Contains(e.BaseSkinName));
         foreach (var monster in monsters)
         {
             Circle.Draw(Color.Red, monster.BoundingRadius, monster.Position);
         }
     }
 }
Example #30
0
        private void DrawFailInfo()
        {
            try
            {
                Text StatusText = new Text("", new Font("Euphemia", 10F, FontStyle.Bold))
                {
                    Color = Color.Red
                };

                if (TargetSelector.SelectedTarget == null || !TargetSelector.SelectedTarget.IsValid)
                {
                    StatusText.TextValue = "No Insec Target Selected";
                }
                else if (!SelectionHandler.LastAllyPosValid)
                {
                    StatusText.TextValue = "Invalid Insec Ally";
                }
                else if (!HasResourcesToInsec())
                {
                    StatusText.TextValue = "Not enough Spells for Insec";
                }

                StatusText.Position = Player.Instance.Position.WorldToScreen() -
                                      new Vector2((float)StatusText.Bounding.Width / 2, -50);

                StatusText.Draw();
            }
            catch { }
        }
Example #31
0
        // Draw Combo Kill
        public static void OnDamageDraw(EventArgs args)
        {
            var killableText = new Text("",
            new System.Drawing.Font(System.Drawing.FontFamily.GenericSansSerif, 9, System.Drawing.FontStyle.Bold));
            var disable = DrawMenu["disable"].Cast<CheckBox>().CurrentValue;
            var drawDamage = DrawMenu["drawc"].Cast<CheckBox>().CurrentValue;
            if (disable) return;

            if (drawDamage)
            {
                foreach (var ai in EntityManager.Heroes.Enemies)
                {
                    if (ai.IsValidTarget())
                    {
                        var drawn = 0;
                        if (ComboDamage(ai) >= ai.Health && drawn == 0)
                        {
                            killableText.Position = Drawing.WorldToScreen(ai.Position) - new Vector2(40, -40);
                            killableText.Color = Color.Red;
                            killableText.TextValue = "FULL COMBO TO KILL";
                            killableText.Draw();

                        }

                    }
                }
            }
        }