public Config(EnchantressPlus main) { Main = main; Factory = MenuFactory.CreateWithTexture("EnchantressPlus", "npc_dota_hero_enchantress"); Factory.Target.SetFontColor(Color.Aqua); var AbilitiesMenu = Factory.Menu("Abilities"); AbilityToggler = AbilitiesMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool> { { "enchantress_enchant", true }, { "enchantress_impetus", true } })); var ItemsMenu = Factory.Menu("Items"); ItemsToggler = ItemsMenu.Item("Use: ", new AbilityToggler(new Dictionary <string, bool> { { "item_shivas_guard", true }, { "item_dagon_5", true }, { "item_veil_of_discord", true }, { "item_ethereal_blade", true }, { "item_heavens_halberd", true }, { "item_hurricane_pike", true }, { "item_necronomicon_3", true }, { "item_rod_of_atos", true }, { "item_bloodthorn", true }, { "item_orchid", true }, { "item_sheepstick", true } })); var LinkenBreakerMenu = Factory.MenuWithTexture("Linken Breaker", "item_sphere"); LinkenBreakerMenu.Target.AddItem(new MenuItem("linkensphere", "Linkens Sphere:")); LinkenBreakerToggler = LinkenBreakerMenu.Item("Use: ", "linkentoggler", new AbilityToggler(new Dictionary <string, bool> { { "enchantress_enchant", true }, { "item_sheepstick", true }, { "item_rod_of_atos", true }, { "item_bloodthorn", true }, { "item_orchid", true }, { "item_heavens_halberd", true }, { "item_cyclone", true }, { "item_force_staff", true } })); LinkenBreakerChanger = LinkenBreakerMenu.Item("Priority: ", "linkenchanger", new PriorityChanger(new List <string> { { "enchantress_enchant" }, { "item_sheepstick" }, { "item_rod_of_atos" }, { "item_bloodthorn" }, { "item_orchid" }, { "item_heavens_halberd" }, { "item_cyclone" }, { "item_force_staff" } })); LinkenBreakerMenu.Target.AddItem(new MenuItem("empty", "")); LinkenBreakerMenu.Target.AddItem(new MenuItem("antiMagespellshield", "AntiMage Spell Shield:")); AntiMageBreakerToggler = LinkenBreakerMenu.Item("Use: ", "antimagetoggler", new AbilityToggler(new Dictionary <string, bool> { { "enchantress_enchant", true }, { "item_rod_of_atos", true }, { "item_heavens_halberd", true }, { "item_cyclone", true }, { "item_force_staff", true } })); AntiMageBreakerChanger = LinkenBreakerMenu.Item("Priority: ", "antimagechanger", new PriorityChanger(new List <string> { { "enchantress_enchant" }, { "item_rod_of_atos" }, { "item_heavens_halberd" }, { "item_cyclone" }, { "item_force_staff" } })); UseOnlyFromRangeItem = LinkenBreakerMenu.Item("Use Only From Range", false); UseOnlyFromRangeItem.Item.SetTooltip("Use only from the Range and do not use another Ability"); var NaturesAttendantsMenu = Factory.MenuWithTexture("Natures Attendants", "enchantress_natures_attendants"); NaturesAttendantsItem = NaturesAttendantsMenu.Item("Enable", true); MinHPItem = NaturesAttendantsMenu.Item("Min HP %", new Slider(30, 0, 80)); var DrawingMenu = Factory.Menu("Drawing"); var TargetMenu = DrawingMenu.Menu("Target"); DrawTargetItem = TargetMenu.Item("Target Enable", true); TargetRedItem = TargetMenu.Item("Red", "red", new Slider(255, 0, 255)); TargetRedItem.Item.SetFontColor(Color.Red); TargetGreenItem = TargetMenu.Item("Green", "green", new Slider(0, 0, 255)); TargetGreenItem.Item.SetFontColor(Color.Green); TargetBlueItem = TargetMenu.Item("Blue", "blue", new Slider(0, 0, 255)); TargetBlueItem.Item.SetFontColor(Color.Blue); DrawOffTargetItem = TargetMenu.Item("Off Target Enable", true); OffTargetRedItem = TargetMenu.Item("Red", "offred", new Slider(0, 0, 255)); OffTargetRedItem.Item.SetFontColor(Color.Red); OffTargetGreenItem = TargetMenu.Item("Green", "offgreen", new Slider(255, 0, 255)); OffTargetGreenItem.Item.SetFontColor(Color.Green); OffTargetBlueItem = TargetMenu.Item("Blue", "offblue", new Slider(255, 0, 255)); OffTargetBlueItem.Item.SetFontColor(Color.Blue); ComboRadiusItem = DrawingMenu.Item("Combo Stable Radius", true); ComboRadiusItem.Item.SetTooltip("I suggest making a combo in this radius"); ComboKeyItem = Factory.Item("Combo Key", new KeyBind('D')); MinDisInOrbwalkItem = Factory.Item("Min Distance in OrbWalk", new Slider(0, 0, 600)); BladeMailItem = Factory.Item("Blade Mail Cancel", false); BladeMailItem.Item.SetTooltip("Cancel Combo if there is enemy Blade Mail"); TargetItem = Factory.Item("Target", new StringList("Lock", "Default")); ComboKeyItem.Item.ValueChanged += HotkeyChanged; UpdateMode = new UpdateMode(this); var Key = KeyInterop.KeyFromVirtualKey((int)ComboKeyItem.Value.Key); Mode = new Mode(Main.Context, Key, this); Main.Context.Orbwalker.RegisterMode(Mode); AutoAbility = new AutoAbility(this); LinkenBreaker = new LinkenBreaker(this); }