Ejemplo n.º 1
0
        public static void Initialize()
        {
            Text = new Font("", new FontDescription
            {
                FaceName        = "Calibri",
                Height          = (Height / 30) * 23,
                OutputPrecision = FontPrecision.Default,
                Quality         = FontQuality.ClearType
            });

            Init.Menu["x"].Cast <Slider>().OnValueChange += OffsetOnOnValueChange;
            Init.Menu["y"].Cast <Slider>().OnValueChange += OffsetOnOnValueChange;
            UpdateOffset(Init.Menu["x"].Cast <Slider>().CurrentValue, Init.Menu["y"].Cast <Slider>().CurrentValue);

            Hud = new Sprite(Texture.FromMemory(
                                 Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.baseulthud, typeof(byte[])),
                                 285,
                                 44, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Bar = new Sprite(Texture.FromMemory(
                                 Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.bar, typeof(byte[])), 260,
                                 66, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Warning = new Sprite(Texture.FromMemory(
                                     Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.warning, typeof(byte[])), 40,
                                     40, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Underline = new Sprite(Texture.FromMemory(
                                       Drawing.Direct3DDevice,
                                       (byte[])new ImageConverter().ConvertTo(Resources.underline_red, typeof(byte[])), 355,
                                       89, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            foreach (var hero in ObjectManager.Get <AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }
            {
                BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
                BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));
                BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
                BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
                BaseUltSpells.Add(new BaseUltSpell("Karthus", SpellSlot.R, 3125, 0, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Ziggs", SpellSlot.Q, 250, 3100, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Lux", SpellSlot.R, 1375, 0, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Xerath", SpellSlot.R, 700, 600, 0, false));
            }
        }
Ejemplo n.º 2
0
        static Vayne()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, 300, SkillShotType.Linear);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Targeted(SpellSlot.E, 650);
            R = new Spell.Active(SpellSlot.R);

            Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
            Orbwalker.OnPreAttack  += Orbwalker_OnPreAttack;
            Spellbook.OnCastSpell  += Spellbook_OnCastSpell;
            Game.OnPostTick        += args => IsPostAttack = false;

            if (EntityManager.Heroes.Enemies.Any(client => client.Hero == Champion.Rengar))
            {
                GameObject.OnCreate += Obj_AI_Base_OnCreate;
            }
            Text = new Text("", new Font("calibri", 15, FontStyle.Regular));

            PermaShow = new PermaShow("Vayne PermaShow", new Vector2(200, 200));
        }
Ejemplo n.º 3
0
        public static void Initialize()
        {
            #region LoadTextures

            HUDTexture = new Sprite(Texture.FromMemory(
                Drawing.Direct3DDevice,
                (byte[])new ImageConverter().ConvertTo(Resources.hud, typeof(byte[])), 153,
                36, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            OnCd = new Sprite(Texture.FromMemory(
                Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.OnCD, typeof(byte[])), 22,
                9, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            IsReady = new Sprite(Texture.FromMemory(
                Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.IsReady, typeof(byte[])), 22,
                9, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            XpBar = new Sprite(Texture.FromMemory(
                Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.xpBar, typeof(byte[])), 104,
                3, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            SummonerCd = new Sprite(Texture.FromMemory(
                            Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.summonercd, typeof(byte[])),
                            13, 13, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            #region SummonerTextures
            foreach (var hero in ObjectManager.Get<AIHeroClient>())
            {
                foreach (var summoner in Summoners)
                {
                    var spell = hero.Spellbook.GetSpell(summoner);
                    var texture = GetSummonerSprite(spell);

                    if (spell.Slot == SpellSlot.Summoner1)
                    {

                        Summoner1.Add(hero.NetworkId, new Sprite(Texture.FromMemory(
                            Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(texture, typeof(byte[])),
                            13,
                            13, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0)));
                    }
                    else
                    {
                        Summoner2.Add(hero.NetworkId, new Sprite(Texture.FromMemory(
                            Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(texture, typeof(byte[])),
                            13,
                            13, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0)));
                    }
                }
            }
            #endregion
            #endregion
            #region SetText

            AbilityText = new Text("", new FontDescription
            {
                FaceName = "Calibri",
                Height = 13,
                OutputPrecision = FontPrecision.Default,
                Quality = FontQuality.ClearType
            });

            #endregion
        }
Ejemplo n.º 4
0
        public static void Initialize()
        {
            Text = new Font("",new FontDescription
            {
                FaceName = "Calibri",
                Height = (Height / 30) * 23,
                OutputPrecision = FontPrecision.Default,
                Quality = FontQuality.ClearType
            });

            Init.Menu["x"].Cast<Slider>().OnValueChange += OffsetOnOnValueChange;
            Init.Menu["y"].Cast<Slider>().OnValueChange += OffsetOnOnValueChange;
            UpdateOffset(Init.Menu["x"].Cast<Slider>().CurrentValue, Init.Menu["y"].Cast<Slider>().CurrentValue);

            Hud = new Sprite(Texture.FromMemory(
                Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.baseulthud, typeof(byte[])),
                285,
                44, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Bar = new Sprite(Texture.FromMemory(
            Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.bar, typeof(byte[])), 260,
            66, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Warning = new Sprite(Texture.FromMemory(
            Drawing.Direct3DDevice, (byte[])new ImageConverter().ConvertTo(Resources.warning, typeof(byte[])), 40,
            40, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Underline = new Sprite(Texture.FromMemory(
            Drawing.Direct3DDevice,
            (byte[])new ImageConverter().ConvertTo(Resources.underline_red, typeof(byte[])), 355,
                89, 0, Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));
            foreach (var hero in ObjectManager.Get<AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }
            {
                BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
                BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));
                BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
                BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
                BaseUltSpells.Add(new BaseUltSpell("Karthus", SpellSlot.R, 3125, 0, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Ziggs", SpellSlot.Q, 250, 3100, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Lux", SpellSlot.R, 1375, 0, 0, false));
                BaseUltSpells.Add(new BaseUltSpell("Xerath", SpellSlot.R, 700, 600, 0, false));
            }

        }