Пример #1
0
            public void GuiFull()
            {
                var menu = new LeagueSharp.Common.Menu("jungler slack", "jungler slack", true);
                // farm button
                var f1       = new LeagueSharp.Common.KeyBind(switchButton, LeagueSharp.Common.KeyBindType.Toggle, false);
                var farmTick = new LeagueSharp.Common.MenuItem("farm", "farm");

                farmTick.SetValue(f1);
                farmTick.ValueChanged += (h, a) => timer.later = !a.GetNewValue <LeagueSharp.Common.KeyBind>().Active;
                farmTick.DontSave();
                menu.AddItem(farmTick);
                // farm button disabler
                LeagueSharp.Game.OnWndProc += (a) => {
                    if (a.Msg == 516 && a.WParam == 2)
                    {
                        f1.Active = false;
                        farmTick.SetValue(f1);
                    }
                };
                // smite button
                var smiteTick = new LeagueSharp.Common.MenuItem("smite", "smite", true).SetValue(true);

                smiteTick.ValueChanged += (h, a) => smite.timer.later = !a.GetNewValue <bool>();
                menu.AddItem(smiteTick);
                // fast button
                var fastTick = new LeagueSharp.Common.MenuItem("fast", "fast", true).SetValue(true);

                nav.Fast = () => fastTick.GetValue <bool>();
                menu.AddItem(fastTick);
                // leveling
                var recordMenu = new LeagueSharp.Common.Menu("records", "records");

                menu.AddSubMenu(recordMenu);
                LeagueSharp.Obj_AI_Hero.OnLevelUp += (unit, a) => { if (unit.IsMe)
                                                                    {
                                                                        var me = unit as LeagueSharp.Obj_AI_Hero;
                                                                        if (me.Level == 3 || me.Level == 6 || me.Level == 9 || me.Level == 11 || me.Level == 16)
                                                                        {
                                                                            var record = new LeagueSharp.Common.MenuItem(me.Level.ToString(), "lvl " + me.Level + " : " + System.TimeSpan.FromSeconds(LeagueSharp.Game.ClockTime).ToString(@"mm\:ss"));
                                                                            record.DontSave();
                                                                            recordMenu.AddItem(record);
                                                                        }
                                                                    }
                };
                // leveling sated
                LeagueSharp.Obj_AI_Hero.OnBuffAdd += (unit, a) => { if (unit.IsMe)
                                                                    {
                    #warning l# bug
                                                                        //System.Console.WriteLine(a.Buff.Name);
                                                                    }
                };
                // leveling init
                var startRecord = new LeagueSharp.Common.MenuItem("start", "start : " + System.TimeSpan.FromSeconds(LeagueSharp.Game.ClockTime).ToString(@"mm\:ss"));
                startRecord.DontSave();
                recordMenu.AddItem(startRecord);
                // fin
                menu.AddToMainMenu();
            }
Пример #2
0
        public static void Initialize()
        {
            ItemManager.Initialize();

            var orbwalkerMenu = new LeagueSharp.Common.Menu("Custom Orbwalker", "Custom Orbwalker");
            {
                Orbwalker = new LeagueSharp.Common.Orbwalking.Orbwalker(orbwalkerMenu);
                Config.AddSubMenu(orbwalkerMenu);
            }

            var itemMenu = new LeagueSharp.Common.Menu("Item Manager - soon", "Item Manager");

            {
                Config.AddSubMenu(itemMenu);
            }


            Config.AddToMainMenu();
        }