public static void MyMenu() { // Initialize the menu Main = MainMenu.AddMenu("Annie", "Annie"); Combo = Main.AddSubMenu("Combo"); Harass = Main.AddSubMenu("Harass"); LaneClear = Main.AddSubMenu("LaneClear"); LastHit = Main.AddSubMenu("LastHit"); Misc = Main.AddSubMenu("Misc"); Draw = Main.AddSubMenu("Draw"); Combo.AddGroupLabel("Combo"); _useQCombo = Combo.Add("comboUseQ", new CheckBox("Use Q")); _useWCombo = Combo.Add("comboUseW", new CheckBox("Use W")); _useRCombo = Combo.Add("comboUseR", new CheckBox("Use R")); Harass.AddGroupLabel("Harass"); _useQHarass = Harass.Add("harassUseQ", new CheckBox("Use Q")); _useWHarass = Harass.Add("harassUseW", new CheckBox("Use W")); _farmingHarass = Harass.Add("farming", new CheckBox("Farm(op)")); _manaHarass = Harass.Add("harassMana", new Slider("Maximum mana usage in percent ({0}%)", 40)); LaneClear.AddGroupLabel("LaneClear"); _useQLaneClear = LaneClear.Add("clearUseQ", new CheckBox("Use Q")); _useWLaneClear = LaneClear.Add("clearUseW", new CheckBox("Use W")); LastHit.AddGroupLabel("LastHit"); _useQLastHit = LastHit.Add("lastUseQ", new CheckBox("Use Q")); _useEMisc = Misc.Add("autoE", new CheckBox("Auto E")); _stacksMisc = Misc.Add("autoStacks", new CheckBox("Auto Stacks")); // Initialize the modes Draws.Initialize(); }
private static void DrawingsMenu() { Draws = Menu.AddSubMenu("Drawings"); Draws.Add("Q", new CheckBox("Draw Q range")); Draws.Add("W", new CheckBox("Draw W range", false)); Draws.Add("E", new CheckBox("Draw E range", false)); }
private static void MenuLeona() { Leo = MainMenu.AddMenu("[Leona]", "[Leona]"); Combo = Leo.AddSubMenu("[Combo]"); Combo.Add("Qc", new CheckBox("[Q] = Combo")); Combo.Add("Wc", new CheckBox("[W] = Combo")); Combo.Add("Ec", new CheckBox("[E] = Combo")); Combo.Add("Rc", new CheckBox("[R] = Combo")); Auto = Leo.AddSubMenu("[AutoHarass]"); Auto.Add("LiW", new CheckBox("Use [W] [Hit Life]")); Auto.AddSeparator(); Auto.AddLabel("Life"); Auto.Add("Vida", new Slider("Life [W] Uti", 35, 1)); Auto.AddLabel("Target Valid"); Auto.Add("Tar", new Slider("Target [W] Auto", 300, 0, 500)); Lane = Leo.AddSubMenu("[LaneClear]"); Lane.Add("Ql", new CheckBox("Use [Q] Lane")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("mana", new Slider("Mana Percent [Q]", 50, 1)); Misc = Leo.AddSubMenu("[Misc]"); Misc.Add("Inter", new CheckBox("Interupt")); Misc.Add("Gap", new CheckBox("GapClose")); Draws = Leo.AddSubMenu("[Draws]"); Draws.AddLabel("Draws are only activated near enemies"); Draws.AddSeparator(); Draws.Add("DE", new CheckBox("Use [E] Draws")); Draws.Add("DR", new CheckBox("Use [R] Draws")); }
public async Task <ActionResult <Draws> > PostDraws(Draws draws) { draws.Datecreated = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); draws.Datemodified = draws.Datecreated; draws.Drawdate = Convert.ToDateTime(draws.Drawdate); draws.Drawstatus = DrawStatus.Live; _context.Draws.Add(draws); try { await _context.SaveChangesAsync(); } catch (DbUpdateException) { if (DrawsExists(draws.Id)) { return(Conflict()); } else { throw; } } return(CreatedAtAction("GetDraws", new { id = draws.Id }, draws)); }
public async Task <IActionResult> PutDraws(int id, Draws draws) { if (id != draws.Id) { return(BadRequest()); } _context.Entry(draws).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DrawsExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
private static void Loading_OnComplete(EventArgs args) { if (Akali.Hero != Champion.Akali) { return; } Chat.Print("[Addon] [Champion] [Akali]", System.Drawing.Color.AliceBlue); Q = new Spell.Targeted(SpellSlot.Q, 600); W = new Spell.Active(SpellSlot.W, 275); E = new Spell.Active(SpellSlot.E, 300); R = new Spell.Targeted(SpellSlot.R, 700); //Comands //Events Orbwalker.OnPostAttack += OnPostAttack; Gapcloser.OnGapcloser += OnGapcloser; Drawing.OnDraw += OnDrawings; Game.OnTick += Game_OnTick; Aka = MainMenu.AddMenu("Akali", "Akali"); //Combo Combo = Aka.AddSubMenu("Combo"); Combo.Add("Qc", new CheckBox("Use [Q] Combo")); Combo.Add("Wc", new CheckBox("Use [W] Combo")); Combo.Add("Ec", new CheckBox("Use [E] Combo")); Combo.Add("Rc", new CheckBox("Use [R] Combo")); //Harass Harass = Aka.AddSubMenu("Harass"); Harass.Add("Hq", new CheckBox("Use [Q] Harass")); //LaneClear LaneClear = Aka.AddSubMenu("LaneClear"); LaneClear.Add("Ql", new CheckBox("Use [Q] LaneClear")); LaneClear.Add("El", new CheckBox("Use [E] LaneClear")); LaneClear.AddSeparator(); LaneClear.AddLabel("[Percent Mana]"); LaneClear.Add("mana", new Slider("Percent Mana > %", 25, 0, 100)); //LastHit LastHit = Aka.AddSubMenu("LastHit"); LastHit.Add("Qlast", new CheckBox("Use [Q] LastHit")); //JungleClear JungleClear = Aka.AddSubMenu("JungleClear"); JungleClear.Add("Qj", new CheckBox("Use [Q] Jungle")); JungleClear.Add("Ej", new CheckBox("Use [E] Jungle")); JungleClear.AddSeparator(); JungleClear.AddLabel("[Percent Mana]"); JungleClear.Add("manaj", new Slider("Percent Mana > % ", 25, 0, 100)); //Misc Misc = Aka.AddSubMenu("Misc"); Misc.Add("Rgap", new CheckBox("Use [R] GapClose")); Misc.Add("Fw", new CheckBox("Use Flee [W]")); Misc.Add("It", new CheckBox("Use Items")); //Draws Draws = Aka.AddSubMenu("Drawings"); Draws.Add("Dq", new CheckBox("[Q] Draw")); Draws.Add("Dw", new CheckBox("[W] Draw", false)); Draws.Add("De", new CheckBox("[E] Draw", false)); Draws.Add("Dr", new CheckBox("[R] Draw")); }
public TestTristan() { var players = new Players(); draws = new Draws(); playerService = new TestPlayerService(new PlayerService(players, draws)); drawService = new DrawService(players, draws); }
public IActionResult Put(int Id, [FromBody] Draws newDraws) { Draws oldDraws = _context.Draws.Find(Id); _context.Entry(oldDraws).CurrentValues.SetValues(newDraws); _context.SaveChanges(); return(Ok(newDraws)); }
public IActionResult Delete(int Id) { Draws oldDraws = _context.Draws.Find(Id); _context.Draws.Remove(oldDraws); _context.SaveChanges(); return(NoContent()); }
//Method that adds draws to the Draws Property public void MakeDraws(int numberOfDraws) { for (int drawId = 1; drawId <= numberOfDraws; drawId++) { var newDraw = new Draw(drawId, SelectionCategories); Draws.Add(newDraw); } }
private static void Drawing() { Draws = TH.AddSubMenu("Drawings"); Draws.Add("DQ", new CheckBox("Use [Q] Drawings")); Draws.Add("DW", new CheckBox("Use [W] Drawings", false)); Draws.Add("DE", new CheckBox("Use [E] Drawings", false)); Draws.Add("DR", new CheckBox("Use [R] Drawings", false)); }
public TestRegistration() { var players = new Players(); var draws = new Draws(); playerService = new PlayerService(players, draws); SetSystemUnderTest(playerService); }
public int GenerateUniqueDrawId(Random random) { int id = 0; do { id = random.Next(1, 10001); } while (Draws.Exists(x => x.Id == id)); return(id); }
public void Add(Drawable drawable) { if (drawable == null) { return; } Draws.Insert(Seek, drawable); Seek++; }
internal static void InMenu() { Caiy = MainMenu.AddMenu("Caitlyn", "Caitlyn"); Caiy.Add("AutoAtack", new CheckBox("Use Atack Buff [Enemy]")); pre = Caiy.AddSubMenu("Prediction"); pre.Add("HitQ", new ComboBox("HitChance [Q]", 1, "Low", "Medium", "High")); pre.Add("HitW", new ComboBox("HitChance [W]", 2, "Low", "Medium", "High")); pre.Add("HitE", new ComboBox("HitChance [E]", 1, "Low", "Medium", "High")); Comb = Caiy.AddSubMenu("Combo"); Comb.Add("Qc", new CheckBox("Use [Q]")); Comb.Add("Wc", new CheckBox("Use [W]")); Comb.Add("Ec", new CheckBox("Use [E]")); Comb.AddSeparator(); Comb.AddLabel("Settings [R]"); Comb.Add("Rf", new CheckBox("Use [R] Fish Enemy")); Comb.AddSeparator(); Comb.Add("ModoR", new ComboBox("Mode [R]", 0, "Fish [R]", "Beta Mode [R]")); Comb.AddSeparator(); Comb.AddLabel("Settings [Beta Mode R]"); Comb.Add("LR", new Slider("Minimal of the Enemy's Life", 20, 1, 100)); Comb.AddSeparator(); Comb.AddLabel("Enemys, No Use on whom?"); foreach (var enemies in EntityManager.Heroes.Enemies.Where(caity => !caity.IsMe)) { Comb.Add("CaitlynUti" + enemies.ChampionName, new CheckBox("" + enemies.ChampionName, false)); } Auto = Caiy.AddSubMenu("Auto Harass"); Auto.Add("AutoQ", new CheckBox("AutoHarass [Q]")); Auto.AddSeparator(); Auto.AddLabel("Mana Percent"); Auto.Add("ManaQ", new Slider("Mana Percent [Q] > {0}", 65, 1)); Lane = Caiy.AddSubMenu("Lane [Clear]"); Lane.Add("Ql", new CheckBox("Use [Q] Lane")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("ManaL", new Slider("Mana Percent > {0}", 50, 1, 100)); Lane.AddSeparator(); Lane.AddLabel("Minions"); Lane.Add("Qmi", new Slider("Minion Percent > {0}", 3, 1, 6)); Jungle = Caiy.AddSubMenu("Jungle [Clear]"); Jungle.Add("Qj", new CheckBox("Use [Q] Jungle")); Jungle.AddSeparator(); Jungle.AddLabel("Mana Percent"); Jungle.Add("Q/J", new Slider("Mana Percent [Q/E]", 65, 1)); Misc = Caiy.AddSubMenu("Misc"); Misc.Add("Ks", new CheckBox("KillSteal")); Draws = Caiy.AddSubMenu("Draws [Spells]"); Draws.Add("DQ", new CheckBox("[Q] Draws")); Draws.Add("DW", new CheckBox("[W] Draws")); Draws.Add("DE", new CheckBox("[E] Draws")); Draws.Add("DR", new CheckBox("[R] Draws")); }
internal static void CreateMenu() { Kmenu = MainMenu.AddMenu("Kayn BETA", "Kayn Beta"); Combo = Kmenu.AddSubMenu("Combo"); Combo.Add("Q", new CheckBox("Use [Q]")); Combo.Add("W", new CheckBox("Use [W]")); Combo.Add("E", new CheckBox("Use [E]")); Combo.Add("R", new CheckBox("Use [R]", false)); Combo.AddLabel("Predction"); Combo.Add("Qhit", new Slider("HitChance [Q]", 65, 1)); Combo.Add("Whit", new Slider("HitChance [W]", 80, 1)); Combo.AddLabel("Settings [R]"); Combo.Add("ultR", new CheckBox("Use [R] Evade")); Combo.Add("MR", new Slider("My HP Use Evade [R] <=", 15)); AutoHara = Kmenu.AddSubMenu("AutoHarass"); AutoHara.Add("AutoW", new CheckBox("Auto [W]")); AutoHara.Add("Mn", new Slider("Mana AutoHarass", 65, 1)); Lane = Kmenu.AddSubMenu("Lane"); Lane.Add("Qlane", new CheckBox("Use [Q]")); Lane.Add("WLane", new CheckBox("Use [W]")); Lane.Add("mana", new Slider("Mana [Q]/[W]", 45, 1)); Lane.AddLabel("Minion"); Lane.Add("Min", new Slider("Mini Minion > {0}", 3, 1, 5)); Lane.AddLabel("Mode [Q]"); Lane.Add("Qmode", new ComboBox("Use Prediction [Q]", 0, "On", "Off")); Lane.Add("Win", new Slider("Min Minions To Hit With W", 2, 1, 6)); Lane.Add("WMode", new ComboBox("Use Prediction For W", 0, "On", "Off")); Lane.Add("WP", new Slider("Select % Hitchance", 80, 1, 100)); Jungle = Kmenu.AddSubMenu("Jungle"); Jungle.Add("Qjungle", new CheckBox("Use [Q]")); Jungle.Add("Wjungle", new CheckBox("Use [W]")); Jungle.AddLabel("Mana"); Jungle.Add("jmana", new Slider("Mana [Q]/[W]", 45, 1)); Jungle.Add("J", new Slider("Min Monsters To Hit With W", 1, 1, 4)); Misc = Kmenu.AddSubMenu("Misc"); Misc.Add("KSR", new CheckBox("Use [R] Fish")); Misc.Add("KS", new CheckBox("KillSteal")); Misc.AddLabel("Flash"); Misc.Add("FR", new CheckBox("Use [Flash + R]", false)); Misc.Add("FW", new CheckBox("Use [Flash + W]", false)); Draws = Kmenu.AddSubMenu("Drawings"); Draws.Add("DQ", new CheckBox("Use [Q] Draw")); Draws.Add("DW", new CheckBox("Use [W] Draw")); Draws.Add("DE", new CheckBox("Use [E] Draw")); Draws.Add("DR", new CheckBox("Use [R]/[R2] Draw")); Draws.Add("DF", new CheckBox("Use [Flash] Draw")); }
static Modes() { // Initialize the menu Menu = Config.Menu.AddSubMenu("Modes,modes"); // Initialize all modes // Combo Combo.Initialize(); Menu.AddSeparator(); // Harass Harass.Initialize(); LaneClear.Initialize(); LastHit.Initialize(); Misc.Initialize(); Draws.Initialize(); }
internal static void Execute() { cat = MainMenu.AddMenu("Rengar", "Rengar"); Combo = cat.AddSubMenu("Combo"); Combo.Add("ps", new ComboBox("Priority", 0, "Q + Stack", "W + Stack", "E + Stack")); Combo.Add("Qc", new CheckBox("Use [Q] In Combo")); Combo.Add("Wc", new CheckBox("Use [W] In Combo")); Combo.Add("Ec", new CheckBox("Use [E] In Combo")); Combo.AddSeparator(); Combo.AddLabel("Key [R]"); Combo.Add("KeyR", new KeyBind("Key [R]", false, KeyBind.BindTypes.HoldActive, 'A')); Combo.AddSeparator(); Combo.AddLabel("Settings [Spells]"); Combo.Add("autow", new CheckBox("Use AutoW [CC]")); Combo.Add("eq", new CheckBox("Use [E] + Passive + [Q] In Logic")); Harass = cat.AddSubMenu("Harass"); Harass.Add("ps", new ComboBox("Priority", 0, "Q + Stack", "W + Stack", "E + Stack")); Harass.Add("Hq", new CheckBox("Use [Q] Harass")); Harass.Add("Hw", new CheckBox("Use [W] Harass")); Harass.Add("He", new CheckBox("Use [E] Harass")); Lane = cat.AddSubMenu("LaneClear"); Lane.Add("stack", new CheckBox("Stack Lane")); Lane.Add("ps", new ComboBox("Priority", 0, "Q + Stack", "W + Stack", "E + Stack")); Lane.Add("Ql", new CheckBox("Use [Q] Lane")); Lane.Add("Wl", new CheckBox("Use [W] Lane")); Lane.Add("Wm", new Slider("Percent Minions > %", 3, 1, 6)); Lane.Add("El", new CheckBox("Use [E] Lane")); Jungle = cat.AddSubMenu("JungleClear"); Jungle.Add("stack", new CheckBox("Stack Jungle")); Jungle.Add("ps", new ComboBox("Priority", 0, "Q + Stack", "W + Stack", "E + Stack")); Jungle.Add("Qj", new CheckBox("Use [Q] Jungle")); Jungle.Add("Wj", new CheckBox("Use [W] Jungle")); Jungle.Add("Ej", new CheckBox("Use [E] Jungle")); Misc = cat.AddSubMenu("Misc"); Misc.Add("Gap", new CheckBox("Use [E] GapClose")); Draws = cat.AddSubMenu("Draws"); Draws.Add("DQ", new CheckBox("Draws [Q]")); Draws.Add("DR", new CheckBox("Draws [R]")); }
public void Clear() { Renderpasses.Clear(); Pipelines.Clear(); StencilWrites.Clear(); Viewports.Clear(); Scissors.Clear(); DepthBias.Clear(); LineWidths.Clear(); DepthBounds.Clear(); BlendConstants.Clear(); VAOs.Clear(); StencilFunctions.Clear(); Draws.Clear(); DrawIndexeds.Clear(); DrawIndirects.Clear(); DrawIndexedIndirects.Clear(); DescriptorSets.Clear(); }
public void RunDrawCicle(List <KinoTicket> kinoTickets, Random random) { Draw draw = new Draw(GenerateUniqueDrawId(random), kinoTickets, random); ResultProcessor resultProcessor = new ResultProcessor(draw); if (Draws.Count != 0) { Draw previousDraw = Draws.Last(); draw.IncreaseAmount(previousDraw.ResultProcessor.ComputeRemainingAmountOfDraw()); } draw.DrawNumbers(random); resultProcessor.ComputeResults(); Console.WriteLine(draw); draw.Results.PrintData(); resultProcessor.ComputeWinnings(); Console.WriteLine(draw); Console.WriteLine(draw.Winnings); Draws.Add(draw); }
public async Task <ActionResult> PostDraws(Draws draws) { draws.Datecreated = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); draws.Datemodified = draws.Datecreated; draws.Drawdate = Convert.ToDateTime(draws.Drawdate); draws.Drawstatus = DrawStatus.Live; _context.Draws.Add(draws); try { await _context.SaveChangesAsync(); } catch (DbUpdateException ex) { if (DrawsExists(draws.Id)) { var data = new { status = "fail", message = "A draw with the specified ID already exists" }; _logger.LogError(ex, data.message, ex.Message); return(new JsonResult(data)); } else { //throw; var data = new { status = "fail", message = "Draw with ID" + draws.Id + " already exists", exception = ex.Message }; _logger.LogError(ex, data.message, ex.Message); return(new JsonResult(data)); } } _logger.LogInformation("New draw with draw ID" + draws.Id + " created successfully"); return(CreatedAtAction("GetDraws", new { id = draws.Id }, draws)); }
internal static void InMenu() { hei = MainMenu.AddMenu("Heimer", "Heimer"); pre = hei.AddSubMenu("Prediction"); pre.Add("Wp", new Slider("Prediction [W] > {0}", 50, 1)); pre.Add("Ep", new Slider("Prediction [E] > {0}", 65, 1)); comb = hei.AddSubMenu("Combo"); comb.Add("Cq", new CheckBox("Use [Q] Combo")); comb.Add("Cw", new CheckBox("Use [W] Combo")); comb.Add("Ce", new CheckBox("Use [E] Combo")); comb.Add("Cr", new CheckBox("Use [R] Combo")); comb.AddSeparator(); comb.AddLabel("Settings [R]"); comb.Add("Rq", new CheckBox("Use [R] + [Q]", false)); comb.Add("Rw", new CheckBox("Use [R] + [W]")); comb.Add("Re", new CheckBox("Use [R] + [E]", false)); Auto = hei.AddSubMenu("Auto Harass"); Auto.Add("AutoW", new CheckBox("Use [W]")); Auto.Add("AutoE", new CheckBox("Use [E]")); Auto.AddSeparator(); Auto.AddLabel("Mana Percent"); Auto.Add("Mana", new Slider("Mana Percent [W] And [E] > {0}", 65, 1)); Lane = hei.AddSubMenu("Lane [Clear]"); Lane.Add("Ql", new CheckBox("Use [Q] Lane")); Lane.Add("Wl", new CheckBox("Use [W] Lane")); Lane.Add("El", new CheckBox("Use [E] Lane")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("ManaL", new Slider("Mana Percent > {0}", 50, 1)); Lane.AddSeparator(); Lane.AddLabel("Settings [Q]"); Lane.Add("MiniQ", new Slider("Minimum [Q]", 2, 1, 3)); Jungle = hei.AddSubMenu("Jungle [Clear]"); Jungle.AddLabel("Not Add"); Misc = hei.AddSubMenu("Misc"); Misc.Add("inter", new CheckBox("Use [E] Inter")); Misc.Add("Gap", new CheckBox("Aint-Gap")); Draws = hei.AddSubMenu("Draws"); Draws.Add("DQ", new CheckBox("Use [Q] Draws")); Draws.Add("DW", new CheckBox("Use [W] Draws")); Draws.Add("DE", new CheckBox("Use [E] Draws")); }
internal static void Execute() { Fid = MainMenu.AddMenu("FiddleStick", "FiddleStick"); Combo = Fid.AddSubMenu("Combo"); Combo.Add("Qc", new CheckBox("Use [Q]")); Combo.Add("Wc", new CheckBox("Use [W]")); Combo.Add("Ec", new CheckBox("Use [E]")); Combo.Add("Qcc", new CheckBox("Use [Q] CC")); Combo.AddSeparator(); Combo.AddLabel("Settings [R]"); Combo.Add("Rc", new CheckBox("Use [R]", false)); Combo.Add("En", new Slider("Min Enemys", 2, 0, 5)); Haras = Fid.AddSubMenu("Harass"); Haras.Add("He", new CheckBox("Use [E] Harass")); Haras.AddLabel("Mana Settings"); Haras.Add("mana", new Slider("Mana Percent", 50, 1, 100)); Lane = Fid.AddSubMenu("LaneClear"); Lane.Add("Ql", new CheckBox("Use [Q]", false)); Lane.Add("Wl", new CheckBox("Use [W]")); Lane.Add("El", new CheckBox("Use [E]")); Lane.AddSeparator(); Lane.AddLabel("Mana Settings"); Lane.Add("manal", new Slider("Mana Percent", 50, 1, 100)); Jungle = Fid.AddSubMenu("JungleClear"); Jungle.Add("Qj", new CheckBox("Use [Q]", false)); Jungle.Add("Wj", new CheckBox("Use [W]")); Jungle.Add("Ej", new CheckBox("Use [E]")); Misc = Fid.AddSubMenu("Misc"); Misc.Add("Gap", new CheckBox("AintGapClose")); Misc.Add("Int", new CheckBox("Interrupt")); Draws = Fid.AddSubMenu("Draws"); Draws.Add("DQ", new CheckBox("Use Draws [Q/W]")); Draws.Add("DE", new CheckBox("Draws [E]")); Draws.Add("DR", new CheckBox("Draws [R]")); }
internal static void Execute() { ty = MainMenu.AddMenu("Tristana", "Tristana"); St = ty.AddSubMenu("Config Tristana"); St.AddLabel("Prediction [W]"); St.Add("pw", new Slider("Prediction [W] > {0}", 75, 0, 100)); St.AddSeparator(); St.AddLabel("Settings Stacks [W]"); St.Add("stack", new Slider("Use [W] Stacks > {0}", 3, 0, 5)); St.AddSeparator(); St.AddLabel("[W] Settings"); St.Add("Wc", new CheckBox("Use [W] Jump")); St.AddLabel("Settings [W] (Confing Tristana)"); // Combo = ty.AddSubMenu("Combo"); Combo.Add("Qc", new CheckBox("Use [Q] Combo")); Combo.Add("Ec", new CheckBox("Use [E] Combo")); Combo.Add("Rc", new CheckBox("Use [R] Combo")); // Hara = ty.AddSubMenu("AutoHarass"); Hara.Add("active", new CheckBox("Enabled")); // Lane = ty.AddSubMenu("Lane"); Lane.Add("Ql", new CheckBox("Use [Q] LaneClear")); Lane.Add("El", new CheckBox("Use [E] LaneClear")); Lane.Add("forE", new CheckBox("Use [E] For target minion")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("mana", new Slider("Mana Percent > {0}", 50, 0, 100)); Jungle = ty.AddSubMenu("Jungle"); Jungle.AddGroupLabel("Development"); Misc = ty.AddSubMenu("Misc"); Misc.Add("Gap", new CheckBox("Use [Aint-GapClose]")); Misc.Add("Int", new CheckBox("Use [Interrumpt]")); Draws = ty.AddSubMenu("Drawings"); Draws.Add("DW", new CheckBox("[W] Draws")); Draws.Add("DR", new CheckBox("[R/Q/E] Draws")); }
internal static void Execute() { casio = MainMenu.AddMenu("Cassiopeia", "Cassiopeia"); // Combo = casio.AddSubMenu("Combo"); Combo.Add("Qc", new CheckBox("Use [Q] Enemy")); Combo.Add("Wc", new CheckBox("Use [W] Enemy")); Combo.Add("Ec", new CheckBox("Use [E] Enemy")); Combo.Add("DisAA", new CheckBox("DisableAA in Combo", false)); Combo.Add("QAA", new CheckBox("Use [Q] + AA")); Combo.Add("EAA", new CheckBox("Use [E] + AA")); Combo.AddSeparator(); Combo.AddLabel("Settings [W]"); Combo.Add("minWw", new Slider("Use [W] Target is Enemy > %", 1, 0, 5)); Combo.AddSeparator(); Combo.AddLabel("Settings [R]"); Combo.Add("Rc", new CheckBox("Use [R] In Combo")); Combo.AddSeparator(); Combo.AddLabel("Percent Enemys [R]"); Combo.Add("Re", new Slider("Enemys Percent > %", 2, 0, 5)); // Hara = casio.AddSubMenu("AutoHarass"); Hara.Add("AutoQ", new CheckBox("Auto [Q]")); Hara.AddSeparator(); Hara.AddLabel("Mana Percent"); Hara.Add("mana", new Slider("Mana Percent > %", 65, 1)); // KillSteal = casio.AddSubMenu("KillSteal"); KillSteal.Add("KsQ", new CheckBox("KillSteal [Q]")); KillSteal.Add("KsW", new CheckBox("KillSteal [W]")); KillSteal.Add("KsE", new CheckBox("KillSteal [E]")); KillSteal.Add("KsR", new CheckBox("KillSteal [R]")); // Farm = casio.AddSubMenu("Farming"); Farm.AddGroupLabel("LaneClear"); Farm.AddSeparator(); Farm.Add("Qf", new CheckBox("Use [Q]")); Farm.Add("Wf", new CheckBox("Use [W]")); Farm.Add("Ef", new CheckBox("Use [E]")); Farm.Add("Buff", new CheckBox("Position [Buff]", false)); Farm.Add("Elast", new CheckBox("LastHit [E]")); Farm.AddSeparator(); Farm.AddLabel("Settings [Q/W]"); Farm.Add("Qq", new Slider("Percent Minion [Q] > %", 2, 0, 6)); Farm.Add("Ww", new Slider("Percent Minion [W] > %", 3, 0, 6)); Farm.AddSeparator(); Farm.AddLabel("Mana Percent"); Farm.Add("Manal", new Slider("Mana Percent > %", 50, 1)); Farm.AddSeparator(); Farm.AddGroupLabel("JungleClear"); Farm.AddSeparator(); Farm.Add("Qj", new CheckBox("Use [Q]")); Farm.Add("Wj", new CheckBox("Use [W]")); Farm.Add("Ej", new CheckBox("Use [E]")); Farm.AddSeparator(); Farm.AddLabel("Mana Percent"); Farm.Add("Manaj", new Slider("Mana Percent > %", 50, 1)); // Misc = casio.AddSubMenu("Misc"); Misc.Add("Gap", new CheckBox("GapClose")); Misc.Add("Int", new CheckBox("Interrupt")); // Draws = casio.AddSubMenu("Draws"); Draws.Add("DQ", new CheckBox("Draws [Q]")); Draws.Add("DW", new CheckBox("Draws [W]")); Draws.Add("DE", new CheckBox("Draws [E]")); Draws.Add("DR", new CheckBox("Draws [R]")); }
public DrawService(Players players, Draws draws) { this.players = players; this.draws = draws; }
public IActionResult Post([FromBody] Draws draws) { _context.Add(draws); _context.SaveChanges(); return(Ok(draws)); }
public static void Loading_OnLoadingComplete(EventArgs args) { if (!_Player.ChampionName.Contains("Ryze")) { return; } Chat.Print("Ryze7 Loaded!", Color.Orange); Bootstrap.Init(null); Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1500, 50); Q.AllowedCollisionCount = 0; W = new Spell.Targeted(SpellSlot.W, 600); E = new Spell.Targeted(SpellSlot.E, 600); R = new Spell.Active(SpellSlot.R); Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600); Seraph = new Item(3040); Tahoma16B = new Font(Drawing.Direct3DDevice, new FontDescription { FaceName = "Tahoma", Height = 15, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType }); menu = MainMenu.AddMenu("Ryze7", "Ryze"); ComboMenu = menu.AddSubMenu("Combo Settings", "Combo"); ComboMenu.Add("ComboQ", new CheckBox("Spell [Q]")); ComboMenu.Add("ComboW", new CheckBox("Spell [W]")); ComboMenu.Add("ComboE", new CheckBox("Spell [E]")); ComboMenu.Add("ComboR", new CheckBox("Spell [R]")); ComboMenu.Add("Human", new Slider("Humanizer Delay", 1, 0, 1000)); HarassMenu = menu.AddSubMenu("Harass Settings", "Harass"); HarassMenu.Add("HQ", new CheckBox("Spell [Q]")); HarassMenu.Add("HW", new CheckBox("Spell [W]")); HarassMenu.Add("HE", new CheckBox("Spell [E]")); HarassMenu.Add("HarassMana", new Slider("Min Mana For Harass", 50, 0, 100)); LastHitMenu = menu.AddSubMenu("LastHit Settings", "LastHit"); LastHitMenu.Add("LHQ", new CheckBox("Spell [Q]")); LastHitMenu.Add("LHW", new CheckBox("Spell [W]", false)); LastHitMenu.Add("LHE", new CheckBox("Spell [E]", false)); LastHitMenu.Add("LastHitMana", new Slider("Min Mana For LastHit", 50, 0, 100)); ClearMenu = menu.AddSubMenu("LaneClear Settings", "LaneClear"); ClearMenu.Add("LCQ", new CheckBox("Spell [Q]")); ClearMenu.Add("LCW", new CheckBox("Spell [W]")); ClearMenu.Add("LCE", new CheckBox("Spell [E]")); ClearMenu.Add("LCR", new CheckBox("Spell [R]", false)); ClearMenu.Add("LaneClearMana", new Slider("Min Mana For LaneClear", 50, 0, 100)); JungleMenu = menu.AddSubMenu("JungleClear Settings", "JungleClear"); JungleMenu.Add("JQ", new CheckBox("Spell [Q]")); JungleMenu.Add("JW", new CheckBox("Spell [W]")); JungleMenu.Add("JE", new CheckBox("Spell [E]")); JungleMenu.Add("JR", new CheckBox("Spell [R]", false)); JungleMenu.Add("JungleClearMana", new Slider("Min Mana For JungleClear", 30, 0, 100)); KsMenu = menu.AddSubMenu("KillSteal Settings", "KillSteal"); KsMenu.AddGroupLabel("KillSteal Setting"); KsMenu.Add("KsQ", new CheckBox("Spell [Q]")); KsMenu.Add("KsW", new CheckBox("Spell [W]")); KsMenu.Add("KsE", new CheckBox("Spell [E]")); KsMenu.Add("KsIgnite", new CheckBox("Use [Ignite] KillSteal")); Misc = menu.AddSubMenu("Misc Settings", "Misc"); Misc.AddGroupLabel("AntiGap Setting"); Misc.Add("gapw", new CheckBox("AntiGap [W]")); Misc.AddGroupLabel("Seraph Settings"); Misc.Add("dts", new CheckBox("Use Seraph")); Misc.Add("Hp", new Slider("HP For Seraph", 30, 0, 100)); Misc.AddGroupLabel("Skin Changer"); Misc.Add("checkSkin", new CheckBox("Use Skin Changer")); Misc.Add("skin.Id", new ComboBox("Skin Mode", 3, "Default", "1", "2", "3", "4", "5", "6", "7", "8")); Autos = menu.AddSubMenu("Stacks Settings", "Stacks"); Autos.Add("AutoStack", new KeyBind("Auto Stack", false, KeyBind.BindTypes.PressToggle, 'T')); Autos.Add("MaxStack", new Slider("Keep Max Stacks", 2, 1, 5)); Autos.Add("StackMana", new Slider("Min Mana AutoStack", 70, 0, 100)); Autos.Add("DrawSt", new CheckBox("Draw Stacks")); Draws = menu.AddSubMenu("Drawings Settings", "Draw"); Draws.AddSeparator(10); Draws.AddGroupLabel("Drawings Setting"); Draws.Add("DrawQ", new CheckBox("Q Range")); Draws.Add("DrawW", new CheckBox("W / E Range")); Drawing.OnDraw += Drawing_OnDraw; Game.OnTick += Game_OnTick; Gapcloser.OnGapcloser += AntiGapCloser; }
public bool Parse(string log) { var lines = new List <string>(); using (StringReader reader = new StringReader(log)) { string rline; while ((rline = reader.ReadLine()) != null) { // Do something with the line lines.Add(rline); } } if (lines.Count < 1) { return(false); } var line = lines[0]; if (line != "[begin]") { return(false); } var dealLines = lines.Select(x => x).Where(x => x.StartsWith("[deal]") || x.StartsWith("\t(flower)")) .ToArray(); // [deal](A)(hand):1万,2万,3万,1筒,2筒,3筒,8筒,8筒,8筒,1条,2条,3条,7条, // (flower): if (dealLines.Length % 2 != 0) { return(false); } string pattern; Regex rgx; MatchCollection matches; Match match; for (var j = 0; j < dealLines.Length - 1; j += 2) { var xhand = dealLines[j]; var xflower = dealLines[j + 1]; pattern = @"^\[.+\]\((?<name>.+)\)\(.+\):(?<tiles>.+)$"; rgx = new Regex(pattern, RegexOptions.IgnoreCase); matches = rgx.Matches(xhand); if (matches.Count != 1) { return(false); } match = matches[0]; var name = match.Groups["name"].Value; var tiles = match.Groups["tiles"].Value; if (string.IsNullOrWhiteSpace(name) || string.IsNullOrWhiteSpace(tiles)) { return(false); } pattern = @"^\s*\(.+\):(?<flowers>.*)$"; rgx = new Regex(pattern, RegexOptions.IgnoreCase); matches = rgx.Matches(xflower); if (matches.Count != 1) { return(false); } match = matches[0]; var flowers = match.Groups["flowers"].Value; if (string.IsNullOrWhiteSpace(flowers)) { flowers = ""; } var deal = new Deal() { Name = name, HandTiles = tiles, FlowerTiles = flowers }; Deals.Add(deal); } var drawLines = lines.Select(x => x).Where(x => x.StartsWith("[draw]")); foreach (var drawLine in drawLines) { //[draw](A):南 pattern = @".+:(?<tname>.*)$"; rgx = new Regex(pattern, RegexOptions.IgnoreCase); matches = rgx.Matches(drawLine); if (matches.Count != 1) { return(false); } match = matches[0]; var tileName = match.Groups["tname"].Value; Draws.Add(tileName); } ActionLines.AddRange(lines.Select(x => x).Where(IsActionLine)); var banker = lines.Find(x => x.StartsWith("[bank]")); var wind = lines.Find(x => x.StartsWith("[wind]")); if (!string.IsNullOrWhiteSpace(banker)) { var begin = banker.IndexOf(":", StringComparison.Ordinal); var bname = banker.Substring(begin + 1); Banker = bname; } if (!string.IsNullOrWhiteSpace(wind)) { var begin = wind.IndexOf(":", StringComparison.Ordinal); var bname = wind.Substring(begin + 1); Wind = bname; } Deals.Sort((x, y) => x.Name[0] - y.Name[0]); var i = 0; for (; i < Deals.Count; ++i) { if (Deals[i].HandTileCount == 14) { break; } } var newList = new List <Deal>(); var length = Deals.Count; for (var k = 0; k < length; ++k) { newList.Add(Deals[(i + k) % length]); } Deals.Clear(); Deals.AddRange(newList); return(true); }
private static void Loading_OnComplete(EventArgs args) { if (Gragas.Hero != Champion.Gragas) { return; } Bootstrap.Init(null); Chat.Print("[Addon] [Champion] [Gragas]"); Q = new Spell.Skillshot(SpellSlot.Q, 775, SkillShotType.Circular, 1, 1000, 110); Q.AllowedCollisionCount = int.MaxValue; W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 675, SkillShotType.Linear, 0, 1000, 50); R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Circular, 1, 1000, 700); R.AllowedCollisionCount = int.MaxValue; Menu = MainMenu.AddMenu("Gragas", "Gragas"); var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName); Menu1 = Menu.AddSubMenu("Combo"); Menu1.AddSeparator(); Menu1.AddLabel("Combo Configs"); Menu1.Add("ComboQ", new CheckBox("Use [Q] on Combo")); Menu1.Add("ComboW", new CheckBox("Use [W] on Combo")); Menu1.Add("ComboE", new CheckBox("Use [E] on Combo")); Menu1.Add("ComboR", new CheckBox("Use [R] on Combo", false)); Menu1.AddLabel("Use [R] only on:"); foreach (var a in Enemies) { Menu1.Add("Ult_" + a.BaseSkinName, new CheckBox(a.BaseSkinName)); } Menu1.Add("MinR", new Slider("Use R if min Champs on [R] range:", 2, 1, 5)); Menu1.AddSeparator(); Menu1.AddLabel("Harass"); Menu1.Add("ManaH", new Slider("Mana Percent > %", 40)); Menu1.Add("HarassQ", new CheckBox("Use [Q] on Harass")); Menu1.Add("HarassW", new CheckBox("Use [W] on Harass")); Menu1.Add("HarassE", new CheckBox("Use [E] on Harass")); Menu1.AddSeparator(); Menu1.AddLabel("KillSteal"); Menu1.Add("KQ", new CheckBox("Use Q on KillSteal")); Menu1.Add("KE", new CheckBox("Use E to KillSteal")); Menu1.Add("KR", new CheckBox("Use R to KillSteal")); Menu2 = Menu.AddSubMenu("Farming"); Menu2.AddLabel("LastHit Configs"); Menu2.Add("ManaL", new Slider("Dont use Skills if Mana <= ", 40)); Menu2.Add("LastQ", new CheckBox("Use Q on LastHit")); Menu2.Add("LastW", new CheckBox("Use W on LastHit")); Menu2.Add("LastE", new CheckBox("Use E on LastHit")); Menu2.AddLabel("Lane Clear Config"); Menu2.Add("ManaF", new Slider("Dont use Skills if Mana <=", 40)); Menu2.Add("FarmQ", new CheckBox("Use Q on LaneClear")); Menu2.Add("FarmW", new CheckBox("Use W on LaneClear")); Menu2.Add("FarmE", new CheckBox("Use E on LaneClear")); Menu2.Add("MinionQ", new Slider("Use Q when count minions more than :", 3, 1, 5)); Menu2.AddLabel("Jungle Clear Config"); Menu2.Add("ManaJ", new Slider("Dont use Skills if Mana <=", 40)); Menu2.Add("JungQ", new CheckBox("Use Q on Jungle")); Menu2.Add("JungW", new CheckBox("Use W on Jungle")); Menu2.Add("JungE", new CheckBox("Use E on Jungle")); Draws = Menu.AddSubMenu("Draws"); Draws.Add("drawQ", new CheckBox(" Draw do Q")); Draws.Add("drawE", new CheckBox(" Draw do E")); Draws.Add("drawR", new CheckBox(" Draw do R")); Misc = Menu.AddSubMenu("Misc"); Misc.Add("useEGapCloser", new CheckBox("E on GapCloser")); Misc.Add("useRGapCloser", new CheckBox("R on GapCloser")); Misc.Add("useEInterrupter", new CheckBox("use E to Interrupt")); Misc.Add("useRInterrupter", new CheckBox("use R to Interrupt")); Misc.Add("Key", new KeyBind("Key to insec", false, KeyBind.BindTypes.HoldActive, (uint)'A')); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Game_OnDraw; GameObject.OnCreate += Game_ObjectCreate; //GameObject.OnDelete += Game_OnDelete; //Orbwalker.OnPostAttack += Reset; Game.OnTick += Game_OnTick; Interrupter.OnInterruptableSpell += game_Interrupter; Gapcloser.OnGapcloser += Gap_Closer; }
private static void Menus() { Br = MainMenu.AddMenu("Brand", "Brand"); // Pre = Br.AddSubMenu("Prediction"); Pre.AddLabel("Predictions"); Pre.Add("Qp", new Slider("Prediction [Q]", 75, 1)); Pre.Add("Wp", new Slider("Prediction [W]", 50, 1)); // Comb = Br.AddSubMenu("Combo"); Comb.Add("Qc", new CheckBox("Use [Q]")); Comb.Add("Wc", new CheckBox("Use [W]")); Comb.Add("Ec", new CheckBox("Use [E]")); Comb.AddSeparator(); Comb.AddLabel("Settings [R] Combo"); Comb.Add("Rc", new CheckBox("Use [R]")); Comb.Add("En", new Slider("Max Range Radiun Enemys > %", 2, 1, 5)); Comb.Add("stack", new CheckBox("Use Stack Passive", false)); // Hara = Br.AddSubMenu("AutoHarass"); Hara.Add("AutoW", new CheckBox("Use Auto[W]")); Hara.AddSeparator(); Hara.AddLabel("Mana Percent"); Hara.Add("Mana", new Slider("Mana Percent Auto [W] > %", 50, 1)); // FullCombo = Br.AddSubMenu("FullCombo"); FullCombo.Add("Eb", new CheckBox("Use FullCombo")); // Lane = Br.AddSubMenu("LaneClear"); Lane.Add("Ql", new CheckBox("Use [Q] Lane", false)); Lane.Add("Wl", new CheckBox("Use [W] Lane")); Lane.Add("El", new CheckBox("Use [E] Lane")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("manal", new Slider("Mana Percent > %", 50, 1)); Lane.AddSeparator(); Lane.AddLabel("Minion Percent"); Lane.Add("Wmin", new Slider("Minion Percent > %", 3, 1, 6)); // Jungle = Br.AddSubMenu("JungleClear"); Jungle.Add("Qj", new CheckBox("Use [Q]")); Jungle.Add("Wj", new CheckBox("Use [W]")); Jungle.Add("Ej", new CheckBox("Use [E]")); Jungle.AddSeparator(); Jungle.AddLabel("Mana Percent"); Jungle.Add("manaj", new Slider("Mana Percent > %", 50, 1)); // Misc = Br.AddSubMenu("Misc"); Misc.Add("In", new CheckBox("Use Interrupt")); Misc.Add("Gap", new CheckBox("Use GapClose")); // KillSteal = Br.AddSubMenu("KillSteal"); KillSteal.Add("KsQ", new CheckBox("Use [Q] KS")); KillSteal.Add("KsW", new CheckBox("Use [W] KS")); KillSteal.Add("KsE", new CheckBox("Use [E] KS")); KillSteal.Add("KsR", new CheckBox("Use [R] KS")); // Draws = Br.AddSubMenu("Draws"); Draws.Add("DQ", new CheckBox("Use Draw [Q]")); Draws.Add("DW", new CheckBox("Use Draw [W]")); Draws.Add("DE", new CheckBox("Use Draw [E]")); Draws.Add("DR", new CheckBox("Use Draw [R]")); }