本文整理汇总了C#中Menu.CreateSlider方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.CreateSlider方法的具体用法?C# Menu.CreateSlider怎么用?C# Menu.CreateSlider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.CreateSlider方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Combo
static Combo()
{
Menu = MenuLoader.Menu.AddSubMenu("Combo");
Menu.AddGroupLabel("Combo settings");
Menu.AddGroupLabel("Q settings");
Menu.CreateCheckBox("Use in combo", "Config.Combo.Q.Status");
Menu.CreateSlider("Delay (ms) between Q -> AA", "Config.Combo.Q.Delay", 100, 0, 300);
Menu.AddGroupLabel("W settings");
Menu.CreateCheckBox("Use in combo", "Config.Combo.W.Status");
Menu.CreateSlider("Use when target distance <= {0} units", "Config.Combo.W.Distance", 525, 200, 875);
Menu.AddGroupLabel("E settings");
Menu.CreateCheckBox("Use in combo", "Config.Combo.E.Status");
Menu.CreateCheckBox("Use always after Q -> AA", "Config.Combo.E.AfterQAA");
Menu.AddGroupLabel("R settings");
Menu.CreateCheckBox("Use in combo", "Config.Combo.R.Status");
Menu.CreateSlider("Subtract {0} from damage calculations", "Config.Combo.R.Substract", 5, 0, 25);
Menu.AddLabel("Whitelist :");
foreach (var e in EntityManager.Heroes.Enemies)
{
Menu.CreateCheckBox($"Use on {e.ChampionName}", $"Config.Combo.R.Use.{e.ChampionName}");
}
}
示例2: Settings
static Settings()
{
Menu = Loader.Menu.AddSubMenu("Settings");
Menu.AddGroupLabel("Settings");
Menu.CreateCheckBox("Enable chat info", "Settings.Chat.Status");
Menu.CreateCheckBox("Try to prevent canceling spells by items (like Katarina R)", "Settings.PreventCanceling");
Menu.CreateSlider("Delay between ticks [{0} ms]", "Settings.Tick", 50, 25, 500);
Menu.CreateSlider("Enemy champions detection range", "Settings.Range", 700, 300, 1000);
}
示例3: Farm
static Farm()
{
Menu = MenuLoader.Menu.AddSubMenu("Farm");
Menu.AddGroupLabel("Farm settings");
Menu.AddGroupLabel("Q settings");
Menu.CreateCheckBox("Use in lane clear / jungle clear", "Config.Farm.Q.Status");
Menu.CreateCheckBox("Use in last hit mode", "Config.Farm.Q.LastHit");
Menu.CreateCheckBox("Use on unkillable minion", "Config.Farm.Q.Unkillable");
Menu.CreateSlider("Delay (ms) between Q -> AA", "Config.Farm.Q.Delay", 100, 0, 300);
Menu.AddGroupLabel("E settings");
Menu.CreateCheckBox("Use in lane clear / jungle clear", "Config.Farm.E.Status");
Menu.CreateSlider("Use only if creeps near >= {0}", "Config.Farm.E.Near", 3, 1, 5);
Menu.CreateCheckBox("Ignore creeps count in jungle clear", "Config.Farm.E.Ignore");
Menu.CreateCheckBox("Use always after Q -> AA", "Config.Farm.E.AfterQAA");
}
示例4: Harass
static Harass()
{
Menu = MenuLoader.Menu.AddSubMenu("Harass");
Menu.AddGroupLabel("Harass settings");
Menu.AddGroupLabel("Q settings");
Menu.CreateCheckBox("Use in harass", "Config.Harass.Q.Status");
Menu.CreateSlider("Delay (ms) between Q -> AA", "Config.Harass.Q.Delay", 100, 0, 300);
Menu.AddGroupLabel("W settings");
Menu.CreateCheckBox("Use in harass", "Config.Harass.W.Status");
Menu.CreateSlider("Use when target distance <= {0} units", "Config.Harass.W.Distance", 525, 200, 875);
Menu.AddGroupLabel("E settings");
Menu.CreateCheckBox("Use in harass", "Config.Harass.E.Status");
Menu.CreateCheckBox("Use always after Q -> AA", "Config.Harass.E.AfterQAA");
}
示例5: InitiliazeDangerHandler
/// <summary>
///
/// </summary>
/// <param name="m">Your first menu</param>
public static void InitiliazeDangerHandler(this Menu m)
{
DangerHandler.Init();
SettingsMenu = m.AddSubMenu("• Danger Settings", "dangersettings");
SettingsMenu.AddGroupLabel("Danger Options");
SettingsMenu.CreateSlider("Add [{0}%] to the item HP% slider if the spell is dangerous", "dangerSlider", 10, 10, 50);
SettingsMenu.AddLabel("Dont mess with the options if you dont know what they do");
SettingsMenu.CreateSlider("Extra range to be safe of a skillshot", "saferange", 110, 80, 180);
//Spells Menu
SettingsMenu.AddGroupLabel("Spells to consider");
SettingsMenu.AddLabel("Disable/Enable dangerous spells");
foreach (var s in EntityManager.Heroes.Enemies.SelectMany(e => DangerousSpells.Spells.Where(s => s.Hero == e.Hero)))
{
SettingsMenu.CreateCheckBox(s.Hero + "`s " + s.Slot, "dangSpell" + s.Hero + s.Slot);
}
}
示例6: Misc
static Misc()
{
Menu = MenuLoader.Menu.AddSubMenu("Misc");
Menu.AddGroupLabel("Misc settings");
Menu.AddGroupLabel("Kill Steal");
Menu.CreateCheckBox("KillSteal with Q", "Config.Misc.KillSteal.Q");
Menu.CreateCheckBox("KillSteal with R", "Config.Misc.KillSteal.R");
Menu.AddGroupLabel("Skin manager");
Menu.CreateCheckBox("Enable skin changer", "Misc.Skin.Status");
Menu.CreateSlider("Select your skin", "Misc.Skin.Id", 0, 0, 8);
Menu.AddGroupLabel("Humanizer");
Menu.CreateCheckBox("Enable humanizer", "Misc.Humanizer.Status", false);
Menu.CreateSlider("Select your delay between spells in (ms).", "Misc.Humanizer.Delay", 200, 50, 500);
Menu.CreateSlider("Additional random delay in (ms).", "Misc.Humanizer.RandomDelay", 75, 50, 100);
Menu.AddGroupLabel("Another settings");
Menu.CreateCheckBox("Enable Interrupter", "Config.Misc.Another.Interrupter");
Menu.CreateSlider("Interrupter cast delay", "Config.Misc.Another.Delay", 100, 0, 500);
Menu.CreateCheckBox("Enable auto Slow Remove", "Config.Misc.Another.Slow");
Menu.CreateSlider("Slow Remover cast delay", "Config.Misc.Another.SlowDelay", 100, 0, 500);
#region Disable / enable skin changer
if (Menu.Get<CheckBox>("Misc.Skin.Status").CurrentValue)
Player.Instance.SetSkinId(Menu.GetSliderValue("Misc.Skin.Id"));
Menu.Get<CheckBox>("Misc.Skin.Status").OnValueChange += (ValueBase<bool> sender, ValueBase<bool>.ValueChangeArgs args) =>
{
if (args.NewValue == false) Player.Instance.SetSkinId(0);
else Player.Instance.SetSkinId(Menu.GetSliderValue("Misc.Skin.Id"));
};
Menu.Get<Slider>("Misc.Skin.Id").OnValueChange += (ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args) =>
{
if (Menu.GetCheckBoxValue("Misc.Skin.Status")) Player.Instance.SetSkinId(Menu.GetSliderValue("Misc.Skin.Id"));
};
#endregion
}
示例7: Protector
static Protector()
{
Menu = Loader.Menu.AddSubMenu("Protector");
Menu.AddGroupLabel("Protector settings");
if (Managers.SummonerManager.PlayerHasHeal)
{
Menu.CreateCheckBox("Enable heal", "Protector.Heal.Status");
Menu.CreateCheckBox("Heal only dangerous", "Protector.Heal.Dangerous");
Menu.CreateSlider("Heal if my HP <= {0}%", "Protector.Heal.Health.Me", 10);
Menu.CreateSlider("Heal if ally HP <= {0}%", "Protector.Heal.Health.Ally", 10);
Menu.AddSeparator(10);
Menu.AddLabel("Whitelist : ");
foreach (var ally in EntityManager.Heroes.Allies.Where(a => !a.IsMe))
Menu.CreateCheckBox(ally.ChampionName + " (" + ally.Name + ")", "Protector.Heal.Use." + ally.ChampionName);
}
else
{
Menu.AddSeparator(10);
Menu.AddLabel("You don't have any spell to protect your allies.");
}
}
示例8: CItems
static CItems()
{
Menu = Loader.Menu.AddSubMenu("Consumer items");
Menu.AddGroupLabel("Consumer items settings");
#region Potions
Menu.AddGroupLabel("Potions");
Menu.CreateCheckBox("Use Potions", "Items.Consumer.Potions.Status");
Menu.CreateCheckBox("Use Health Potion", "Items.Consumer.HealthPotion.Status");
Menu.CreateCheckBox("Use Refillable Potion", "Items.Consumer.RefillablePotion.Status");
Menu.CreateCheckBox("Use Hunter's Potion", "Items.Consumer.HunterPotion.Status");
Menu.CreateCheckBox("Use Corrupting Potion", "Items.Consumer.CorruptingPotion.Status");
Menu.CreateSlider("Use only if my HP <= {0}%", "Items.Consumer.Health");
Menu.AddSeparator(15);
#endregion
}
示例9: OItems
static OItems()
{
Menu = Loader.Menu.AddSubMenu("Offensive items");
Menu.AddGroupLabel("Offensive items settings");
#region Tiamat / Ravenous Hydra
Menu.AddGroupLabel("Tiamat / Ravenous Hydra");
Menu.CreateCheckBox("Use Tiamat / Ravenous Hydra", "Items.Offensive.Tiamat.Status");
Menu.CreateCheckBox("Use in combo", "Items.Offensive.Tiamat.Combo");
Menu.CreateCheckBox("Use in farm", "Items.Offensive.Tiamat.Farm");
Menu.AddSeparator(15);
#endregion
#region Titanic Hydra
Menu.AddGroupLabel("Titanic Hydra");
Menu.CreateCheckBox("Use Titanic Hydra", "Items.Offensive.TitanicHydra.Status");
Menu.CreateSlider("Use only if target distance <= {0} units", "Items.TitanicHydra.Distance", 150, 100, 500);
Menu.AddSeparator(15);
#endregion
#region Youmuu's Ghostblade
Menu.AddGroupLabel("Youmuu's Ghostblade");
Menu.CreateCheckBox("Use Youmuu's Ghostblade", "Items.Offensive.Youmuu.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.Youmuu.ComboOnly");
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.Youmuu.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.Youmuu.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.Youmuu.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Bilgewater Cutlass
Menu.AddGroupLabel("Bilgewater Cutlass");
Menu.CreateCheckBox("Use Bilgewater Cutlass", "Items.Offensive.Cutlass.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.Cutlass.ComboOnly");
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.Cutlass.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.Cutlass.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.Cutlass.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Blade of the Ruined King
Menu.AddGroupLabel("Blade of the Ruined King");
Menu.CreateCheckBox("Use Blade of the Ruined King", "Items.Offensive.Botrk.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.Botrk.ComboOnly");
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.Botrk.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.Botrk.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.Botrk.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Hextech Gunblade
Menu.AddGroupLabel("Hextech Gunblade");
Menu.CreateCheckBox("Use Hextech Gunblade", "Items.Offensive.Gunblade.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.Gunblade.ComboOnly");
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.Gunblade.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.Gunblade.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.Gunblade.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Hextech GLP-800
Menu.AddGroupLabel("Hextech GLP-800");
Menu.CreateCheckBox("Use Hextech Hextech GLP-800", "Items.Offensive.HextechGLP.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.HextechGLP.ComboOnly");
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.HextechGLP.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.HextechGLP.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.HextechGLP.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Hextech Protobelt-01
Menu.AddGroupLabel("Hextech Protobelt-01");
Menu.CreateCheckBox("Use Hextech Hextech GLP-800", "Items.Offensive.Protobelt.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Offensive.Protobelt.ComboOnly");
Menu.CreateCheckBox("Use when is wall between me and target", "Items.Offensive.Protobelt.EnableWall", false);
Menu.CreateCheckBox("Use versus melee champions", "Items.Offensive.Protobelt.Melee", false);
Menu.CreateSlider("Use only if my HP >= {0}%", "Items.Offensive.Protobelt.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use only if target HP >= {0}%", "Items.Offensive.Protobelt.Enemy.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Offensive.Protobelt.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
}
示例10: CreateMenu
public static void CreateMenu()
{
FirstMenu = MainMenu.AddMenu("Ronin`s " + Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "hue");
FirstMenu.AddGroupLabel("Tarafından Taazuma / Kullandığın için teşekkürler");
FirstMenu.AddLabel("Sorun varsa forumdan bana yazın");
FirstMenu.AddLabel("İyi oyunlar");
FirstMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
//AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);
ComboMenu.AddGroupLabel("Kombo");
ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
ComboMenu.CreateCheckBox(" - Kullan Q", "qUse");
ComboMenu.CreateCheckBox(" - Kullan W", "wUse");
ComboMenu.CreateCheckBox(" - Kullan E", "eUse");
ComboMenu.CreateCheckBox(" - Kullan R", "rUse");
ComboMenu.Add("hpR", new Slider("R kullanmak için % canım", 30));
ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
HarassMenu.AddGroupLabel("Dürtme");
HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
HarassMenu.CreateCheckBox(" - Kullan W", "wUse");
HarassMenu.CreateCheckBox(" - Kullan E", "eUse");
HarassMenu.AddGroupLabel("Ayarları");
HarassMenu.CreateSlider("Manam şundan azsa kullanma %", "manaSlider", 30);
HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
LaneClearMenu.AddGroupLabel("Lanetemizleme");
LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
LaneClearMenu.CreateCheckBox(" - Kullan Q", "qUse", false);
LaneClearMenu.CreateCheckBox(" - Kullan E", "eUse");
LaneClearMenu.AddGroupLabel("Ayarları");
LaneClearMenu.CreateSlider("Manam şundan azsa kullanma %", "manaSlider", 20);
LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
LasthitMenu.AddGroupLabel("Sonvuruş");
LasthitMenu.CreateCheckBox(" - Kullan Q", "qUse", true);
LasthitMenu.AddGroupLabel("Ayarları");
LasthitMenu.CreateSlider("Manam şundan azsa kullanma %", "manaSlider", 30);
JungleClearMenu.AddGroupLabel("OrmanTemizleme");
JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
JungleClearMenu.CreateCheckBox(" - Kullan Q", "qUse");
JungleClearMenu.CreateCheckBox(" - Kullan W", "wUse");
JungleClearMenu.CreateCheckBox(" - Kullan E", "eUse");
JungleClearMenu.AddGroupLabel("Ayarları");
JungleClearMenu.CreateSlider("Manam şundan azsa kullanma %", "manaSlider", 15);
JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
MiscMenu.AddGroupLabel("Skin Değiştrici");
var skinList = Mario_s_Lib.DataBases.Skins.SkinsDB.FirstOrDefault(list => list.Champ == Player.Instance.Hero);
if (skinList != null)
{
MiscMenu.CreateComboBox("Skinini Seç", "skinComboBox", skinList.Skins);
MiscMenu.Get<ComboBox>("skinComboBox").OnValueChange += delegate(ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args)
{
Player.Instance.SetSkinId(sender.CurrentValue);
};
}
MiscMenu.AddGroupLabel("Otomatik Level Arttırma");
MiscMenu.CreateCheckBox("Aktif Otomatik Level Arttırma", "activateAutoLVL", false);
MiscMenu.AddLabel("her zaman R öncelik verir gerisini ayarla");
MiscMenu.CreateComboBox("1.ci öncelik büyü", "firstFocus", new List<string> {"Q", "W", "E"});
MiscMenu.CreateComboBox("2.ci öncelik büyü", "secondFocus", new List<string> {"Q", "W", "E"}, 1);
MiscMenu.CreateComboBox("3.cü öncelik büyü", "thirdFocus", new List<string> {"Q", "W", "E"}, 2);
MiscMenu.CreateSlider("Gecikme Ayarı ms", "delaySlider", 200, 150, 500);
DrawingsMenu.AddGroupLabel("Ayarlar");
DrawingsMenu.CreateCheckBox(" - Sadece hazır büyüleri göster.", "readyDraw");
DrawingsMenu.CreateCheckBox(" - Hasar tespitçisi göster.", "damageDraw");
DrawingsMenu.CreateCheckBox(" - Hasarı yüzde olarak göster.", "perDraw");
DrawingsMenu.CreateCheckBox(" - Hasar istatistiklerini göster.", "statDraw", false);
DrawingsMenu.AddGroupLabel("Büyüler");
DrawingsMenu.CreateCheckBox(" - göster Q.", "qDraw");
DrawingsMenu.CreateCheckBox(" - göster W.", "wDraw");
DrawingsMenu.CreateCheckBox(" - göster E.", "eDraw");
DrawingsMenu.CreateCheckBox(" - göster R.", "rDraw");
DrawingsMenu.AddGroupLabel("Gösterge Rengi");
QColorSlide = new ColorSlide(DrawingsMenu, "qColor", Color.Red, "Q Rengi:");
WColorSlide = new ColorSlide(DrawingsMenu, "wColor", Color.Purple, "W Rengi:");
EColorSlide = new ColorSlide(DrawingsMenu, "eColor", Color.Orange, "E Rengi:");
RColorSlide = new ColorSlide(DrawingsMenu, "rColor", Color.DeepPink, "R Rengi:");
DamageIndicatorColorSlide = new ColorSlide(DrawingsMenu, "healthColor", Color.YellowGreen, "Hasartespitçisi Rengi:");
}
示例11: CreateMenu
public static void CreateMenu()
{
FirstMenu = MainMenu.AddMenu("KappAzir", "KappAzir");
FleeMenu = FirstMenu.AddSubMenu("• Jumper", FleeMenuID);
SpellsMenu = FirstMenu.AddSubMenu("• Spells Handler", SpellsMenuID);
ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);
FleeMenu.AddGroupLabel("Jumper - Flee Mode");
FleeMenu.Add("flee", new KeyBind("Jumper Key", false, KeyBind.BindTypes.HoldActive, 'A'));
FleeMenu.CreateSlider("Use Soldiers in {0} Range", "range", 1000, 150, 1500);
FleeMenu.CreateSlider("EQ Delay = {0}", "delay", 250, 150, 500);
FleeMenu.AddSeparator(0);
FleeMenu.AddLabel("This is used for the Delay of Casting between E > Q");
FleeMenu.AddLabel("Used In Insec / Flee Mode");
FleeMenu.AddSeparator(0);
FleeMenu.AddGroupLabel("Insec Mode");
FleeMenu.AddLabel("Select a Target then hold the insec key");
FleeMenu.Add("insect", new KeyBind("Normal InSec", false, KeyBind.BindTypes.HoldActive, 'S'));
FleeMenu.Add("insected", new KeyBind("New InSec", false, KeyBind.BindTypes.HoldActive, 'Z'));
FleeMenu.AddGroupLabel("Normal Insec Settings");
FleeMenu.CreateCheckBox(" - Push Enemy To Allis", "Ally");
FleeMenu.CreateCheckBox(" - Push Enemy To Ally Tower", "Tower");
FleeMenu.AddSeparator(0);
FleeMenu.AddGroupLabel("New Insec Settings");
FleeMenu.CreateComboBox("Q Position", "qpos", new List<string> { "To Mouse", "To Old Position", "To Tower", "To Ally" });
FleeMenu.CreateComboBox("R Position", "rpos", new List<string> { "To Mouse", "To Old Position", "To Tower", "To Ally" });
FleeMenu.CreateSlider("Lower Q Distance by [{0}]", "dis", 0, 0, 500);
SpellsMenu.AddGroupLabel("Spells Handler");
SpellsMenu.CreateCheckBox(" - R Anti GapCloser", "rUseGap");
SpellsMenu.CreateCheckBox(" - R Interrupter", "rUseInt");
SpellsMenu.CreateComboBox("Interrupter DangerLevel", "Intdanger", new List<string> { "High", "Medium", "Low" });
SpellsMenu.AddGroupLabel("Hit Chance");
SpellsMenu.CreateComboBox("HitChance", "chance", new List<string> { "High", "Medium", "Low" });
ComboMenu.AddGroupLabel("Spells");
ComboMenu.CreateCheckBox(" - Use Q", "qUse");
ComboMenu.CreateCheckBox(" - Use W", "wUse");
ComboMenu.CreateCheckBox(" - Use E", "eUse");
ComboMenu.CreateCheckBox(" - Use R", "rUse");
ComboMenu.CreateSlider("Create Tower If Enemies Near [{0}]", "TowerPls", 2, 1, 5);
ComboMenu.AddSeparator();
ComboMenu.AddGroupLabel("Q Extra Settings");
ComboMenu.CreateCheckBox(" - Use Q If Target Not In Soldiers Range", "qUseAA", false);
ComboMenu.CreateSlider("Soldier Count to Cast Q [{0}]", "Qcount", 1, 1, 3);
ComboMenu.CreateSlider("Q AoE hit [{0}]", "Qaoe", 2, 1, 5);
ComboMenu.AddSeparator();
ComboMenu.AddGroupLabel("W Extra Settings");
ComboMenu.CreateCheckBox(" - Use W If Target Not In Soldiers Range", "wUseAA", false);
ComboMenu.CreateCheckBox(" - Save 1 W Stack", "wSave", false);
ComboMenu.AddSeparator();
ComboMenu.AddGroupLabel("E Extra Settings");
ComboMenu.CreateCheckBox(" - Use E Only if target Killable", "eUsekill");
ComboMenu.CreateCheckBox(" - E Dive Towers", "eUseDive", false);
ComboMenu.CreateSlider("No E if Target Health more than my health by [{0}%]", "eHealth", 15);
ComboMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 2, 1, 5);
ComboMenu.AddSeparator();
ComboMenu.AddGroupLabel("R Extra Settings");
ComboMenu.CreateCheckBox(" - R Over Kill Check", "rOverKill");
ComboMenu.CreateCheckBox(" - Use R Finisher", "rUsekill");
ComboMenu.CreateCheckBox(" - Use R Saver", "rUseSave", false);
ComboMenu.CreateCheckBox(" - Push Enemy To Allis", "rUseAlly");
ComboMenu.CreateCheckBox(" - Push Enemy To Ally Tower", "rUseTower");
ComboMenu.Add("Rcast", new KeyBind("Semi-Auto R", false, KeyBind.BindTypes.HoldActive, 'R'));
ComboMenu.CreateSlider("R AoE hit [{0}]", "Raoe", 2, 1, 5);
HarassMenu.AddGroupLabel("Spells");
HarassMenu.CreateCheckBox(" - Use Q", "qUse");
HarassMenu.CreateCheckBox(" - Use W", "wUse");
HarassMenu.CreateCheckBox(" - Use E", "eUse");
HarassMenu.AddGroupLabel("Settings");
HarassMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
HarassMenu.CreateCheckBox(" - E Dive Towers", "eUseDive", false);
HarassMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 3, 1, 5);
HarassMenu.CreateSlider("Mana must be more than [{0}%] to use Harass spells", "manaSlider", 60);
AutoHarassMenu.AddGroupLabel("Spells");
AutoHarassMenu.CreateCheckBox(" - Use Q", "qUse");
AutoHarassMenu.CreateCheckBox(" - Use W", "wUse");
AutoHarassMenu.CreateCheckBox(" - Use E", "eUse");
AutoHarassMenu.AddGroupLabel("Settings");
AutoHarassMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
AutoHarassMenu.CreateCheckBox(" - Always AutoAttack with soldiers", "attack", false);
AutoHarassMenu.CreateCheckBox(" - E Dive Towers", "eDive", false);
AutoHarassMenu.CreateSlider("No E if Enemies Near target more than [{0}]", "eSave", 3, 1, 5);
AutoHarassMenu.CreateKeyBind("Enable/Disable AutoHrass", "autoHarassKey", 'Z', 'U');
AutoHarassMenu.CreateSlider("Mana must be more than [{0}%] to use AutoHarass spells", "manaSlider", 60);
LaneClearMenu.AddGroupLabel("Spells");
LaneClearMenu.CreateCheckBox(" - Use Q", "qUse");
LaneClearMenu.CreateCheckBox(" - Use W", "wUse");
LaneClearMenu.AddGroupLabel("Settings");
//.........这里部分代码省略.........
示例12: CreateMenu
public static void CreateMenu()
{
FirstMenu = MainMenu.AddMenu("Mario`s "+Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "marios");
ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);
ComboMenu.AddGroupLabel("Spells");
ComboMenu.CreateCheckBox("Use Q", "qUse");
ComboMenu.CreateCheckBox("Use E", "eUse");
ComboMenu.CreateCheckBox("Use Smart Combo", "smartCombo");
HarassMenu.AddGroupLabel("Spells");
HarassMenu.CreateCheckBox("Use Q", "qUse");
HarassMenu.CreateCheckBox("Use E", "eUse");
HarassMenu.AddGroupLabel("Settings");
HarassMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
AutoHarassMenu.AddGroupLabel("Spells");
AutoHarassMenu.CreateCheckBox("Use Q", "qUse");
AutoHarassMenu.CreateCheckBox("Use E", "eUse");
AutoHarassMenu.AddGroupLabel("Settings");
AutoHarassMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
LaneClearMenu.AddGroupLabel("Spells");
LaneClearMenu.CreateCheckBox("Use Q", "qUse");
LaneClearMenu.CreateCheckBox("Use E", "eUse");
LaneClearMenu.AddGroupLabel("Settings");
LaneClearMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
LasthitMenu.AddGroupLabel("Spells");
LasthitMenu.CreateCheckBox("Use Q", "qUse");
LasthitMenu.CreateCheckBox("Use E", "eUse");
LasthitMenu.AddGroupLabel("Settings");
LasthitMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
JungleClearMenu.AddGroupLabel("Spells");
JungleClearMenu.CreateCheckBox("Use Q", "qUse");
JungleClearMenu.CreateCheckBox("Use E", "eUse");
JungleClearMenu.AddGroupLabel("Settings");
JungleClearMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
KillStealMenu.AddGroupLabel("Spells");
KillStealMenu.CreateCheckBox("Use Q", "qUse");
KillStealMenu.CreateCheckBox("Use E", "eUse");
KillStealMenu.CreateCheckBox("Use R", "rUse");
KillStealMenu.AddGroupLabel("Settings");
KillStealMenu.CreateSlider("Mana must be lower than [{0}%] to use Harass spells", "manaSlider", 30);
MiscMenu.AddGroupLabel("Settings");
DrawingsMenu.AddGroupLabel("Setting");
DrawingsMenu.CreateCheckBox("Draw spell`s range only if they are ready.", "readyDraw");
DrawingsMenu.CreateCheckBox("Draw damage indicator.", "damageDraw");
DrawingsMenu.CreateCheckBox("Draw damage indicator percent.", "perDraw");
DrawingsMenu.CreateCheckBox("Draw damage indicator statistics.", "statDraw", false);
DrawingsMenu.AddGroupLabel("Spells");
DrawingsMenu.CreateCheckBox("Draw Q.", "qDraw");
DrawingsMenu.CreateCheckBox("Draw W.", "wDraw");
DrawingsMenu.CreateCheckBox("Draw E.", "eDraw");
DrawingsMenu.CreateCheckBox("Draw R.", "rDraw");
DrawingsMenu.AddGroupLabel("Drawings Color");
QColorSlide = new ColorSlide(DrawingsMenu, "qColor", Color.Red, "Q Color:");
WColorSlide = new ColorSlide(DrawingsMenu, "wColor", Color.Purple, "W Color:");
EColorSlide = new ColorSlide(DrawingsMenu, "eColor", Color.Orange, "E Color:");
RColorSlide = new ColorSlide(DrawingsMenu, "rColor", Color.DeepPink, "R Color:");
DamageIndicatorColorSlide = new ColorSlide(DrawingsMenu, "healthColor", Color.YellowGreen, "DamageIndicator Color:");
}
示例13: Summoners
static Summoners()
{
Menu = Loader.Menu.AddSubMenu("Summoners");
Menu.AddGroupLabel("Summoners settings");
#region Smite
if (Managers.SummonerManager.PlayerHasSmite)
{
Menu.AddGroupLabel("Smite");
Menu.CreateKeyBind("Enable smite", "Summoners.Smite.Keybind", 'S', 'B');
Menu.AddSeparator(10);
Menu.CreateCheckBox("Draw smite range", "Summoners.Smite.Draw.Range", false);
Menu.CreateCheckBox("Draw smite status", "Summoners.Smite.Draw.Status");
Menu.CreateCheckBox("Draw smite damage", "Summoners.Smite.Draw.Damage");
Menu.AddSeparator(10);
Menu.CreateSlider("Keep {0} smite's", "Summoners.Smite.Keep.Count", 1, 0, 2);
Menu.CreateSlider("Subtract {0} from damage calculations", "Summoners.Smite.Substract", 5, 0, 35);
Menu.CreateCheckBox("Use smite on champions", "Summoners.Smite.Champions");
Menu.CreateSlider("Smite if enemies HP <= {0}%", "Summoners.Smite.Champions.Health", 45, 0, 100);
Menu.CreateCheckBox("KS with smite", "Summoners.Smite.KillSteal");
Menu.AddSeparator(10);
switch (Game.MapId)
{
case GameMapId.SummonersRift:
Menu.AddLabel("Epic monsters");
Menu.CreateCheckBox("Smite Baron", "Smite.Monster." + "SRU_Baron");
Menu.CreateCheckBox("Smite Herald", "Smite.Monster." + "SRU_RiftHerald");
Menu.CreateCheckBox("Smite Cloud Drake", "Smite.Monster." + "SRU_Dragon_Air");
Menu.CreateCheckBox("Smite Infernal Drake", "Smite.Monster." + "SRU_Dragon_Fire");
Menu.CreateCheckBox("Smite Mountain Drake", "Smite.Monster." + "SRU_Dragon_Earth");
Menu.CreateCheckBox("Smite Ocean Drake", "Smite.Monster." + "SRU_Dragon_Water");
Menu.CreateCheckBox("Smite Elder Drake", "Smite.Monster." + "SRU_Dragon_Elder");
Menu.AddLabel("Normal monsters");
Menu.CreateCheckBox("Smite Red", "Smite.Monster." + "SRU_Red");
Menu.CreateCheckBox("Smite Blue", "Smite.Monster." + "SRU_Blue");
Menu.AddLabel("Other monsters");
Menu.CreateCheckBox("Smite Gromp", "Smite.Monster." + "SRU_Gromp", false);
Menu.CreateCheckBox("Smite Murkwolf", "Smite.Monster." + "SRU_Murkwolf", false);
Menu.CreateCheckBox("Smite Razorbeak", "Smite.Monster." + "SRU_Razorbeak", false);
Menu.CreateCheckBox("Smite Krug", "Smite.Monster." + "SRU_Krug", false);
Menu.CreateCheckBox("Smite Crab", "Smite.Monster." + "Sru_Crab", false);
break;
case GameMapId.TwistedTreeline:
Menu.AddLabel("Epic monsters");
Menu.CreateCheckBox("Smite Vilemaw", "Smite.Monster." + "TT_Spiderboss");
Menu.AddLabel("Normal monsters");
Menu.CreateCheckBox("Smite Golem", "Smite.Monster." + "TTNGolem");
Menu.CreateCheckBox("Smite Wolf", "Smite.Monster." + "TTNWolf");
Menu.CreateCheckBox("Smite Wraith", "Smite.Monster." + "TTNWraith");
break;
}
Menu.AddSeparator(10);
}
#endregion
#region Ignite
if (Managers.SummonerManager.PlayerHasIgnite)
{
Menu.AddGroupLabel("Ignite");
Menu.CreateCheckBox("Enable ignite", "Summoners.Ignite.Status");
Menu.CreateCheckBox("KS with ignite", "Summoners.Ignite.KillSteal");
Menu.CreateSlider("Ignite if enemies HP <= {0}%", "Summoners.Ignite.Health", 15);
Menu.AddSeparator(10);
}
#endregion
#region Exhaust
if (Managers.SummonerManager.PlayerHasExhaust)
{
Menu.AddGroupLabel("Exhaust");
Menu.CreateCheckBox("Enable exhaust", "Summoners.Exhaust.Status");
Menu.CreateSlider("Exhaust if enemies HP <= {0}%", "Summoners.Exhaust.Health", 35);
Menu.AddSeparator(10);
}
#endregion
#region Heal
if (Managers.SummonerManager.PlayerHasHeal)
{
Menu.AddGroupLabel("Heal");
Menu.AddLabel("Heal can be configurable in Protector section.");
Menu.AddSeparator(10);
}
#endregion
#region Barrier
if (Managers.SummonerManager.PlayerHasBarrier)
{
Menu.AddGroupLabel("Barrier");
Menu.CreateCheckBox("Enable barrier", "Summoners.Barrier.Status");
Menu.CreateCheckBox("Barrier only dangerous", "Summoners.Barrier.Dangerous");
Menu.CreateSlider("Barrier if my HP <= {0}%", "Summoners.Barrier.Health", 10);
Menu.AddSeparator(10);
}
#endregion
#region Snowball
if (Managers.SummonerManager.PlayerHasSnowball)
{
Menu.AddGroupLabel("Snowball");
Menu.CreateCheckBox("Enable snowball", "Summoners.Snowball.Status");
Menu.AddSeparator(10);
}
#endregion
#region Cleanse
if (Managers.SummonerManager.PlayerHasCleanse)
//.........这里部分代码省略.........
示例14: DItems
static DItems()
{
Menu = Loader.Menu.AddSubMenu("Deffensive items");
Menu.AddGroupLabel("Deffensive items settings");
#region Zhonya's Hourglass
Menu.AddGroupLabel("Zhonya's Hourglass");
Menu.CreateCheckBox("Use Zhonya's Hourglass", "Items.Deffensive.Zhonya.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Deffensive.Zhonya.ComboOnly", false);
Menu.CreateSlider("Use only if my HP <= {0}%", "Items.Deffensive.Zhonya.Me.MinHealth", 5, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Deffensive.Zhonya.Enemies", 1, 1, 5);
Menu.CreateSlider("Use only if allies near >= {0}", "Items.Deffensive.Zhonya.Allies", 1, 0, 4);
Menu.AddSeparator(15);
#endregion
#region Locket of the Iron Solari
Menu.AddGroupLabel("Locket of the Iron Solari");
Menu.CreateCheckBox("Use Locket of the Iron Solari", "Items.Deffensive.Solari.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Deffensive.Solari.ComboOnly", false);
Menu.CreateSlider("Use if my HP <= {0}%", "Items.Deffensive.Solari.Me.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use if ally HP <= {0}%", "Items.Deffensive.Solari.Ally.MinHealth", 35, 1, 100);
Menu.CreateSlider("Use if sum of allies HP <= {0}%", "Items.Deffensive.Solari.Allies.MinHealth", 50, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Deffensive.Solari.Enemies", 1, 1, 5);
Menu.CreateSlider("Use only if allies near >= {0}", "Items.Deffensive.Solari.Allies", 0, 0, 4);
Menu.AddSeparator(15);
#endregion
#region Face of the Mountain
Menu.AddGroupLabel("Face of the Mountain");
Menu.CreateCheckBox("Use Face of the Mountain", "Items.Deffensive.Fotm.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Deffensive.Fotm.ComboOnly", false);
Menu.CreateSlider("Use if my HP <= {0}%", "Items.Deffensive.Fotm.Me.MinHealth", 15, 1, 100);
Menu.CreateSlider("Use if ally HP <= {0}%", "Items.Deffensive.Fotm.Ally.MinHealth", 15, 1, 100);
foreach (var a in EntityManager.Heroes.Allies.Where(a => !a.IsMe))
{
Menu.CreateCheckBox($"Use on {a.ChampionName}", $"Items.Deffensive.Fotm.Use.{a.ChampionName}");
}
Menu.AddSeparator(15);
#endregion
#region Seraph's Embrace
Menu.AddGroupLabel("Seraph's Embrace");
Menu.CreateCheckBox("Use Seraph's Embrace", "Items.Deffensive.Seraph.Status");
Menu.CreateCheckBox("Use only in combo mode", "Items.Deffensive.Seraph.ComboOnly", false);
Menu.CreateSlider("Use if my HP <= {0}%", "Items.Deffensive.Seraph.Me.MinHealth", 20, 1, 100);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Deffensive.Seraph.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
#region Redemption
Menu.AddGroupLabel("Redemption");
Menu.CreateCheckBox("Use Redemption", "Items.Deffensive.Redemption.Status");
Menu.CreateSlider("Use if sum of allies HP <= {0}%", "Items.Deffensive.Redemption.Hp", 50, 1, 100);
Menu.CreateSlider("Use only if allies in range >= {0}", "Items.Deffensive.Redemption.Enemies", 2, 0, 4);
Menu.CreateSlider("Use only if enemies near >= {0}", "Items.Deffensive.Redemption.Enemies", 1, 1, 5);
Menu.AddSeparator(15);
#endregion
/* TODO LIST
* - Mikael's Crucible
* - Redemption
* - Randuin's Omen
* - Zeke's Harbinger
* */
}
示例15: CreateMenu
public static void CreateMenu()
{
FirstMenu = MainMenu.AddMenu("Mario`s " + Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "hue");
ComboMenu = FirstMenu.AddSubMenu("• Combo", ComboMenuID);
HarassMenu = FirstMenu.AddSubMenu("• Harass", HarassMenuID);
AutoHarassMenu = FirstMenu.AddSubMenu("• AutoHarass", AutoHarassMenuID);
LaneClearMenu = FirstMenu.AddSubMenu("• LaneClear", LaneClearMenuID);
LasthitMenu = FirstMenu.AddSubMenu("• LastHit", LastHitMenuID);
JungleClearMenu = FirstMenu.AddSubMenu("• JungleClear", JungleClearMenuID);
KillStealMenu = FirstMenu.AddSubMenu("• KillSteal", KillStealMenuID);
MiscMenu = FirstMenu.AddSubMenu("• Misc", MiscMenuID);
DrawingsMenu = FirstMenu.AddSubMenu("• Drawings", DrawingsMenuID);
ComboMenu.AddGroupLabel("Spells");
ComboMenu.CreateCheckBox(" - Use Q", "qUse");
ComboMenu.CreateCheckBox(" - Use W", "wUse");
ComboMenu.CreateCheckBox(" - Use E", "eUse");
ComboMenu.CreateCheckBox(" - Use R", "rUse");
HarassMenu.AddGroupLabel("Spells");
HarassMenu.CreateCheckBox(" - Use Q", "qUse");
HarassMenu.CreateCheckBox(" - Use W", "wUse");
HarassMenu.CreateCheckBox(" - Use E", "eUse");
HarassMenu.CreateCheckBox(" - Use R", "rUse");
HarassMenu.AddGroupLabel("Settings");
HarassMenu.CreateSlider("Mana must be higher than [{0}%] to use Harass spells", "manaSlider", 30);
AutoHarassMenu.AddGroupLabel("Spells");
AutoHarassMenu.CreateCheckBox(" - Use Q", "qUse");
AutoHarassMenu.CreateCheckBox(" - Use W", "wUse");
AutoHarassMenu.CreateCheckBox(" - Use E", "eUse");
AutoHarassMenu.CreateCheckBox(" - Use R", "rUse");
AutoHarassMenu.AddGroupLabel("Settings");
AutoHarassMenu.CreateKeyBind("Enable/Disable AutoHrass", "autoHarassKey", 'Z', 'U');
AutoHarassMenu.CreateSlider("Mana must be higher than [{0}%] to use AutoHarass spells", "manaSlider", 30);
LaneClearMenu.AddGroupLabel("Spells");
LaneClearMenu.CreateCheckBox(" - Use Q", "qUse");
LaneClearMenu.CreateCheckBox(" - Use W", "wUse");
LaneClearMenu.CreateCheckBox(" - Use E", "eUse");
LaneClearMenu.CreateCheckBox(" - Use R", "rUse");
LaneClearMenu.AddGroupLabel("Settings");
LaneClearMenu.CreateSlider("Mana must be higher than [{0}%] to use LaneClear spells", "manaSlider", 30);
LasthitMenu.AddGroupLabel("Spells");
LasthitMenu.CreateCheckBox(" - Use Q", "qUse");
LasthitMenu.CreateCheckBox(" - Use W", "wUse");
LasthitMenu.CreateCheckBox(" - Use E", "eUse");
LasthitMenu.CreateCheckBox(" - Use R", "rUse");
LasthitMenu.AddGroupLabel("Settings");
LasthitMenu.CreateSlider("Mana must be higher than [{0}%] to use LastHit spells", "manaSlider", 30);
JungleClearMenu.AddGroupLabel("Spells");
JungleClearMenu.CreateCheckBox(" - Use Q", "qUse");
JungleClearMenu.CreateCheckBox(" - Use W", "wUse");
JungleClearMenu.CreateCheckBox(" - Use E", "eUse");
JungleClearMenu.CreateCheckBox(" - Use R", "rUse");
JungleClearMenu.AddGroupLabel("Settings");
JungleClearMenu.CreateSlider("Mana must be higher than [{0}%] to use JungleClear spells", "manaSlider", 30);
KillStealMenu.AddGroupLabel("Spells");
KillStealMenu.CreateCheckBox(" - Use Q", "qUse");
KillStealMenu.CreateCheckBox(" - Use W", "wUse");
KillStealMenu.CreateCheckBox(" - Use E", "eUse");
KillStealMenu.CreateCheckBox(" - Use R", "rUse");
KillStealMenu.AddGroupLabel("Settings");
KillStealMenu.CreateSlider("Mana must be higher than [{0}%] to use Killsteal spells", "manaSlider", 30);
MiscMenu.AddGroupLabel("Skin Changer");
var skinList = Skins.SkinsDB.FirstOrDefault(list => list.Champ == Player.Instance.Hero);
if (skinList != null)
{
MiscMenu.CreateComboBox("Choose the skin", "skinComboBox", skinList.Skins);
MiscMenu.Get<ComboBox>("skinComboBox").OnValueChange +=
delegate (ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args) { Player.Instance.SetSkinId(sender.CurrentValue); };
Player.Instance.SetSkinId(MiscMenu.Get<ComboBox>("skinComboBox").CurrentValue);
}
MiscMenu.AddGroupLabel("Auto Level UP");
MiscMenu.CreateCheckBox("Activate Auto Leveler", "activateAutoLVL", false);
MiscMenu.AddLabel("The auto leveler will always focus R than the rest of the spells");
MiscMenu.CreateComboBox("1st Spell to focus", "firstFocus", new List<string> {"Q", "W", "E"});
MiscMenu.CreateComboBox("2nd Spell to focus", "secondFocus", new List<string> {"Q", "W", "E"}, 1);
MiscMenu.CreateComboBox("3rd Spell to focus", "thirdFocus", new List<string> {"Q", "W", "E"}, 2);
MiscMenu.CreateSlider("Delay slider", "delaySlider", 200, 150, 500);
DrawingsMenu.AddGroupLabel("Setting");
DrawingsMenu.CreateCheckBox(" - Draw Spell`s range only if they are ready.", "readyDraw");
DrawingsMenu.CreateCheckBox(" - Draw damage indicator.", "damageDraw");
DrawingsMenu.CreateCheckBox(" - Draw damage indicator percent.", "perDraw");
DrawingsMenu.CreateCheckBox(" - Draw damage indicator statistics.", "statDraw", false);
DrawingsMenu.AddGroupLabel("Spells");
DrawingsMenu.CreateCheckBox(" - Draw Q.", "qDraw");
DrawingsMenu.CreateCheckBox(" - Draw W.", "wDraw");
DrawingsMenu.CreateCheckBox(" - Draw E.", "eDraw");
DrawingsMenu.CreateCheckBox(" - Draw R.", "rDraw");
DrawingsMenu.AddGroupLabel("Drawings Color");
QColorSlide = new ColorSlide(DrawingsMenu, "qColor", Color.Red, "Q Color:");
WColorSlide = new ColorSlide(DrawingsMenu, "wColor", Color.Purple, "W Color:");
//.........这里部分代码省略.........