コード例 #1
0
        private static void Load_OnLoad()
        {
            if (ObjectManager.Player.ChampionName != ChampName)
            {
                return;
            }

            Config.Initialize();
            SpellManager.Initialize();
            ModeManager.Initialize();
            OathswornManager.Initialize();
            SoulHandler.Initialize();

            DamageIndicator.Initialize(new List <DamageIndicator.DamageInfo>
            {
                new DamageIndicator.DamageInfo("Q", () => Config.Drawings.QDamageColor, unit => SpellManager.Q.IsReady() ? (float)unit.GetQDamage() : 0f, () => Config.Drawings.DrawQDamage),
                new DamageIndicator.DamageInfo("E", () => Config.Drawings.EDamageColor, unit => SpellManager.E.IsReady() ? (float)unit.GetEDamage() : 0f, () => Config.Drawings.DrawEDamage)
            }, () => Config.Drawings.DamageIndicatorEnabled, () => Config.Drawings.HerosEnabled, () => Config.Drawings.JunglesEnabled);

            Drawing.OnDraw += Drawing_OnDraw;
            Variables.Orbwalker.OnAction += Orbwalker_OnAction;

            LogManager.GetCurrentClassLogger().Info("Kalista Loaded successfully!");

            Notifications.Add(new Notification("Kalista Loaded!", "Kalista was loaded!", "Good luck, have fun!")
            {
                HeaderTextColor = Color.LightBlue, BodyTextColor = Color.White, Icon = NotificationIconType.Check, IconFlash = true
            });
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Dekryptor/Port-1
        private static void Load_OnLoad()
        {
            if (ObjectManager.Player.ChampionName != ChampName)
            {
                return;
            }

            Config.Initialize();
            SpellManager.Initialize();
            ModeManager.Initialize();
            OathswornManager.Initialize();
            SoulHandler.Initialize();

            Drawing.OnDraw += Drawing_OnDraw;
            Variables.Orbwalker.OnAction += Orbwalker_OnAction;

            //LogManager.GetCurrentClassLogger().Info("Kalista Loaded successfully!");

            Notifications.Add(new Notification("Kalista Loaded!", "Kalista was loaded!", "Good luck, have fun!")
            {
                HeaderTextColor = Color.LightBlue, BodyTextColor = Color.White, Icon = NotificationIconType.Check, IconFlash = true
            });
        }