public virtual void CloseMenu() { TargetSelector.AddToMenu(_targetSelectorMenu); GetMenu.AddSubMenu(_orbWalkerMenu); //ORBWALKER GetMenu.AddSubMenu(_targetSelectorMenu); GetMenu.AddToMainMenu(); }
public override void LoadComboMenu() { var _targetsRMe = new LeagueSharp.Common.Menu("Targets R killsteal", "Targets R kill"); { foreach (var hero in HeroManager.Enemies) { _targetsRMe.AddItem(new MenuItem("R" + hero.ChampionName, hero.ChampionName).SetValue(true)); } } var _RMenu = new LeagueSharp.Common.Menu("R Options", "R Menu"); { _RMenu.AddSubMenu(_targetsRMe); _RMenu.AddItem(new MenuItem("CR", "Use R killsteal").SetValue(true)); _RMenu.AddItem(new MenuItem("CRM", "Use R when x enemys on range").SetValue(new Slider(2, 0, 5))); } _comboMenu = new LeagueSharp.Common.Menu("Combo", "Combo"); { _comboMenu.AddItem(new MenuItem("CQ", "Use Q").SetValue(true)); _comboMenu.AddItem(new MenuItem("CQS", "Use Q only when can stun").SetValue(true)); _comboMenu.AddItem(new MenuItem("CW", "Use W").SetValue(true)); _comboMenu.AddItem(new MenuItem("CE", "Use E").SetValue(true)); _comboMenu.AddSubMenu(_RMenu); }; GetMenu.AddItem(new MenuItem("Prediction", "Prediction").SetValue( new StringList(new[] { "OKTW Prediction", "Common Prediction" }, 0))); base.LoadComboMenu(); }
/// <summary> /// Initiate the <see cref="Menu"/> <see cref="Control"/>s. (<strong>NOTE:</strong> should only be called once to avoid duplicate <see cref="Control"/>s) /// </summary> public override void InitMenu() { base.InitMenu(); #region ID Setup idLabel = new ColorableLabel("ID", ControlsFontColor, ControlsBorderColor, false); idText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false); Console.WriteLine(idText.Size); #region Setting the controls to be center idLabel.Position = new Vector2(Vector2.CenterX(idLabel.Size.x + idText.Size.x), HeaderPosY + HeaderOffset); idText.Position = new Vector2(idLabel.Position.x + idLabel.Size.x - 1, idLabel.Position.y); idText.TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black); #endregion GetMenu.Controls.AddControl(idLabel); GetMenu.Controls.AddControl(idText); #endregion #region Email Setup emailLabel = new ColorableLabel("Email", ControlsFontColor, ControlsBorderColor, false); emailText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false) { TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; #region Setting Controls to be Center emailLabel.Position = new Vector2(Vector2.CenterX(emailLabel.Size.x + emailText.Size.x), idLabel.Position.y + 3); emailText.Position = new Vector2(emailLabel.Position.x + emailLabel.Size.x - 1, emailLabel.Position.y); #endregion GetMenu.Controls.AddControl(emailLabel); GetMenu.Controls.AddControl(emailText); #endregion #region Remove Button Setup ColorableOption removeButton = new ColorableOption("Remove Loanee", ControlsFontColor, ControlsBorderColor, false) { SelectedIndex = Vector2.Zero }; removeButton.Position = new Vector2(Vector2.CenterX(removeButton.Size.x), emailText.Position.y + 3); removeButton.OnSelect += RemoveLoaneeButtonAction; GetMenu.Controls.AddControl(removeButton); #endregion #region Nav Button Setup NavButtonAction = (s) => { LoaneesMenu.Instance.GetMenu.Show(); ResetSelection(); GetMenu.Show(false); }; SetupNavButton(); #endregion ResetSelection(); }
public void LoadJungleClearMenu() { _JungleClearMenu = GetMenu.AddSubMenu("JungleClear", "JungleClear Menu"); { _JungleClearMenu.Add("JW", new CheckBox("Use W")); _JungleClearMenu.Add("JQ", new CheckBox("Use Q")); } }
// GET: User public ActionResult Index() { DataSet ds = new GetMenu { Id = 1, Class = "table striped" }.Select(); return(View()); }
public void LoadJumps() { _jumpMenu = GetMenu.AddSubMenu("Keys Menu", "Key Menu"); { _jumpMenu.Add("fleekey", new KeyBind("Jump key", false, KeyBind.BindTypes.HoldActive, 'Z')); _jumpMenu.Add("inseckey", new KeyBind("Insec key", false, KeyBind.BindTypes.HoldActive, 'T')); } }
public async Task <IHttpActionResult> CreateRole2(GetMenu model) { var pp = ""; // DeletePriveleges(model.bb.Name); var db4 = new ApplicationDbContext(); // var _db = new ApplicationDbContext(); var dc = model.bb; foreach (var pp2 in model.cc) { var ccd = (from c in db4.RolesPriviledges where c.RoleName == dc.Name select c).ToList(); if (ccd.Count > 0) { db4.RolesPriviledges.RemoveRange(ccd); db4.SaveChanges(); } } foreach (var pp2 in model.cc) { if (pp2.CreateNew == null) { pp2.CreateNew = "false"; } if (pp2.DeleteNew == null) { pp2.DeleteNew = "false"; } if (pp2.UpadateNew == null) { pp2.UpadateNew = "false"; } if (pp2.View == null) { pp2.View = "false"; } pp2.Menu_Code = GetMenuName(pp2.Menu_Code); db4.RolesPriviledges.Add(pp2); } try { db4.SaveChanges(); } catch (Exception ee) { var dx = ee.Message; } return(Ok()); }
public void LoadDrawings() { _drawSettingsMenu = GetMenu.AddSubMenu("Drawings", "Draw Settings"); { _drawSettingsMenu.Add("dsl", new CheckBox("Draw Soldier Line")); _drawSettingsMenu.Add("dcr", new CheckBox("Draw Control range")); _drawSettingsMenu.Add("dfr", new CheckBox("Draw Flee range")); } }
public void LoadLaneClearMenu() { _laneClearMenu = GetMenu.AddSubMenu("Laneclear", "Laneclear Menu"); { _laneClearMenu.Add("LQ", new CheckBox("Use Q")); _laneClearMenu.Add("LW", new CheckBox("Use W")); _laneClearMenu.Add("LWM", new Slider("Minions at W range to cast", 3, 1, 6)); _laneClearMenu.Add("LQM", new Slider("Soldiers to Q ", 1, 1, 3)); } }
public void LoadComboMenu() { _comboMenu = GetMenu.AddSubMenu("Combo", "Combo Menu"); { _comboMenu.Add("SoldiersToQ", new Slider("Soldiers to Q", 1, 1, 3)); _comboMenu.Add("CQ", new CheckBox("Use Q")); _comboMenu.Add("CW", new CheckBox("Use W")); _comboMenu.Add("CR", new CheckBox("Use R killeable")); } }
public void LoadHarashMenu() { _harashMenu = GetMenu.AddSubMenu("Harass", "Harass Menu"); { _harashMenu.Add("hSoldiersToQ", new Slider("Soldiers to Q", 1, 1, 3)); _harashMenu.Add("HQ", new CheckBox("Use Q")); _harashMenu.Add("HW", new CheckBox("Use W")); _harashMenu.Add("HW2", new CheckBox("Save on 1 w for flee")); } }
private void OnInterrupt(AIHeroClient sender, Interrupter.InterruptSpellArgs args) { bool onI = GetMenu.GetBoolOption("IE"); if (onI) { if (sender.Distance(GameObjects.Player) < 300 && GetSpells.GetE.IsInRange(sender)) { GetSpells.GetE.Cast(sender.Position); } } }
public override void CloseMenu() { GetMenu.AddSubMenu(_comboMenu); GetMenu.AddSubMenu(_harassMenu); GetMenu.AddSubMenu(_farmMenu); GetMenu.AddSubMenu(_targetsRMe); GetMenu.AddSubMenu(_dontRIfSpellReady); GetMenu.AddSubMenu(_keyMenu); GetMenu.AddSubMenu(_miscMenu); GetMenu.AddSubMenu(_drawingMenu); base.CloseMenu(); }
private void OnGapCloser(AIHeroClient sender, Gapcloser.GapcloserArgs args) { bool onGap = GetMenu.GetBoolOption("AE"); if (onGap) { if (sender.Distance(GameObjects.Player) < 300) { GetSpells.GetE.Cast(sender); } } }
public override void CloseMenu() { GetMenu.AddSubMenu(_comboMenu); GetMenu.AddSubMenu(_harassMenu); base.CloseMenu(); }
public async Task <ActionResult <Menu> > Menu(GetMenu request) { request.Principal = User; return(await _mediator.Send(request)); }
public bool getMenuBoolOption(String s) { return(GetMenu.Item(s).GetValue <bool>()); }
public async Task <IHttpActionResult> CreateRole(GetMenu model) { var pp = ""; var db4 = new ApplicationDbContext(); var role = new IdentityRole { Name = model.bb.Name }; var result = await this.AppRoleManager.CreateAsync(role); if (!result.Succeeded) { return(GetErrorResult(result)); } else { // var _db = new ApplicationDbContext(); foreach (var pp2 in model.cc) { var dd = model.bb; // var ccd = (from c in db4.RolesPriviledges where c.RoleName == pp2.RoleName select c).ToList(); var ccd = (from c in db4.RolesPriviledges where c.RoleName == dd.Name select c).ToList(); if (ccd.Count > 0) { db4.RolesPriviledges.RemoveRange(ccd); db4.SaveChanges(); } } foreach (var pp2 in model.cc) { if (pp2.CreateNew == null) { pp2.CreateNew = "false"; } if (pp2.DeleteNew == null) { pp2.DeleteNew = "false"; } if (pp2.UpadateNew == null) { pp2.UpadateNew = "false"; } if (pp2.View == null) { pp2.View = "false"; } db4.RolesPriviledges.Add(pp2); } db4.SaveChanges(); } return(Ok()); }
private void Ondraw(EventArgs args) { var drawQ = GetMenu.GetBoolOption("DQ"); var drawW = GetMenu.GetBoolOption("DW"); var drawE = GetMenu.GetBoolOption("DE"); var drawQE = GetMenu.GetBoolOption("DQE"); var drawR = GetMenu.GetBoolOption("DR"); var drawOrb = GetMenu.GetBoolOption("DO"); var drawOrbText = GetMenu.GetBoolOption("DST"); var drawHarassTogle = GetMenu.HKey.Active; if (ObjectManager.Player.IsDead) { return; } if (drawHarassTogle) { var HKey = true;//GetMenu.HKey; if (HKey) { Drawing.DrawText(0, 250, System.Drawing.Color.Yellow, "Harass Toggle : True"); } else { Drawing.DrawText(0, 250, System.Drawing.Color.Yellow, "Harass Toggle : False"); } } if (GetSpells.GetQ.IsReady() && drawQ) { Render.Circle.DrawCircle(ObjectManager.Player.Position, GetSpells.GetQ.Range, System.Drawing.Color.DarkCyan, 2); } if (GetSpells.GetW.IsReady() && drawW) { Render.Circle.DrawCircle(ObjectManager.Player.Position, GetSpells.GetW.Range, System.Drawing.Color.DarkCyan, 2); } if (GetSpells.GetE.IsReady() && drawE) { Render.Circle.DrawCircle(ObjectManager.Player.Position, GetSpells.GetE.Range, System.Drawing.Color.DarkCyan, 2); } if (GetSpells.GetR.IsReady() && drawR) { Render.Circle.DrawCircle(ObjectManager.Player.Position, GetSpells.GetR.Range, System.Drawing.Color.DarkCyan, 2); } if (drawQE && GetSpells.GetE.IsReady() && GetSpells.GetQ.IsReady()) { Render.Circle.DrawCircle(ObjectManager.Player.Position, GetSpells.GetQ.Range + 450, System.Drawing.Color.Red, 2); } var orbs = GetOrbs; if (orbs != null) { if (drawOrb) { for (var i = 0; i < orbs.Count; i++) { var b = orbs[i]; Render.Circle.DrawCircle(b, 50, System.Drawing.Color.DarkRed, 2); var wts = Drawing.WorldToScreen(Hero.Position); var wtssxt = Drawing.WorldToScreen(b); if (wtssxt.X > 0 && wtssxt.Y > 0) { Drawing.DrawLine(wts, wtssxt, 2, System.Drawing.Color.DarkRed); } } } if (drawOrbText) { var orbsTotal = "Active Orbs R : " + (orbs.Count); Drawing.DrawText(0, 200, System.Drawing.Color.Yellow, orbsTotal); } } }
public void LoadMiscMenu(AzirMain azir) { List <String> spellsin = new List <string>(); foreach (AIHeroClient hero in HeroManager.Enemies) { for (int i = 0; i < 4; i++) { // hero.GetSpell(Trans(i)).Name; foreach (String s in azir.Interrupt) { if (s == hero.GetSpell(azir.Trans(i)).Name) { spellsin.Add("[" + hero.ChampionName + "]" + s); } } } } azir.InterruptSpell = spellsin; int num = 0; var interruptMenu = GetMenu.AddSubMenu("Spell Interrupt", "R Interrupt spells"); { interruptMenu.Add("UseRInterrupt", new CheckBox("Use R Interrupt")); foreach (String s in spellsin) { interruptMenu.Add("S" + num, new CheckBox(s)); num++; } } azir.InterruptNum = num; List <String> spellgap = new List <string>(); foreach (AIHeroClient hero in HeroManager.Enemies) { for (int i = 0; i < 4; i++) { foreach (String s in azir.Gapcloser) { if (s == hero.GetSpell(azir.Trans(i)).Name) { spellgap.Add("[" + hero.ChampionName + "]" + s); } } } } int numg = 0; azir.InterruptSpell = spellgap; GapCloserMenu = GetMenu.AddSubMenu("Spell Gapcloser", "R to Gapcloser"); { GapCloserMenu.Add("UseRGapcloser", new CheckBox("Use R Gapcloser")); foreach (String s in spellgap) { GapCloserMenu.Add("G" + numg, new CheckBox(s)); numg++; } } numg = azir.GapcloserNum; _miscMenu = GetMenu.AddSubMenu("Misc", "Harash Menu"); { _miscMenu.Add("FMJ", new CheckBox("Max Range Jump Only")); _miscMenu.Add("ARUT", new CheckBox("auto R under the Turret")); } }
/// <summary> /// Initiate the <see cref="Menu"/> <see cref="Control"/>s. (<strong>NOTE:</strong> should only be called once to avoid duplicate <see cref="Control"/>s) /// </summary> public override void InitMenu() { base.InitMenu(); #region Author Setup authorLabel = new ColorableLabel("Author", ControlsFontColor, ControlsBorderColor, false); authorText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false); #region Setting the controls to be center authorLabel.Position = new Vector2(Vector2.CenterX(authorLabel.Size.x + authorText.Size.x), HeaderPosY + HeaderOffset); authorText.Position = new Vector2(authorLabel.Position.x + authorLabel.Size.x - 1, authorLabel.Position.y); authorText.TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black); #endregion GetMenu.Controls.AddControl(authorLabel); GetMenu.Controls.AddControl(authorText); #endregion #region ISBN Code Setup isbnCodeLabel = new ColorableLabel("ISBN Code", ControlsFontColor, ControlsBorderColor, false); isbnCodeText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false) { TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; #region Setting Controls to be Center isbnCodeLabel.Position = new Vector2(Vector2.CenterX(isbnCodeLabel.Size.x + isbnCodeText.Size.x), authorLabel.Position.y + 3); isbnCodeText.Position = new Vector2(isbnCodeLabel.Position.x + isbnCodeLabel.Size.x - 1, isbnCodeLabel.Position.y); #endregion GetMenu.Controls.AddControl(isbnCodeLabel); GetMenu.Controls.AddControl(isbnCodeText); #endregion #region Category Setup categoryLabel = new ColorableLabel("Category", ControlsFontColor, ControlsBorderColor, false); categoryText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false) { TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; #region Setting Controls to be Center categoryLabel.Position = new Vector2(Vector2.CenterX(categoryLabel.Size.x + categoryText.Size.x), isbnCodeText.Position.y + 3); categoryText.Position = new Vector2(categoryLabel.Position.x + categoryLabel.Size.x - 1, categoryLabel.Position.y); Console.WriteLine(categoryLabel.Position); Console.WriteLine(categoryText.Position); #endregion GetMenu.Controls.AddControl(categoryLabel); GetMenu.Controls.AddControl(categoryText); #endregion #region Status Setup statusLabel = new ColorableLabel("Status", ControlsFontColor, ControlsBorderColor, false); statusText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false) { TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; #region Setting Controls to be Center statusLabel.Position = new Vector2(Vector2.CenterX(statusLabel.Size.x + statusText.Size.x), categoryText.Position.y + 3); statusText.Position = new Vector2(statusLabel.Position.x + statusLabel.Size.x - 1, statusLabel.Position.y); #endregion GetMenu.Controls.AddControl(statusLabel); GetMenu.Controls.AddControl(statusText); #endregion #region Day of Lending Setup dolLabel = new ColorableLabel("DOL", ControlsFontColor, ControlsBorderColor, false); dolText = new ColorableLabel(string.Empty, ControlsFontColor, ControlsBorderColor, false) { TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; #region Setting Controls to be Center dolLabel.Position = new Vector2(Vector2.CenterX(dolLabel.Size.x + dolText.Text.Length + 2), statusText.Position.y + 3); dolText.Position = new Vector2(dolLabel.Position.x + dolLabel.Size.x - 1, dolLabel.Position.y); #endregion GetMenu.Controls.AddControl(dolLabel); GetMenu.Controls.AddControl(dolText); #endregion #region Borrow Book Button ColorableOption borrowButton = new ColorableOption("Borrow Book", ControlsFontColor, ControlsBorderColor, false) { SelectedIndex = new Vector2(0, 1) }; borrowButton.Position = new Vector2(Vector2.CenterX(borrowButton.Size.x), dolText.Position.y + 3); borrowButton.OnSelect += BorrowButtonAction; loaneeEmail = new ColorableTextField("Type Loanee Email Here...", ControlsFontColor, ControlsBorderColor, false) { EraseTextOnSelect = true, ResetAfterFirstWrite = true, SelectedIndex = Vector2.Zero, TextColor = new RenderColor(ConsoleColor.Green, ConsoleColor.Black) }; loaneeEmail.Position = new Vector2(borrowButton.Position.x + borrowButton.Size.x + 1, borrowButton.Position.y + 2); GetMenu.Controls.AddControl(borrowButton); GetMenu.Controls.AddControl(loaneeEmail); #endregion #region Return Book Button ColorableOption returnButton = new ColorableOption("Return Book", ControlsFontColor, ControlsBorderColor, false) { SelectedIndex = new Vector2(0, 2) }; returnButton.Position = new Vector2(Vector2.CenterX(returnButton.Size.x), borrowButton.Position.y + 3); returnButton.OnSelect += ReturnBookButtonAction; GetMenu.Controls.AddControl(returnButton); #endregion #region Remove Button Setup ColorableOption removeButton = new ColorableOption("Remove Book", ControlsFontColor, ControlsBorderColor, false) { SelectedIndex = new Vector2(0, 3) }; removeButton.Position = new Vector2(Vector2.CenterX(removeButton.Size.x), returnButton.Position.y + 3); removeButton.OnSelect += RemoveBookButtonAction; GetMenu.Controls.AddControl(removeButton); #endregion #region Nav Button Setup NavButtonAction = (s) => { BooksMenu.Instance.GetMenu.Show(); ResetSelection(); GetMenu.Show(false); instance.loaneeEmail.Text = "Type Loanee Email Here..."; instance.loaneeEmail.EraseTextOnSelect = true; }; SetupNavButton(); #endregion ResetSelection(); }