Exemple #1
0
        private void drawMenu_MenuValueChanged(object sender, LeagueSharp.SDK.Core.UI.IMenu.MenuValueChangedEventArgs e)
        {
            if (!Enable)
            {
                return;
            }
            var boolean = sender as MenuBool;

            if (boolean != null)
            {
                if (boolean.Name.Equals("Hpd"))
                {
                    DamageIndicator.Enabled       = boolean.Value;
                    CustomDamageIndicator.Enabled = boolean.Value;
                }
            }
        }
Exemple #2
0
        private static void MainMenu_MenuValueChanged(object sender, LeagueSharp.SDK.Core.UI.IMenu.MenuValueChangedEventArgs e)
        {
            var boolean = sender as MenuBool;

            if (boolean != null)
            {
                if (boolean.Name.Equals("Enable"))
                {
                    enabled = boolean.Value;
                    if (boolean.Value)
                    {
                        AddUI.Notif(Player.ChampionName + ": Enabled !", 4000);
                    }
                    else
                    {
                        AddUI.Notif(Player.ChampionName + ": Disabled !", 4000);
                    }
                }
            }
        }