本文整理汇总了C#中Menu.CheckBox方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.CheckBox方法的具体用法?C# Menu.CheckBox怎么用?C# Menu.CheckBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.CheckBox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Combo
protected override void Combo(Menu menu)
{
if (Target != null)
{
if (Core.GameTickCount - W.LastSentTime < 100)
{
return;
}
if (Core.GameTickCount - W.LastCastTime < Spells.W.TotalTravelTime)
{
return;
}
if (menu.CheckBox("E"))
{
CastE(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("QE"))
{
CastQE(Target);
}
}
base.Combo(menu);
}
示例2: Harass
protected override void Harass(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("ManaPercent"))
{
if (Target != null)
{
if (Core.GameTickCount - W.LastSentTime < 100)
{
return;
}
if (Core.GameTickCount - W.LastCastTime < Spells.W.TotalTravelTime)
{
return;
}
if (menu.CheckBox("Turret") && EntityManager.Turrets.Enemies.Any(i => i.IsInAutoAttackRange(MyHero)))
{
return;
}
if (menu.CheckBox("E"))
{
CastE(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("QE"))
{
CastQE(Target);
}
}
}
base.Harass(menu);
}
示例3: OnDraw
public override void OnDraw(Menu menu)
{
if (menu.CheckBox("E.Lines") && E.IsReady && MyHero.Mana >= E.Mana)
{
foreach (var sphere in Spheres.Where(i => i.GameObject.VisibleOnScreen && i.GameObject.IsInRange(MyHero, E.Range)))
{
Drawing.DrawLine(sphere.GameObject.Position.WorldToScreen(), (MyHero.Position + (sphere.GameObject.Position - MyHero.Position).Normalized() * QE.Range).WorldToScreen(), QE.Width + MyHero.BoundingRadius, WillHitSpheres.ContainsKey(sphere.GameObject.NetworkId) ? Color.FromArgb(100, 255, 0, 0) : Color.FromArgb(100, 255, 255, 255));
}
}
base.OnDraw(menu);
}
示例4: OnEndScene
public override void OnEndScene(Menu menu)
{
if (menu.CheckBox("R.Killable") && R.IsReady && MyHero.Mana >= R.Mana)
{
var count = 0;
foreach (var enemy in R.EnemyHeroes.Where(h => R.GetDamage(h) >= h.TotalShieldHealth()))
{
if (enemy.VisibleOnScreen && IsKillableOnEnemyPosition.ContainsKey(enemy.NetworkId))
{
IsKillableOnEnemyPosition[enemy.NetworkId].Position = enemy.Position.WorldToScreen();
IsKillableOnEnemyPosition[enemy.NetworkId].Draw();
}
if (IsKillableOnScreen.ContainsKey(enemy.NetworkId))
{
IsKillableOnScreen[enemy.NetworkId].Position = BaseScreenPoint + new Vector2(0, 50 * count);
IsKillableOnScreen[enemy.NetworkId].Draw();
count++;
}
}
}
base.OnEndScene(menu);
}
示例5: JungleClear
protected override void JungleClear(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("JungleClear.ManaPercent"))
{
if (menu.CheckBox("JungleClear.Q"))
{
CastQ(Q.JungleClear(false));
}
if (menu.CheckBox("JungleClear.W"))
{
CastW(W.JungleClear(false));
}
if (menu.CheckBox("JungleClear.E"))
{
var minion = E.JungleClear(false);
if (minion != null)
{
CastE(minion);
}
}
}
base.JungleClear(menu);
}
示例6: Harass
protected override void Harass(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("ManaPercent"))
{
if (Target != null)
{
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("W"))
{
W.Cast(Target);
}
if (menu.CheckBox("E"))
{
E.Cast(Target);
}
}
}
base.Harass(menu);
}
示例7: OnEndScene
public override void OnEndScene(Menu menu)
{
if (menu.CheckBox("IsDead"))
{
if (EnemyIsDead)
{
var enemyDead = UnitManager.ValidEnemyHeroes.FirstOrDefault(IsDead);
if (enemyDead != null)
{
IsDeadText.TextValue = enemyDead.ChampionName + " " + "IsDead".GetTranslationFromId().ToLower();
IsDeadText.Draw();
}
}
}
base.OnEndScene(menu);
}
示例8: Combo
protected override void Combo(Menu menu)
{
if (Target != null)
{
if (menu.Slider("E") > 0)
{
switch (menu.Slider("E"))
{
case 1:
CastE(Target);
break;
case 2:
E.Cast(Target);
break;
}
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (menu.Slider("R") > 0)
{
if (MyHero.CountEnemiesInRange(R.Range) >= menu.Slider("R"))
{
R.Cast(Target);
}
}
}
base.Combo(menu);
}
示例9: Harass
protected override void Harass(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("ManaPercent"))
{
if (Target != null)
{
if (Core.GameTickCount - W.LastSentTime < 100)
{
return;
}
if (Core.GameTickCount - E.LastSentTime < 100)
{
return;
}
if (Core.GameTickCount - W.LastCastTime < W.CastDelay + 50)
{
return;
}
if (Core.GameTickCount - E.LastCastTime < E.CastDelay + 50)
{
return;
}
if (Spells.E.Missile != null && Spells.E.Missile.IsValidMissile() && MyHero.Distance(Spells.E.Missile, true) <= MyHero.Distance(Target, true))
{
return;
}
if (Orbwalker.CanAutoAttack && HasPassive && MyHero.IsInAutoAttackRange(Target))
{
return;
}
if (menu.CheckBox("E"))
{
CastE(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (StartWithCc && W.IsReady && E.IsReady)
{
return;
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
}
}
base.Harass(menu);
}
示例10: OnDraw
public override void OnDraw(Menu menu)
{
if (menu.CheckBox("Passive"))
{
foreach (
var enemy in
UnitManager.ValidEnemyHeroes.Where(
h => h.HealthPercent <= 50f && h.VisibleOnScreen && !h.TargetHaveBuff("zedpassivecd")))
{
Drawing.DrawText(enemy.ServerPosition.WorldToScreen(), Color.White,
"Passive".GetTranslationFromId() + " " + "Available".GetTranslationFromId().ToLower(),
6);
}
}
base.OnDraw(menu);
}
示例11: Harass
protected override void Harass(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("ManaPercent"))
{
if (E.IsReady && menu.CheckBox("E.Shield"))
{
if (MissileManager.MissileWillHitMyHero)
{
CastE(MyHero);
}
}
if (Target != null)
{
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (menu.Slider("E.HealthPercent") >= MyHero.HealthPercent)
{
var enemy =
UnitManager.ValidEnemyHeroesInRange.FirstOrDefault(h => h.InAutoAttackRange(MyHero));
if (enemy != null)
{
CastE(MyHero);
}
}
}
}
base.Harass(menu);
}
示例12: Combo
protected override void Combo(Menu menu)
{
if (Target != null)
{
var bestCombo = GetBestCombo(Target);
if (MyHero.CountEnemiesInRange(E.Range) >= menu.Slider("TeamFight"))
{
if (menu.Slider("Q.Hit") > 0)
{
var list = Q.EnemyHeroes;
if (list.Count >= menu.Slider("Q.Hit"))
{
var result = GetBestHitQ(list);
if (result.Hits >= menu.Slider("Q.Hit"))
{
Q.Cast(result.Position);
}
}
}
if (W.IsReady && menu.Slider("W.Hit") > 0)
{
var list = W.EnemyHeroes;
if (list.Count >= menu.Slider("W.Hit"))
{
if (W.ObjectsInRange(list).Count >= menu.Slider("W.Hit"))
{
W.Cast();
}
}
}
if (R.IsReady && menu.Slider("R.Hit") > 0)
{
var list = R.EnemyHeroes;
if (list.Count >= menu.Slider("R.Hit"))
{
if (R.ObjectsInRange(list).Count >= menu.Slider("R.Hit"))
{
R.Cast();
}
}
}
CastQr();
CastEr();
}
else
{
if (R.IsReady && menu.CheckBox("R.Killable") && bestCombo.R && R.IsKillable(Target))
{
CastR(Target);
}
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
if (menu.CheckBox("W"))
{
CastW(Target);
}
if (menu.Slider("E.HealthPercent") >= MyHero.HealthPercent)
{
var enemy = UnitManager.ValidEnemyHeroesInRange.FirstOrDefault(h => h.InAutoAttackRange(MyHero));
if (enemy != null)
{
CastE(MyHero);
}
}
}
base.Combo(menu);
}
示例13: KillSteal
protected virtual void KillSteal(Menu menu)
{
foreach (var enemy in UnitManager.ValidEnemyHeroesInRange)
{
if (menu.CheckBox("Ignite") && Ignite.IsKillable(enemy))
{
if (!MyHero.InAutoAttackRange(enemy) ||
MyHero.GetAttackDamage(enemy, true) <= enemy.TotalShieldHealth())
{
Ignite.Cast(enemy);
}
}
if (menu.CheckBox("Smite") && Smite.IsKillable(enemy))
{
Smite.Cast(enemy);
}
}
}
示例14: JungleClear
protected override void JungleClear(Menu menu)
{
if (MyHero.ManaPercent >= menu.Slider("JungleClear.ManaPercent"))
{
if (menu.CheckBox("JungleClear.Q"))
{
Q.JungleClear();
}
if (menu.CheckBox("JungleClear.W"))
{
CastW(W.JungleClear(false));
}
if (menu.CheckBox("JungleClear.E"))
{
CastE(E.JungleClear(false));
}
}
base.JungleClear(menu);
}
示例15: Combo
protected override void Combo(Menu menu)
{
if (Target != null)
{
if (menu.CheckBox("Items"))
{
ItemManager.CastOffensiveItems(Target);
}
if (R.IsReady && IsR1 && !menu.CheckBox("BlackList." + Target.ChampionName) && !IsCombo2)
{
if (menu.CheckBox("R"))
{
CastR(Target);
}
if (menu.CheckBox("Prevent"))
{
return;
}
}
if (menu.CheckBox("W") && NeedsW(Target))
{
CastW(Target);
}
if (menu.CheckBox("E"))
{
CastE(Target);
}
if (menu.CheckBox("Q"))
{
CastQ(Target);
}
}
base.Combo(menu);
}