public override void AddToMenu(MenuWrapper.SubMenu menu) { var subMenu = menu.AddSubMenu("Ignite"); Enabled = subMenu.AddLinkedBool("Enabled"); subMenu = subMenu.AddSubMenu("Don't use when these spells are ready"); Q = subMenu.AddLinkedBool(ObjectManager.Player.ChampionName + " Q", false); W = subMenu.AddLinkedBool(ObjectManager.Player.ChampionName + " W", false); E = subMenu.AddLinkedBool(ObjectManager.Player.ChampionName + " E", false); R = subMenu.AddLinkedBool(ObjectManager.Player.ChampionName + " R", false); }
static Config() { Menu = new MenuWrapper("[Hellsing] Avoid", false, false); var subMenu = Menu.MainMenu.AddSubMenu("Avoidable objects"); foreach (var obj in ObjectDatabase.AvoidObjects) { obj.MenuState = subMenu.AddLinkedBool(obj.DisplayName); } subMenu = Menu.MainMenu.AddSubMenu("Drawings"); drawRangesLink = subMenu.AddLinkedBool("Draw avoidable ranges"); disableKeyLink = Menu.MainMenu.AddLinkedKeyBind("Don't avoid while pressing", 'A', KeyBindType.Press); }