コード例 #1
0
ファイル: MasterYi.cs プロジェクト: JelloBeans/SAC
        public override void CreateConfigMenu()
        {
            Menu combo = new Menu("Combo", "SAutoCarry.MasterYi.Combo");
            combo.AddItem(new MenuItem("SAutoCarry.MasterYi.Combo.UseQ", "Use Q").SetValue(true));
            combo.AddItem(new MenuItem("SAutoCarry.MasterYi.Combo.UseW", "Use W (For AA Reset)").SetValue(true));
            combo.AddItem(new MenuItem("SAutoCarry.MasterYi.Combo.UseE", "Use E").SetValue(true));
            combo.AddItem(new MenuItem("SAutoCarry.MasterYi.Combo.Tiamat", "Use Tiamat/Hydra").SetValue(true));

            Menu misc = new Menu("Misc", "SAutoCarry.MasterYi.Misc");
            m_targetedEvader = new TargetedSpellEvader(TargetedSpell_Evade, misc);
            DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t, 4), misc);

            ConfigMenu.AddSubMenu(combo);
            ConfigMenu.AddSubMenu(misc);
            ConfigMenu.AddToMainMenu();
        }
コード例 #2
0
ファイル: Orianna.cs プロジェクト: JelloBeans/SAC
        public override void CreateConfigMenu()
        {
            Menu combo = new Menu("Combo", "Combo");
            combo.AddItem(new MenuItem("CUSEQ", "Use Q").SetValue(true));
            combo.AddItem(new MenuItem("CUSEW", "Use W").SetValue(true));
            combo.AddItem(new MenuItem("CUSEE", "Use E For Damage Enemy").SetValue(true));
            //
            Menu ult = new Menu("R Settings", "rsetting");
            ult.AddItem(new MenuItem("CUSER", "Use R").SetValue(true));
            ult.AddItem(new MenuItem("CUSERMETHOD", "R Method").SetValue<StringList>(new StringList(new string[] { "Only If Will Hit >= X Method", "If Will Hit Toggle Selected", "Smart R" }, 2))).ValueChanged += (s, ar) => ult.Item("CUSERHIT").Show(ar.GetNewValue<StringList>().SelectedIndex == 0);
            ult.AddItem(new MenuItem("CUSERHIT", "Use When Enemy Count >=").SetValue<Slider>(new Slider(3, 1, 5))).Show(ult.Item("CUSERMETHOD").GetValue<StringList>().SelectedIndex == 0);
            //
            combo.AddSubMenu(ult);

            Menu harass = new Menu("Harass", "Harass");
            harass.AddItem(new MenuItem("HUSEQ", "Use Q").SetValue(true));
            harass.AddItem(new MenuItem("HUSEW", "Use W").SetValue(true));
            harass.AddItem(new MenuItem("HUSEE", "Use E For Damage Enemy").SetValue(true));
            harass.AddItem(new MenuItem("HTOGGLE", "Toggle Harass").SetValue(new KeyBind('T', KeyBindType.Toggle)));
            harass.AddItem(new MenuItem("HMANA", "Min. Mana Percent").SetValue(new Slider(50, 0, 100)));

            Menu laneclear = new Menu("Lane/Jungle Clear", "LaneClear");
            laneclear.AddItem(new MenuItem("LUSEQ", "Use Q").SetValue(true));
            laneclear.AddItem(new MenuItem("LUSEW", "Use W").SetValue(true));
            laneclear.AddItem(new MenuItem("LMINW", "Min. Minions To W In Range").SetValue(new Slider(3, 1, 12)));
            laneclear.AddItem(new MenuItem("TOGGLESPELL", "Enabled Spell Farm").SetValue(new KeyBind('G', KeyBindType.Toggle, true)));
            laneclear.AddItem(new MenuItem("LMANA", "Min. Mana Percent").SetValue(new Slider(50, 0, 100)));

            Menu misc = new Menu("Misc", "Misc");
            misc.AddItem(new MenuItem("MANTIGAPEW", "Anti Gap Closer With E->W").SetValue(true));
            misc.AddItem(new MenuItem("MINTIMPORTANT", "Interrupt Important Spells With Q->R").SetValue(true));
            misc.AddItem(new MenuItem("MEINIT", "Cast E On Initiators").SetValue(true));
            misc.AddItem(new MenuItem("MAUTOR", "Enable Auto Ult").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("MAUTORHIT").Show(ar.GetNewValue<bool>());
            misc.AddItem(new MenuItem("MAUTORHIT", "Auto R When Can Hit").SetValue(new Slider(4, 2, 5))).Show(misc.Item("MAUTOR").GetValue<bool>());
            misc.AddItem(new MenuItem("DDRAWBALL", "Draw Ball Position").SetValue(false));
            misc.AddItem(new MenuItem("DDRAWKILL", "Draw Killable Enemy").SetValue(true));

            DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc);
            m_targetedEvader = new TargetedSpellEvader(TargetedSpell_Evade, misc);

            ConfigMenu.AddSubMenu(combo);
            ConfigMenu.AddSubMenu(harass);
            ConfigMenu.AddSubMenu(laneclear);
            ConfigMenu.AddSubMenu(misc);
            ConfigMenu.AddToMainMenu();
        }
コード例 #3
0
ファイル: Riven.cs プロジェクト: JelloBeans/SAC
        public override void CreateConfigMenu()
        {
            Menu combo = new Menu("Combo", "combo");
            combo.AddItem(new MenuItem("CDISABLER", "Disable R Usage").SetValue(new KeyBind('J', KeyBindType.Toggle)))
                    .ValueChanged += (s, ar) =>
                    {
                        ConfigMenu.Item("CR1MODE").Show(!ar.GetNewValue<KeyBind>().Active);
                        ConfigMenu.Item("CR2MODE").Show(!ar.GetNewValue<KeyBind>().Active);
                    };
            combo.AddItem(new MenuItem("CR1MODE", "R1 Mode").SetValue(new StringList(new string[] { "Always", "If Killable With R2", "Smart" }))).Show(!combo.Item("CDISABLER").GetValue<KeyBind>().Active);
            combo.AddItem(new MenuItem("CR2MODE", "R2 Mode").SetValue(new StringList(new string[] { "Always", "If Killable", "If Out of Range", "When Can Max Damage" }, 3))).Show(!combo.Item("CDISABLER").GetValue<KeyBind>().Active);
            combo.AddItem(new MenuItem("CEMODE", "E Mode").SetValue(new StringList(new string[] { "E to enemy", "E Cursor Pos", "E to back off", "Dont Use E" }, 0)));
            combo.AddItem(new MenuItem("CALWAYSE", "Always Start Combo With E").SetTooltip("for better combo executing").SetValue(false));
            combo.AddItem(new MenuItem("CUSEF", "Use Flash In Combo").SetValue(new KeyBind('G', KeyBindType.Toggle))).Permashow();

            Menu comboType = new Menu("Combo Methods", "combomethod");
            foreach (var enemy in HeroManager.Enemies)
            {
                ComboMethodBackup.Add(String.Format("CMETHOD{0}", enemy.ChampionName), new StringList(new string[] { "Normal", "Shy Burst", "Flash Combo" }));
                comboType.AddItem(new MenuItem(String.Format("CMETHOD{0}", enemy.ChampionName), enemy.ChampionName).SetValue(new StringList(new string[] { "Normal", "Shy Burst", "Flash Combo" })))
                    .ValueChanged += (s, ar) =>
                    {
                        if (!comboType.Item("CSHYKEY").GetValue<KeyBind>().Active && !comboType.Item("CFLASHKEY").GetValue<KeyBind>().Active)
                            ComboMethodBackup[((MenuItem)s).Name] = ar.GetNewValue<StringList>();
                    };
            }
            comboType.AddItem(new MenuItem("CSHYKEY", "Set All Shy Burst While Pressing Key").SetValue(new KeyBind('T', KeyBindType.Press))).ValueChanged += (s, ar) => Orbwalker.Configuration.Combo = ar.GetNewValue<KeyBind>().Active;
            comboType.AddItem(new MenuItem("CFLASHKEY", "Set All Flash Combo While Pressing Key").SetValue(new KeyBind('Z', KeyBindType.Press)));
            combo.AddSubMenu(comboType);


            Menu harass = new Menu("Harass", "harass");
            harass.AddItem(new MenuItem("HEMODE", "E Mode").SetValue(new StringList(new string[] { "E to enemy", "E Cursor Pos", "E to back off", "Dont Use E" }, 0)));


            Menu laneclear = new Menu("LaneClear/JungleClear", "laneclear");
            laneclear.AddItem(new MenuItem("LUSEQ", "Use Q").SetValue(true));
            laneclear.AddItem(new MenuItem("LUSEW", "Use W").SetValue(true))
                .ValueChanged += (s, ar) =>
                {
                    laneclear.Item("LMINW").Show(ar.GetNewValue<bool>());
                };
            laneclear.AddItem(new MenuItem("LMINW", "Min. Minion To W").SetValue(new Slider(1, 1, 6))).Show(laneclear.Item("LUSEW").GetValue<bool>());
            laneclear.AddItem(new MenuItem("LUSETIAMAT", "Use Tiamat/Hydra").SetValue(true));
            laneclear.AddItem(new MenuItem("LSEMIQJUNG", "Semi-Q Jungle Clear").SetValue(true));
            laneclear.AddItem(new MenuItem("LASTUSETIAMAT", "Use Tiamat/Hydra for Last Hitting").SetValue(true));

            Menu misc = new Menu("Misc", "misc");
            misc.AddItem(new MenuItem("MFLEEKEY", "Flee Key").SetValue(new KeyBind('A', KeyBindType.Press)));
            misc.AddItem(new MenuItem("MFLEEWJ", "Use Wall Jump while flee").SetValue(true)).Permashow();
            misc.AddItem(new MenuItem("MKEEPQ", "Keep Q Alive (To Cursor Pos)").SetValue(false));
            misc.AddItem(new MenuItem("MMINDIST", "Min. Distance to gapclose").SetValue(new Slider(390, 250, 750)));
            misc.AddItem(new MenuItem("MAUTOINTRW", "Interrupt Spells With W").SetValue(true));
            misc.AddItem(new MenuItem("MAUTOINTRQ", "Try Interrupt Spells With Ward & Q3").SetValue(false));
            misc.AddItem(new MenuItem("MANTIGAPW", "Anti Gap Closer With W").SetValue(true));
            misc.AddItem(new MenuItem("MANTIGAPQ", "Try Anti Gap Closer With Ward & Q3").SetValue(false));
            misc.AddItem(new MenuItem("MAUTOANIMCANCEL", "Automatic cancel animation on manuel casts").SetValue(true));
            misc.AddItem(new MenuItem("DDRAWCOMBOMODE", "Draw Combo Mode").SetValue(true));
            misc.AddItem(new MenuItem("DRAWULTSTATUS", "Draw Always R Status").SetValue(true));

            m_targetedEvader = new TargetedSpellEvader(TargetedSpell_Evade, misc);
            DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t) + (float)CalculateDamageR2(t), misc);


            ConfigMenu.AddSubMenu(combo);
            ConfigMenu.AddSubMenu(harass);
            ConfigMenu.AddSubMenu(laneclear);
            ConfigMenu.AddSubMenu(misc);
            ConfigMenu.AddToMainMenu();

            ComboInstance.Initialize(this);
        }