Ejemplo n.º 1
0
        public ChampionInfo(AIHeroClient hero)
        {
            Hero = hero;
            if (hero.IsEnemy)
            {
                NormalSprite = ImageLoader.CreateRadrarIcon(hero.ChampionName + "_Square_0", System.Drawing.Color.Red);
            }
            else
            {
                NormalSprite = ImageLoader.CreateRadrarIcon(hero.ChampionName + "_Square_0", System.Drawing.Color.GreenYellow);
            }
            SquareSprite    = ImageLoader.GetSprite(hero.ChampionName + "_Square_0");
            HudSprite       = ImageLoader.CreateRadrarIcon(hero.ChampionName + "_Square_0", System.Drawing.Color.DarkGoldenrod, 100);
            MinimapSprite   = ImageLoader.CreateMinimapSprite(hero.ChampionName + "_Square_0");
            LastVisableTime = Game.Time;
            LastVisablePos  = hero.Position;
            PredictedPos    = hero.Position;
            IsJungler       = hero.Spellbook.Spells.Any(spell => spell.Name.ToLower().Contains("smite"));

            StartRecallTime  = 0;
            AbortRecallTime  = 0;
            FinishRecallTime = 0;
        }
Ejemplo n.º 2
0
        public void LoadOKTW()
        {
            Flash = ImageLoader.CreateSummonerSprite("Flash");
            Heal = ImageLoader.CreateSummonerSprite("Heal");
            Exhaust = ImageLoader.CreateSummonerSprite("Exhaust");
            Teleport = ImageLoader.CreateSummonerSprite("Teleport");
            Ignite = ImageLoader.CreateSummonerSprite("Ignite");
            Barrier = ImageLoader.CreateSummonerSprite("Barrier");
            Clairvoyance = ImageLoader.CreateSummonerSprite("Clairvoyance");
            Cleanse = ImageLoader.CreateSummonerSprite("Cleanse");
            Ghost = ImageLoader.CreateSummonerSprite("Ghost");
            Smite = ImageLoader.CreateSummonerSprite("Smite");
            Ultimate = ImageLoader.CreateSummonerSprite("r");
            Pink = ImageLoader.CreateSummonerSprite("pink");
            Pink.Scale = new Vector2(0.15f, 0.15f);
            Ward = ImageLoader.CreateSummonerSprite("ward");
            Ward.Scale = new Vector2(0.15f, 0.15f);
            PinkMM = ImageLoader.CreateSummonerSprite("WT_Pink");
            WardMM = ImageLoader.CreateSummonerSprite("WT_Green");

            Not = ImageLoader.GetSprite("not");

            FlashS = ImageLoader.GetSprite("Flash");
            HealS = ImageLoader.GetSprite("Heal");
            ExhaustS = ImageLoader.GetSprite("Exhaust");
            TeleportS = ImageLoader.GetSprite("Teleport");
            IgniteS = ImageLoader.GetSprite("Ignite");
            BarrierS = ImageLoader.GetSprite("Barrier");
            ClairvoyanceS = ImageLoader.GetSprite("Clairvoyance");
            CleanseS = ImageLoader.GetSprite("Cleanse");
            GhostS = ImageLoader.GetSprite("Ghost");
            SmiteS = ImageLoader.GetSprite("Smite");
            UltimateS = ImageLoader.GetSprite("r");
            Isready = ImageLoader.GetSprite("isready");
            Lost = ImageLoader.GetSprite("lost");
            Config.SubMenu("About OKTW©").AddItem(new MenuItem("logo", "Intro logo OKTW").SetValue(true));

            if (Config.Item("logo").GetValue<bool>())
            {
                Intro = new Render.Sprite(LoadImg("intro"), new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
                Intro.Add(0);
                Intro.OnDraw();
            }

            Utility.DelayAction.Add(7000, () => Intro.Remove());

            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Hud").AddItem(new MenuItem("championInfo", "Show enemy avatars").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Hud").AddItem(new MenuItem("championInfoHD", "Full HD screen size").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Hud").AddItem(new MenuItem("posX", "posX").SetValue(new Slider(839, 1000, 0)));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Hud").AddItem(new MenuItem("posY", "posY").SetValue(new Slider(591, 1000, 0)));

            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").AddItem(new MenuItem("Notification", "Notifications").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Awareness radar").AddItem(new MenuItem("ScreenRadar", "Enable").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Awareness radar").AddItem(new MenuItem("ScreenRadarEnemy", "Only enemy").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Awareness radar").AddItem(new MenuItem("ScreenRadarJungler", "Only jungler").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").AddItem(new MenuItem("HpBar", "Damage indicators").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Spell tracker").AddItem(new MenuItem("SpellTrackerEnemy", "Enemy").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Spell tracker").AddItem(new MenuItem("SpellTrackerAlly", "Ally").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Spell tracker").AddItem(new MenuItem("SpellTrackerMe", "Me").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").SubMenu("Spell tracker").AddItem(new MenuItem("SpellTrackerLvl", "Show spell lvl (can drop fps)").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").AddItem(new MenuItem("ShowClicks", "Show enemy clicks").SetValue(true));
            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Screen").AddItem(new MenuItem("showWards", "Show hidden objects, wards").SetValue(true));

            Config.SubMenu("Utility, Draws OKTW©").SubMenu("Minimap").AddItem(new MenuItem("minimap", "Mini-map hack").SetValue(true));

            Config.SubMenu("Utility, Draws OKTW©").AddItem(new MenuItem("disableDraws", "DISABLE UTILITY DRAWS").SetValue(false));

            Tahoma13B = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 14, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            Tahoma13 = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 14, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            TextBold = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Impact", Height = 30, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            HudLevel = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 17, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            HudLevel2 = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 12, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            RecFont = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 12, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            HudCd = new Font(Drawing.Direct3DDevice, new FontDescription
            { FaceName = "Tahoma", Height = 11, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased });

            Drawing.OnEndScene += Drawing_OnEndScene;
            Game.OnUpdate += Game_OnUpdate;
        }