Exemple #1
0
 /// <summary>
 /// Initializes the menu
 /// </summary>
 public override void InitializeMenu()
 {
     FirstMenuName = "Name of the addon";
     //There are a bunch of examples on how to create checkboxes and sliders really easy
     //Obs: You can use the MenuIds(Preset) or Ints as a uniqueID
     //ComboMenu
     ComboMenu.AddGroupLabel("-:Combo Spells:-");
     ComboMenu.CreateCheckBox("- Use Q", MenuIds.ComboUseQ);
     ComboMenu.CreateCheckBox("- Use W", MenuIds.ComboUseW);
     ComboMenu.CreateCheckBox("- Use E", MenuIds.ComboUseE);
     ComboMenu.CreateCheckBox("- Use R", 8);
     //HarassMenu
     HarassMenu.AddGroupLabel("-:Harass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.HarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.HarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.HarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.HarassUseR);
     HarassMenu.AddGroupLabel("-:Harass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.HarassMana);
     HarassMenu.AddGroupLabel("-:AutoHarass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.AutoHarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.AutoHarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.AutoHarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.AutoHarassUseR);
     HarassMenu.AddGroupLabel("-:AutoHarass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.AutoHarassMana);
     //LaneClearMenu
     LaneClearMenu.AddGroupLabel("-:Laneclear Spells:-");
     LaneClearMenu.CreateCheckBox("- Use Q", 9);
     LaneClearMenu.CreateCheckBox("- Use W", 10);
     LaneClearMenu.CreateCheckBox("- Use E", 11);
     LaneClearMenu.CreateCheckBox("- Use R", 12);
     LaneClearMenu.AddGroupLabel("-:Laneclear Settings:-");
     LaneClearMenu.CreateSlider("It will use laneclear spells only if mana is greater than ({0}%)", 30);
     //LastHitMenu
     LastHitMenu.AddGroupLabel("-:Lasthit Spells:-");
     LastHitMenu.CreateCheckBox("- Use Q", 13);
     LastHitMenu.CreateCheckBox("- Use W", 14);
     LastHitMenu.CreateCheckBox("- Use E", 15);
     LastHitMenu.CreateCheckBox("- Use R", 16);
     LastHitMenu.AddGroupLabel("-:Lasthit Settings:-");
     LastHitMenu.CreateSlider("It will use lasthit spells only if mana is greater than ({0}%)", 30);
     //FleeMenu
     FleeMenu.AddGroupLabel("-:Flee Spells:-");
     FleeMenu.CreateCheckBox("- Use Q", MenuIds.FleeUseQ);
     FleeMenu.CreateCheckBox("- Use W", MenuIds.FleeUseW);
     FleeMenu.CreateCheckBox("- Use E", MenuIds.FleeUseE);
     FleeMenu.CreateCheckBox("- Use R", MenuIds.FleeUseR);
     FleeMenu.AddGroupLabel("-:Flee Settings:-");
     FleeMenu.CreateSlider("It will use flee spells only if mana is greater than ({0}%)", 30);
     //MiscMenu
     MiscMenu.AddGroupLabel("-:Misc Spells:-");
     MiscMenu.CreateCheckBox("- Use X on gapclosers spells", MenuIds.MiscUseGapcloser);
     MiscMenu.CreateCheckBox("- Use X on interruptables spells", MenuIds.MiscUseInterrupt);
     MiscMenu.AddGroupLabel("-:Misc Settings:-");
     MiscMenu.CreateSlider("It will use misc spells only if mana is greater than ({0}%)", 30);
 }
Exemple #2
0
        public override void Initialize()
        {
            FirstMenu = MainMenu.AddMenu("OKTR " + GetAttribute().Name, "id" + GetAttribute().Name.ToLower());
            FirstMenu.AddGroupLabel("Introduction:");
            FirstMenu.AddSeparator();
            FirstMenu.AddGroupLabel("Author: " + GetAttribute().Author);
            if (HUEHUEHUEHUE)
            {
                FirstMenu.AddLabel("Plugin From: http://oktraio.com");
            }
            ComboMenu = FirstMenu.AddSubMenu("Combo", ComboMenuID);
            ComboMenu.AddGroupLabel("Combo Settings:");
            HarassMenu = FirstMenu.AddSubMenu("Harass", HarassMenuID);
            HarassMenu.AddGroupLabel("Harass Settings:");
            AutoHarassMenu = FirstMenu.AddSubMenu("Auto Harass", AutoHarassMenuID);
            AutoHarassMenu.AddGroupLabel("Auto Harass Settings:");
            LaneClearMenu = FirstMenu.AddSubMenu("Laneclear", LaneMenuID);
            LaneClearMenu.AddGroupLabel("Laneclear Settings:");
            JungleClearMenu = FirstMenu.AddSubMenu("Jungleclear", JunglesMenuID);
            JungleClearMenu.AddGroupLabel("Jungleclear Settings:");
            LastHitMenu = FirstMenu.AddSubMenu("Lasthit", LastMenuID);
            LastHitMenu.AddGroupLabel("Lasthit Settings:");
            FleeMenu = FirstMenu.AddSubMenu("Flee", FleeMenuID);
            FleeMenu.AddGroupLabel("Flee Settings:");
            KillStealMenu = FirstMenu.AddSubMenu("Killsteal", KillstealMenuID);
            KillStealMenu.AddGroupLabel("Killsteal Settings:");
            DrawMenu = FirstMenu.AddSubMenu("Draw", DrawMenuID);
            DrawMenu.AddGroupLabel("Draw Settings:");
            DrawMenu.CreateCheckBox("Only draw spells if they are ready", DrawMenuID + "whenready");
            DrawMenu.AddGroupLabel("Damage Indicator settings: ");
            DrawMenu.CreateCheckBox("Draw damage indicator", DrawMenuID + "damageDraw");
            DrawMenu.CreateCheckBox("Draw statistics", DrawMenuID + "statDraw");
            DrawMenu.CreateCheckBox("Draw percentage", DrawMenuID + "perDraw");

            DamageIndicatorDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "damageHealthIndicator", Color.Yellow, "Damage Indicator Color");

            DrawMenu.AddSeparator();
            DrawMenu.CreateCheckBox("Calculate Q", DrawMenuID + "calculateQ");
            DrawMenu.CreateCheckBox("Calculate W", DrawMenuID + "calculateW");
            DrawMenu.CreateCheckBox("Calculate E", DrawMenuID + "calculateE");
            DrawMenu.CreateCheckBox("Calculate R", DrawMenuID + "calculateR");
            DrawMenu.AddGroupLabel("Spells to draw: ");

            MiscMenu = FirstMenu.AddSubMenu("Misc", MiscMenuID);
            MiscMenu.AddGroupLabel("Miscellanous Settings:");

            InitializeSpells();
            InitializeEvents();
            InitializeMenu();

            if (PlayerHasMana)
            {
                HarassMenu.CreateSlider("Player mana must be less than [{0}%] to use harass spells", HarassMenuID + "mana", 40);
                AutoHarassMenu.CreateSlider("Player mana must be less than [{0}%] to use auto harass spells", AutoHarassMenuID + "mana", 40);
                LaneClearMenu.CreateSlider("Player mana must be less than [{0}%] to use lane clear spells", LaneClearMenu + "mana", 40);
                JungleClearMenu.CreateSlider("Player mana must be less than [{0}%] to use jungle clear spells", JunglesMenuID + "mana", 40);
                LastHitMenu.CreateSlider("Player mana must be less than [{0}%] to use lasthit spells", LastMenuID + "mana", 40);
                KillStealMenu.CreateSlider("Player mana must be less than [{0}%] to use Killsteal spells", KillstealMenuID + "mana", 10);
                MiscMenu.CreateSlider("Player mana must be less than [{0}%] to use misc spells", MiscMenuID + "mana", 30);
            }

            DrawMenu.AddGroupLabel("Drawing Colors");
            QDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "Q" + "colorid", Color.Orange, "- Q Color");
            WDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "W" + "colorid", Color.Red, "- W Color");
            EDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "E" + "colorid", Color.Blue, "- E Color");
            RDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "R" + "colorid", Color.DeepPink, "- R Color");

            Game.OnTick += Game_OnTick;

            Drawing.OnDraw += Drawing_OnDraw;
        }