Exemplo n.º 1
0
        public static void Load()
        {
            var subMenu    = new Menu("Auto use items", "autouseitems", false);
            var percent    = new Menu("% Menu", "percentMenu", false);
            var itemConfig = new Menu("Items", "Items", false);

            subMenu.AddSubMenu(percent);
            subMenu.AddSubMenu(itemConfig);
            subMenu.AddItem(new MenuItem("midasAll", "Midas All").SetValue(true).SetTooltip("false = only creeps 5 lvl and > 950 HP."));
            itemConfig.AddItem(new MenuItem("item_config", "itemuse").SetValue(new AbilityToggler(Allitems.list_of_items)));

            percent.AddItem(new MenuItem("stickPs", "Stick % HP").SetValue(new Slider(10, 1, 100)));
            percent.AddItem(new MenuItem("cheesePs", "Cheese % HP").SetValue(new Slider(10, 1, 100)));
            percent.AddItem(new MenuItem("arcaneBootsPs", "Arcane Boots % MP").SetValue(new Slider(30, 1, 100)));
            MainMenu.MenuSettings.AddSubMenu(subMenu);


            MainMenu.MenuSettings.AddItem(new MenuItem("dodge", "Dodge ?").SetValue(true));
            MainMenu.MenuSettings.AddItem(new MenuItem("dodgefrequency", "Dodge Frequency").SetValue(Frequency));
            MainMenu.MenuSettings.AddItem(new MenuItem("showatkrange", "Show attack range ?").SetValue(false));
            MainMenu.MenuSettings.AddItem(
                new MenuItem("expRange", "Exp Range").SetValue(false).SetTooltip("Show your experience range."));

            MainMenu.MenuSettings.AddItem(new MenuItem("cameradistance", "Camera Distance").SetValue(CameraDistance))
            .ValueChanged += (sender, arg) => { Zoom.Slider_ValueChanged(arg); };
        }