public static void AddKeyBind(this Menu menu, string name, string displayname, uint key, KeyBind.BindTypes type) { menu.Add(name, new KeyBind(displayname, false, type, key)); }
private static string KeyToString(KeyBind key) { var sKey = key.Key.ToString(); var iKey = int.Parse(sKey); return iKey > 90 ? sKey : ((char)iKey).ToString(); }
public static void AddKeyBind(Menu m, string display, string unique, uint key, KeyBind.BindTypes k, bool def = false) { m.Add(unique, new KeyBind(display, def, k, key)); }
public static void AddKeybind(this Menu m, String uniq, String display, bool def = false, KeyBind.BindTypes key = KeyBind.BindTypes.HoldActive, uint keyy = 32) { m.Add(uniq, new KeyBind(display, def, key, keyy)); }
public static void AddKeyBind(EloBuddy.SDK.Menu.Menu menu, string displayName, string name, char key, KeyBind.BindTypes type) { menu.Add(name, new KeyBind(displayName, false, type, key)); }
static void Game_OnEnd(GameEndEventArgs args) { Game.OnUpdate -= Evade_OnUpdate; if (Menu.GetMenu("ezEvade", "ezEvade") != null) { var item = Menu.GetMenu("ezEvade", "ezEvade").Item("DodgeSkillShots"); var evadestatus = new KeyBind('K', KeyBindType.Toggle); evadestatus.Active = true; item.SetValue(evadestatus); } if (Menu.GetMenu("Evade", "Evade") != null) { var item = Menu.GetMenu("Evade", "Evade").Item("Enabled"); var evadestatus = new KeyBind('K', KeyBindType.Toggle); evadestatus.Active = true; item.SetValue(evadestatus); } }
static void Evade_OnUpdate(EventArgs arga) { if (Config.Item("aint").GetValue<bool>()) return; if (ECasted && Utils.GameTimeTickCount - ETimestamp > 250) { if (!Player.HasBuff("SivirE")) { ECasted = false; } if (Utils.GameTimeTickCount - ETimestamp >= Config.Item("blockduration").GetValue<Slider>().Value) { ECasted = false; } } #region Evade Stuff if (Config.Item("eint").GetValue<bool>()) { // EzEvade if (Menu.GetMenu("ezEvade", "ezEvade") != null) { var item = Menu.GetMenu("ezEvade", "ezEvade").Item("DodgeSkillShots"); var evadestatus = new KeyBind('K', KeyBindType.Toggle); if (E.IsReady() && E.Level > 0 && DodgeSpell()) evadestatus.Active = false; if (!E.IsReady() && !Player.HasBuff("SivirE") && E.Level > 0 || !DodgeSpell()) evadestatus.Active = true; if (E.Level > 0) item.SetValue(evadestatus); } // Evade# if (Menu.GetMenu("Evade", "Evade") != null) { var item = Menu.GetMenu("Evade", "Evade").Item("Enabled"); var evadestatus = new KeyBind('K', KeyBindType.Toggle); if (E.IsReady() && E.Level > 0 && DodgeSpell()) evadestatus.Active = false; if (!E.IsReady() && !Player.HasBuff("SivirE") && E.Level > 0 || !DodgeSpell()) evadestatus.Active = true; if (E.Level > 0) item.SetValue(evadestatus); } } #endregion }