protected override void CreateMenu() { ComboMenu = MenuManager.Menu.AddSubMenu("Combo"); ComboMenu.AddGroupLabel("Combo mode settings for Draven addon"); ComboMenu.AddLabel("Spinning Axe (Q) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseQ", new CheckBox("Use Q")); ComboMenu.Add("Plugins.Draven.ComboMenu.MaxAxesAmount", new Slider("Maximum axes amount", 2, 1, 3)); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Blood Rush (W) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseW", new CheckBox("Use W")); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Stand Aside (E) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseE", new CheckBox("Use E")); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Whirling Death (R) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseR", new CheckBox("Use R")); ComboMenu.Add("Plugins.Draven.ComboMenu.RKeybind", new KeyBind("R keybind", false, KeyBind.BindTypes.HoldActive, 'T')); ComboMenu.AddLabel("Fires R on best target in range when keybind is active."); ComboMenu.AddSeparator(5); var keybindRange = ComboMenu.Add("Plugins.Draven.ComboMenu.RRangeKeybind", new Slider("Maximum range to enemy to cast R while keybind is active", 1100, 300, 2500)); keybindRange.OnValueChange += (a, b) => { _changingkeybindRange = true; Core.DelayAction(() => { if (!keybindRange.IsLeftMouseDown && !keybindRange.IsMouseInside) { _changingkeybindRange = false; } }, 2000); }; AxeSettingsMenu = MenuManager.Menu.AddSubMenu("Axe Settings"); AxeSettingsMenu.AddGroupLabel("Axe settings for Draven addon"); AxeSettingsMenu.AddLabel("Basic settings :"); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxes", new CheckBox("Catch Axes")); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.UseWToCatch", new CheckBox("Cast W if axe is uncatchable")); AxeSettingsMenu.AddSeparator(5); AxeSettingsMenu.AddLabel("Catching settings :"); var axeMode = AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesMode", new ComboBox("Catch mode", 0, "Default", "Brutal", "Yorik")); AxeSettingsMenu.AddSeparator(2); AxeSettingsMenu.AddLabel("Default mode only tries to catch axe if distance to from player to axe is less than 250.\nBrutal catches all axes within range of desired catch radius.\n" + "Yorik mode catches axes around player insead of catching axes inside circle around your mouse"); AxeSettingsMenu.AddSeparator(5); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.AxeCatchRange", new Slider("Axe Catch Range", 450, 200, 1000)); AxeSettingsMenu.AddSeparator(2); var label = AxeSettingsMenu.Add("YorikMode", new Label( "This sets the range around your player within you will catch the axe.\nDon't set this too high.")); label.IsVisible = axeMode.CurrentValue == 2; axeMode.OnValueChange += (sender, args) => { label.IsVisible = args.NewValue == 2; }; AxeSettingsMenu.AddSeparator(); AxeSettingsMenu.AddLabel("Additional settings :"); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesUnderTower", new CheckBox("Catch Axes that are under enemy tower", false)); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesNearEnemies", new CheckBox("Catch Axes that are near enemies", false)); LaneClearMenu = MenuManager.Menu.AddSubMenu("Clear"); LaneClearMenu.AddGroupLabel("Lane clear settings for Draven addon"); LaneClearMenu.AddLabel("Basic settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.EnableLCIfNoEn", new CheckBox("Enable lane clear only if no enemies nearby")); var scanRange = LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.ScanRange", new Slider("Range to scan for enemies", 1500, 300, 2500)); scanRange.OnValueChange += (a, b) => { _changingRangeScan = true; Core.DelayAction(() => { if (!scanRange.IsLeftMouseDown && !scanRange.IsMouseInside) { _changingRangeScan = false; } }, 2000); }; LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.AllowedEnemies", new Slider("Allowed enemies amount", 1, 0, 5)); LaneClearMenu.AddSeparator(5); LaneClearMenu.AddLabel("Spinning Axe (Q) settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseQInLaneClear", new CheckBox("Use Q in Lane Clear")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseQInJungleClear", new CheckBox("Use Q in Jungle Clear")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.MinManaQ", new Slider("Min mana percentage ({0}%) to use Q", 50, 1)); LaneClearMenu.AddSeparator(5); LaneClearMenu.AddLabel("Blood Rush (W) settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseWInLaneClear", new CheckBox("Use Q in Lane Clear")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseWInJungleClear", new CheckBox("Use Q in Jungle Clear")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.MinManaW", new Slider("Min mana percentage ({0}%) to use W", 75, 1)); MenuManager.BuildAntiGapcloserMenu(); MenuManager.BuildInterrupterMenu(); MiscMenu = MenuManager.Menu.AddSubMenu("Misc"); MiscMenu.AddGroupLabel("Misc settings for Draven addon"); MiscMenu.AddLabel("Basic settings :"); MiscMenu.Add("Plugins.Draven.MiscMenu.EnableInterrupter", new CheckBox("Enable Interrupter")); MiscMenu.Add("Plugins.Draven.MiscMenu.EnableAntiGapcloser", new CheckBox("Enable Anti-Gapcloser")); DrawingsMenu = MenuManager.Menu.AddSubMenu("Drawings"); DrawingsMenu.AddGroupLabel("Drawings settings for Draven addon"); DrawingsMenu.AddLabel("Basic settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawSpellRangesWhenReady", new CheckBox("Draw spell ranges only when they are ready")); DrawingsMenu.AddSeparator(5); DrawingsMenu.AddLabel("Spinning Axe (Q) drawing settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxes", new CheckBox("Draw Axes")); DrawingsMenu.AddSeparator(1); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesTimer", new CheckBox("Draw Axes timer")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesCatchRange", new CheckBox("Draw Axe's catch range")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesCatchRangeColor", new CheckBox("Change Color", false)).OnValueChange += (a, b) => { if (!b.NewValue) { return; } ColorPicker[1].Initialize(Color.Aquamarine); a.CurrentValue = false; }; DrawingsMenu.AddSeparator(5); DrawingsMenu.AddLabel("Stand Aside (E) drawing settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawE", new CheckBox("Draw E range")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawEColor", new CheckBox("Change Color", false)).OnValueChange += (a, b) => { if (!b.NewValue) { return; } ColorPicker[0].Initialize(Color.Aquamarine); a.CurrentValue = false; }; }
protected override void CreateMenu() { ComboMenu = MenuManager.Menu.AddSubMenu("Combo"); ComboMenu.AddGroupLabel("Combo mode settings for Draven addon"); ComboMenu.AddLabel("Spinning Axe (Q) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseQ", new CheckBox("Kullan Q")); ComboMenu.Add("Plugins.Draven.ComboMenu.MaxAxesAmount", new Slider("En fazla balta miktari", 2, 1, 3)); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Blood Rush (W) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseW", new CheckBox("Kullan W")); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Stand Aside (E) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseE", new CheckBox("Kullan E")); ComboMenu.AddSeparator(5); ComboMenu.AddLabel("Whirling Death (R) settings :"); ComboMenu.Add("Plugins.Draven.ComboMenu.UseR", new CheckBox("Kullan R")); ComboMenu.Add("Plugins.Draven.ComboMenu.RKeybind", new KeyBind("R keybind", false, KeyBind.BindTypes.HoldActive, 'T')); ComboMenu.AddLabel("Fires R on best target in range when keybind is active."); ComboMenu.AddSeparator(5); var keybindRange = ComboMenu.Add("Plugins.Draven.ComboMenu.RRangeKeybind", new Slider("R kullanmak icin izin verilen en fazla uzaklik", 1100, 300, 2500)); keybindRange.OnValueChange += (a, b) => { _changingkeybindRange = true; Core.DelayAction(() => { if (!keybindRange.IsLeftMouseDown && !keybindRange.IsMouseInside) { _changingkeybindRange = false; } }, 2000); }; AxeSettingsMenu = MenuManager.Menu.AddSubMenu("Axe Settings"); AxeSettingsMenu.AddGroupLabel("Axe settings for Draven addon"); AxeSettingsMenu.AddLabel("Basic settings :"); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxes", new CheckBox("Balta yakala")); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.UseWToCatch", new CheckBox("Balta yakalanamiyorsa W kullan")); AxeSettingsMenu.AddSeparator(5); AxeSettingsMenu.AddLabel("Catching settings :"); var axeMode = AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesMode", new ComboBox("Balta modu", 0, "Varsayilan", "Acimasiz", "Yorik")); AxeSettingsMenu.AddSeparator(2); AxeSettingsMenu.AddLabel("Varsayilan mod sadece oyuncudan balta uzakliginin 250'den az olmasi durumunda baltayi yakalamaya calisiyor.\nAcimasiz mod tum baltalari istenen yakalama yaricapi araliginda yakalar.\n" + "Yorik mode farenizin cevresindeki baltalari yakalanmak yerine oyuncu etrafinda baltalar yakalar"); AxeSettingsMenu.AddSeparator(5); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.AxeCatchRange", new Slider("Balta tutma mesafesi", 450, 200, 1000)); AxeSettingsMenu.AddSeparator(2); var label = AxeSettingsMenu.Add("YorikMode", new Label( "Bu oyuncunun etrafindaki araligi ayarlar ve balta yakalar.\nCok yuksek ayarlamayiniz.")); label.IsVisible = axeMode.CurrentValue == 2; axeMode.OnValueChange += (sender, args) => { label.IsVisible = args.NewValue == 2; }; AxeSettingsMenu.AddSeparator(); AxeSettingsMenu.AddLabel("Additional settings :"); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesUnderTower", new CheckBox("Kule alti balta yakala", false)); AxeSettingsMenu.Add("Plugins.Draven.AxeSettingsMenu.CatchAxesNearEnemies", new CheckBox("Dusmanlarin yakinindaki baltayi yakala", false)); LaneClearMenu = MenuManager.Menu.AddSubMenu("Clear"); LaneClearMenu.AddGroupLabel("Lane clear settings for Draven addon"); LaneClearMenu.AddLabel("Basic settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.EnableLCIfNoEn", new CheckBox("Yakinda dusman yoksa koridor temizle")); var scanRange = LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.ScanRange", new Slider("Dusman uzakligi", 1500, 300, 2500)); scanRange.OnValueChange += (a, b) => { _changingRangeScan = true; Core.DelayAction(() => { if (!scanRange.IsLeftMouseDown && !scanRange.IsMouseInside) { _changingRangeScan = false; } }, 2000); }; LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.AllowedEnemies", new Slider("Izin verilen dusman miktarı", 1, 0, 5)); LaneClearMenu.AddSeparator(5); LaneClearMenu.AddLabel("Spinning Axe (Q) settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseQInLaneClear", new CheckBox("Koridor temizlemede Q kullan")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseQInJungleClear", new CheckBox("Orman temizlemede Q kullan")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.MinManaQ", new Slider("Min mana percentage ({0}%) to use Q", 50, 1)); LaneClearMenu.AddSeparator(5); LaneClearMenu.AddLabel("Blood Rush (W) settings :"); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseWInLaneClear", new CheckBox("Koridor temizlemede W kullan")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.UseWInJungleClear", new CheckBox("Orman temizlemede W kullan")); LaneClearMenu.Add("Plugins.Draven.LaneClearMenu.MinManaW", new Slider("Min mana percentage ({0}%) to use W", 75, 1)); MenuManager.BuildAntiGapcloserMenu(); MenuManager.BuildInterrupterMenu(); MiscMenu = MenuManager.Menu.AddSubMenu("Misc"); MiscMenu.AddGroupLabel("Misc settings for Draven addon"); MiscMenu.AddLabel("Basic settings :"); MiscMenu.Add("Plugins.Draven.MiscMenu.EnableInterrupter", new CheckBox("Kesici Aktif")); MiscMenu.Add("Plugins.Draven.MiscMenu.EnableAntiGapcloser", new CheckBox("Ani atilma onleyicisi aktif")); DrawingsMenu = MenuManager.Menu.AddSubMenu("Drawings"); DrawingsMenu.AddGroupLabel("Drawings settings for Draven addon"); DrawingsMenu.AddLabel("Basic settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawSpellRangesWhenReady", new CheckBox("Hazir olan buyuleri goster")); DrawingsMenu.AddSeparator(5); DrawingsMenu.AddLabel("Spinning Axe (Q) drawing settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxes", new CheckBox("Goster Balta")); DrawingsMenu.AddSeparator(1); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesTimer", new CheckBox("Goster balta zamani")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesCatchRange", new CheckBox("Goster balta tutma menzili")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawAxesCatchRangeColor", new CheckBox("Rengi Sec", false)).OnValueChange += (a, b) => { if (!b.NewValue) { return; } ColorPicker[1].Initialize(Color.Aquamarine); a.CurrentValue = false; }; DrawingsMenu.AddSeparator(5); DrawingsMenu.AddLabel("Stand Aside (E) drawing settings :"); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawE", new CheckBox("Goster E menzili")); DrawingsMenu.Add("Plugins.Draven.DrawingsMenu.DrawEColor", new CheckBox("Rengi Sec", false)).OnValueChange += (a, b) => { if (!b.NewValue) { return; } ColorPicker[0].Initialize(Color.Aquamarine); a.CurrentValue = false; }; }