var menu = new Menu("MyScript", "MyScript", true); var modeMenu = menu.AddSubMenu("Modes"); modeMenu.AddModeMenu("Combo", "combo"); modeMenu.AddModeMenu("Harass", "harass"); modeMenu.AddModeMenu("Farm", "farm");
var menu = new Menu("MyScript", "MyScript", true); var modeMenu = menu.AddSubMenu("Modes"); modeMenu.AddModeMenu("Combo", "combo", KeyBindType.Press); modeMenu.AddModeMenu("Harass", "harass", KeyBindType.Toggle);In this example, we create a menu with a sub-menu for different modes. Then, we use the AddModeMenu method to add two different modes (Combo and Harass) with corresponding keys (combo and harass). We also specify different key bind types for each mode: Press for Combo and Toggle for Harass. Package library: LeagueSharp.Common.