コード例 #1
0
        public Tracker(Menu mainMenu)
        {
            menu = mainMenu;

            Menu spellTrackerMenu = new Menu("Spell Tracker", "SpellTracker");

            spellTrackerMenu.AddItem(new MenuItem("TrackEnemyCooldown", "Track Enemies").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackAllyCooldown", "Track Allies").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackNoMana", "Track Mana Cost").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackEnemyRecalls", "Track Recalls").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackerShowTextCooldown", "Show Text Cooldowns").SetValue(false));

            spellTrackerMenu.AddItem(new MenuItem("TrackerIconDescription", "    -- Reload to take effect --"));
            spellTrackerMenu.AddItem(new MenuItem("TrackSummonerIcons", "Use Summoner Icons").SetValue(false));

            menu.AddSubMenu(spellTrackerMenu);

            useSummonerIcons = menu.Item("TrackSummonerIcons").GetValue <bool>();

            Obj_AI_Hero.OnProcessSpellCast += Game_OnProcessSpell;

            SummonerData.LoadSummonerSpell();

            CustomEvents.Game.OnGameLoad += OnCommonsLoaded;
            Drawing.OnDraw += Drawing_OnDraw;

            Obj_AI_Base.OnTeleport += Game_OnTeleport;

            Obj_AI_Base.OnCreate += Game_OnCreateObject;

            LoadSpecialSpells();
        }
コード例 #2
0
ファイル: SpellTracker.cs プロジェクト: batux33/LeagueSharp-1
        public Tracker(Menu mainMenu)
        {
            menu = mainMenu;

            Menu spellTrackerMenu = new Menu("Spell Tracker", "SpellTracker");

            spellTrackerMenu.AddItem(new MenuItem("TrackEnemyCooldown", "Track Enemies").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackAllyCooldown", "Track Allies").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackNoMana", "Track Mana Cost").SetValue(true));
            spellTrackerMenu.AddItem(new MenuItem("TrackEnemyRecalls", "Track Recalls").SetValue(true));

            menu.AddSubMenu(spellTrackerMenu);

            Obj_AI_Hero.OnProcessSpellCast += Game_OnProcessSpell;

            SummonerData.GetSummonerColor("test");

            Drawing.OnDraw         += Drawing_OnDraw;
            Obj_AI_Base.OnTeleport += Game_OnTeleport;

            Obj_AI_Base.OnCreate += Game_OnCreateObject;

            LoadSpecialSpells();
        }