CameraBuddy.MenuGroups.Events.AutoMoveOnDamage.AddToMenu C# (CSharp) Method

AddToMenu() public method

public AddToMenu ( Menu menuBase ) : void
menuBase Menu
return void
        public override void AddToMenu(Menu menuBase)
        {
            var menu = menuBase.Parent.AddSubMenu("     On Hurt");
            menu.AddLabel("'On Hurt' will automatically move the camera towards your player if you \nreceive damage or CC (Crowd Control), within the specified parameters");
            menu.AddSeparator(10);

            DamageRecivedCount = AddSlider(new Slider("Total damage until activation", 60, 0, (int) Player.Instance.MaxHealth));
            OnlyMoveOnCc = AddCheckbox(new CheckBox("Only move the camera on crowd control", false));
            IgnoreMinionDamage = AddCheckbox(new CheckBox("Ignore Minion Damage"));


            base.AddToMenu(menu);

            
        }
    }