本文整理汇总了C#中Menu.Get方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.Get方法的具体用法?C# Menu.Get怎么用?C# Menu.Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.Get方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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
}
示例2: 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:");
//.........这里部分代码省略.........
示例3: GetCheckbox
public static CheckBox GetCheckbox(Menu menu, string text)
{
return menu.Get<CheckBox>(menu.UniqueMenuId + text);
}
示例4: GetSliderValue
public static int GetSliderValue(Menu menu, string text)
{
return menu.Get<Slider>(menu.UniqueMenuId + text).CurrentValue;
}
示例5: GetSlider
public static Slider GetSlider(Menu menu, string text)
{
return menu.Get<Slider>(menu.UniqueMenuId + text);
}
示例6: GetComboBoxText
public static string GetComboBoxText(Menu menu, string text)
{
return menu.Get<ComboBox>(menu.UniqueMenuId + text).SelectedText;
}
示例7: GetComboBox
public static ComboBox GetComboBox(Menu menu, string text)
{
return menu.Get<ComboBox>(menu.UniqueMenuId + text);
}
示例8: GetKeybind
public static KeyBind GetKeybind(Menu menu, string text)
{
return menu.Get<KeyBind>(menu.UniqueMenuId + text);
}
示例9: IsEnabled
public static Func<bool> IsEnabled(Menu menu, string checkBoxKey)
{
return IsEnabled(menu.Get<CheckBox>(checkBoxKey));
}
示例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
//.........这里部分代码省略.........
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");
LaneClearMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
LaneClearMenu.CreateCheckBox(" - Use W On Enemy Turret", "wTurret");
LaneClearMenu.CreateSlider("Mana must be more than [{0}%] to use LaneClear spells", "manaSlider", 75);
LasthitMenu.AddGroupLabel("Spells");
LasthitMenu.CreateCheckBox(" - Use Q", "qUse");
LasthitMenu.AddGroupLabel("Settings");
LasthitMenu.CreateSlider("Mana must be more than [{0}%] to use LastHit spells", "manaSlider", 75);
JungleClearMenu.AddGroupLabel("Spells");
JungleClearMenu.CreateCheckBox(" - Use Q", "qUse");
JungleClearMenu.CreateCheckBox(" - Use W", "wUse");
JungleClearMenu.AddGroupLabel("Settings");
JungleClearMenu.CreateCheckBox(" - Save 1 W Stack", "wSave");
JungleClearMenu.CreateSlider("Mana must be more than [{0}%] to use JungleClear spells", "manaSlider", 50);
KillStealMenu.AddGroupLabel("Spells");
KillStealMenu.CreateCheckBox(" - Use Q", "qUse");
KillStealMenu.CreateCheckBox(" - Use W", "wUse");
KillStealMenu.CreateCheckBox(" - Use E", "eUse");
KillStealMenu.CreateCheckBox(" - Use R", "rUse");
MiscMenu.AddGroupLabel("Skin Changer");
var skinList = Mario_s_Lib.DataBases.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); };
}
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:");
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:");
}
示例12: LoadConfigPresets
public static void LoadConfigPresets()
{
Drawing.OnEndScene += Drawing_OnEndScene;
_configMenu = MainMenu.AddMenu("AdEvade Presets", "AdEvadePreset", "AdEvade Preset Manager");
_configMenu.AddGroupLabel("Installed Presets");
Configs = new Dictionary<ConfigPluginAttribute, ConfigPreset>();
//var cfg = new Default();
//Configs.Add(cfg.GetAttribute(), cfg);
ConsoleDebug.WriteLine("Loading Config Presets...");
var types = Assembly.GetExecutingAssembly().GetTypes();
var plugins = types.Where(IsConfigPlugin).ToList();
foreach (var plugin in plugins)
{
try
{
var pluginItem = (ConfigPreset)NewInstance(plugin);
if (pluginItem == null) continue;
var attribute = pluginItem.GetAttribute();
Configs.Add(attribute, pluginItem);
ConsoleDebug.WriteLine("Loaded Config: Name: {0} (By: {1}) Version: {2}\n Supported Champions: {3}",
attribute.Name, attribute.Author, attribute.Version,
string.Join(", ", attribute.RecomendedChampions));
_configMenu.AddLabel(GetFriendlyConfigTitle(attribute));
_configMenu.AddLabel("Recommended Champions: " + string.Join(", ", attribute.RecomendedChampions));
_configMenu.AddSeparator();
}
catch (Exception ex)
{
ConsoleDebug.WriteLineColor("Problem Creating Preset!", ConsoleColor.Red, true);
ConsoleDebug.WriteLine(ex, true);
}
}
_configMenu.Add("SelectedPluginIndex", new Slider("Selected Plugin Index", 0, 0, plugins.Count))
.IsVisible = false;
LoadMenus(_configMenu);
//Load default preset
LoadDefault();
//Load selected Preset. this stops any issues with key not found errors!
MoveTo(_configMenu.Get<Slider>("SelectedPluginIndex").CurrentValue);
}