コード例 #1
0
        public CustomLvlSeq(Menu m, AIHeroClient champ, string dir, string seq = "", int maxlvl = 18)
        {
            locked   = new[] { true };
            this.dir = dir;
            se       = seq;
            var menuSettings = m.AddSubMenu("Skill LvlUp", "AB_SL_SETTINGS");
            var enabled      = new CheckBox("Enabled", true);

            menuSettings.AddGroupLabel("General");
            menuSettings.Add(champ + "enabled", enabled);
            menuSettings.AddSeparator(10);
            menuSettings.AddGroupLabel("Current profile");
            profile1 = new CheckBox("Profile 1", true);
            profile2 = new CheckBox("Profile 2", false);
            menuSettings.Add(champ.ChampionName + Game.MapId + "p1", profile1);
            menuSettings.Add(champ.ChampionName + Game.MapId + "p2", profile2);



            updater = new CheckBox("Update default sequences");
            clear   = new CheckBox("Clear current profile", false);
            menuSettings.Add("clear", clear);
            defau = new CheckBox("Set current profile to default");
            menuSettings.Add("defaults", defau);
            menuSettings.AddSeparator(10);

            menuSettings.AddGroupLabel("Humanizer");
            humanMin = new Slider("Minimum time after level up to upgrade an ability(miliseconds)", 300, 0, 2000);
            humanMax = new Slider("Maximum time after level up to upgrade an ability(miliseconds)", 500, 0, 2000);
            menuSettings.Add("xhm", humanMin);
            menuSettings.Add("xhmx", humanMax);
            humanMin.OnValueChange += humanMin_OnValueChange;
            humanMax.OnValueChange += humanMax_OnValueChange;
            menuSettings.AddSeparator(10);
            menuSettings.AddGroupLabel("Updater");
            menuSettings.Add("updateSkills", updater);
            updater.CurrentValue    = false;
            locked[0]               = false;
            updater.OnValueChange  += updater_OnValueChange;
            clear.CurrentValue      = false;
            clear.OnValueChange    += clear_OnValueChange;
            defau.CurrentValue      = false;
            defau.OnValueChange    += defau_OnValueChange;
            profile1.OnValueChange += profile1_OnValueChange;
            profile2.OnValueChange += profile2_OnValueChange;

            profile = profile1.CurrentValue ? 1 : 2;
            lvlFile = Path.Combine(dir + "\\" + "Skills-" + champ.ChampionName + "-" + Game.MapId + "-P" + profile + ".txt");

            this.champ = champ;
            def        = new DefautSequences(dir + "\\" + "Skills-DEFAULT.txt");
            maxLvl     = maxlvl;
            var menu = m.AddSubMenu("Skill sequence: " + champ.ChampionName);



            sliders = new LvlSlider[maxlvl];
            skills  = new SkillToLvl[maxlvl];
            for (var i = 0; i < maxLvl; i++)
            {
                sliders[i] = new LvlSlider(menu, i, this);
            }
            load(seq);
            lvlUp = new SkillLevelUp(skills, enabled)
            {
                maxTime = humanMax.CurrentValue,
                minTime = humanMin.CurrentValue
            };
        }
コード例 #2
0
ファイル: CustomLvlSeq.cs プロジェクト: qkwlqk/EloBuddy
        public CustomLvlSeq(Menu m, AIHeroClient champ, string dir, string seq = "", int maxlvl = 18)
        {
            locked = new bool[] { true };
            this.dir = dir;
            se = seq;
            Menu menuSettings = m.AddSubMenu("Skill LvlUp", "AB_SL_SETTINGS");
            CheckBox enabled = new CheckBox("Enabled", true);
            menuSettings.AddGroupLabel("General");
            menuSettings.Add(champ + "enabled", enabled);
            menuSettings.AddSeparator(10);
            menuSettings.AddGroupLabel("Current profile");
            profile1 = new CheckBox("Profile 1", true);
            profile2 = new CheckBox("Profile 2", false);
            menuSettings.Add(champ.ChampionName + Game.MapId + "p1", profile1);
            menuSettings.Add(champ.ChampionName + Game.MapId + "p2", profile2);


            
            updater = new CheckBox("Update default sequences");
            clear = new CheckBox("Clear current profile", false);
            menuSettings.Add("clear", clear);
            defau = new CheckBox("Set current profile to default");
            menuSettings.Add("defaults", defau);
            menuSettings.AddSeparator(10);

            menuSettings.AddGroupLabel("Humanizer");
            humanMin = new Slider("Minimum time after level up to upgrade an ability(miliseconds)", 300, 0, 2000);
            humanMax = new Slider("Maximum time after level up to upgrade an ability(miliseconds)", 500, 0, 2000);
            menuSettings.Add("xhm", humanMin);
            menuSettings.Add("xhmx", humanMax);
            humanMin.OnValueChange += humanMin_OnValueChange;
            humanMax.OnValueChange += humanMax_OnValueChange;
            menuSettings.AddSeparator(10);
            menuSettings.AddGroupLabel("Updater");
            menuSettings.Add("updateSkills", updater);
            updater.CurrentValue = false;
            locked[0] = false;
            updater.OnValueChange += updater_OnValueChange;
            clear.CurrentValue = false;
            clear.OnValueChange += clear_OnValueChange;
            defau.CurrentValue = false;
            defau.OnValueChange += defau_OnValueChange;
            profile1.OnValueChange += profile1_OnValueChange;
            profile2.OnValueChange += profile2_OnValueChange;

            profile = profile1.CurrentValue ? 1 : 2;
            lvlFile = Path.Combine(dir + "\\" + "Skills-" + champ.ChampionName + "-" + Game.MapId +"-P"+profile+ ".txt");

            this.champ = champ;
            def = new DefautSequences(dir + "\\" + "Skills-DEFAULT.txt");
            maxLvl = maxlvl;
            Menu menu = m.AddSubMenu("Skill sequence: " + champ.ChampionName);




            
            sliders = new LvlSlider[maxlvl];
            skills = new SkillToLvl[maxlvl];
            for (int i = 0; i < maxLvl; i++)
            {
                sliders[i] = new LvlSlider(menu, i, this);
            }
            load(seq);
            lvlUp=new SkillLevelUp(skills, enabled)
            {
                maxTime = humanMax.CurrentValue,
                minTime = humanMin.CurrentValue
            };

        }