private void CreateMenu() { try { bool newMenu = false; LeagueSharp.Common.Menu menu; if (Menu.GetMenu("SAssembliesRoot") == null) { menu = new LeagueSharp.Common.Menu("SAssemblies", "SAssembliesRoot", true); newMenu = true; } else { menu = Menu.GetMenu("SAssembliesRoot"); } MainMenu.Timer = Timer.SetupMenu(menu); mainMenu.UpdateDirEntry(ref MainMenu.Altar, Altar.SetupMenu(MainMenu.Timer.Menu)); var globalMenu = Menu.GetSubMenu(menu, "SAwarenessGlobalSettings"); if (globalMenu == null) { Menu.GlobalSettings.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu("Global Settings", "SAwarenessGlobalSettings")); Menu.GlobalSettings.Menu.AddItem( new MenuItem("SAssembliesGlobalSettingsServerChatPingActive", "Server Chat/Ping").SetValue(false)); Menu.GlobalSettings.Menu.AddItem( new MenuItem("SAssembliesGlobalSettingsVoiceVolume", "Voice Volume").SetValue(new Slider(100, 0, 100))); } else { Menu.GlobalSettings.Menu = globalMenu; } if (newMenu) { menu.AddItem(new MenuItem("By Screeder", "By Screeder V" + Assembly.GetExecutingAssembly().GetName().Version)); menu.AddToMainMenu(); } } catch (Exception ex) { Console.WriteLine("SAssemblies: {0}", ex); throw; } }