Ejemplo n.º 1
0
        public void LoadOKTW()
        {
            Sub1 = Config.AddSubMenu("Logo");
            Sub1.Add("logoa", new CheckBox("Intro logo OKTW"));

            if (getCheckBoxItem(Sub1, "logoa"))
            {
                Intro = new Render.Sprite(LoadImg("intro"), new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
                Intro.Add(0);
                Intro.OnDraw();
            }

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

            Sub = Config.AddSubMenu("Utility, Draws OKTW©");
            Sub.Add("disableDraws", new CheckBox("DISABLE UTILITY DRAWS", false));

            Sub.AddGroupLabel("Enemy info grid");
            Sub.Add("championInfo", new CheckBox("Game Info"));
            Sub.Add("ShowKDA", new CheckBox("Show flash and R CD"));
            Sub.Add("ShowRecall", new CheckBox("Show recall"));
            Sub.Add("posX", new Slider("posX", 20, 0, 100));
            Sub.Add("posY", new Slider("posY", 10, 0, 100));
            Sub.AddSeparator();

            Sub.Add("GankAlert", new CheckBox("Gank Alert"));
            Sub.Add("HpBar", new CheckBox("Dmg indicators BAR OKTW© style"));
            Sub.Add("ShowClicks", new CheckBox("Show enemy clicks"));
            Sub.Add("SS", new CheckBox("SS notification"));
            Sub.Add("showWards", new CheckBox("Show hidden objects, wards"));
            Sub.Add("minimap", new CheckBox("Mini-map hack"));

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

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

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

            Q = new LeagueSharp.Common.Spell(SpellSlot.Q);
            E = new LeagueSharp.Common.Spell(SpellSlot.E);
            W = new LeagueSharp.Common.Spell(SpellSlot.W);
            R = new LeagueSharp.Common.Spell(SpellSlot.R);

            Drawing.OnDraw     += OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
        }