var mainMenu = new Menu("Main Menu", "mainMenu"); var subMenu = new Menu("Sub Menu", "subMenu"); subMenu.AddItem(new MenuItem("option1", "Option 1").SetValue(true)); subMenu.AddItem(new MenuItem("option2", "Option 2").SetValue(false)); mainMenu.AddSubMenu(subMenu); mainMenu.AddItem(new MenuItem("option3", "Option 3").SetValue(true));In this example, a "Main Menu" is created and a "Sub Menu" is added to it. The Sub Menu contains two options, "Option 1" and "Option 2". The Main Menu also has an additional option, "Option 3". The LeagueSharp.Common package/library is used in these examples to create automated scripts and bots for League of Legends. With the Menu SubMenu feature, script developers can create organized and customizable options and settings for their scripts.