本文整理汇总了C#中OnValueChangeEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# OnValueChangeEventArgs类的具体用法?C# OnValueChangeEventArgs怎么用?C# OnValueChangeEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OnValueChangeEventArgs类属于命名空间,在下文中一共展示了OnValueChangeEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OrbwalkLRCLK_ValueChanged
public static void OrbwalkLRCLK_ValueChanged(object sender, OnValueChangeEventArgs e)
{
if (e.GetNewValue<KeyBind>().Active)
{
LastClickPoint = Game.CursorPos.To2D();
}
}
开发者ID:badao,项目名称:ProjectFiora,代码行数:7,代码来源:OrbwalkLastClick.cs
示例2: EnablerValueChanged
static void EnablerValueChanged(object sender, OnValueChangeEventArgs e)
{
Notifications.AddNotification(
e.GetNewValue<bool>()
? new Notification("Logging enabled", 1000)
: new Notification("Logging dissabled", 1000));
}
开发者ID:UNREADPROJECTS,项目名称:LeagueSharp,代码行数:7,代码来源:Program.cs
示例3: SwitchMode
private void SwitchMode(object sender, OnValueChangeEventArgs e)
{
Program.Menu.Item("useModus_Mode")
.SetValue(Program.Menu.Item("useModus_Mode").GetValue<StringList>().SelectedIndex == 0
? new StringList(new[] { "Teamfight", "Insec" }, 1)
: new StringList(new[] { "Teamfight", "Insec" }));
}
开发者ID:Bombig001,项目名称:UltimateCarry2,代码行数:7,代码来源:LeeSin.cs
示例4: OnValueChanged
public static void OnValueChanged(object sender, OnValueChangeEventArgs args)
{
var oldOne = args.GetOldValue<KeyBind>().Active;
var newOne = args.GetNewValue<KeyBind>().Active;
if (oldOne == newOne) return;
if (newOne)
{
_effect?.Dispose();
_effect = Members.MyHero.AddParticleEffect("materials/ensage_ui/particles/line.vpcf");
var frontPoint = Members.MyHero.InFront(1200);
_effect.SetControlPoint(1, Members.MyHero.Position);
_effect.SetControlPoint(2, frontPoint);
_effect.SetControlPoint(3, new Vector3(255, 50, 0));
_effect.SetControlPoint(4, new Vector3(255, 255, 255));
}
else
try
{
_tks.Cancel();
_effect?.Dispose();
}
catch (Exception)
{
// ignored
}
}
开发者ID:JumpAttacker,项目名称:EnsageSharp,代码行数:26,代码来源:ReamBlink.cs
示例5: Changed
private static void Changed(object sender, OnValueChangeEventArgs e)
{
lastbeep = 0;
test = Game.Time + 5;
textx = xx.GetValue<Slider>().Value;
texty = yy.GetValue<Slider>().Value;
}
开发者ID:werdbrian,项目名称:LeagueSharp-22,代码行数:7,代码来源:Program.cs
示例6: AutoPriorityItemValueChanged
private static void AutoPriorityItemValueChanged(object sender, OnValueChangeEventArgs e)
{
if (!e.GetNewValue<bool>())
return;
LoadEnemyPriorityData();
}
开发者ID:fgpmaia,项目名称:LeagueSharp2,代码行数:7,代码来源:Enemies.cs
示例7: configChanged
private void configChanged(object sender, OnValueChangeEventArgs args)
{
pm.pc.color = _config.Item("color").GetValue<Circle>().Color;
pm.pc.circleDetail = _config.Item("circleSegments").GetValue<Slider>().Value;
pm.pc.lineDetail = _config.Item("lineSegments").GetValue<Slider>().Value;
pm.pc.update();
}
开发者ID:Aferii,项目名称:LeagueSharp,代码行数:7,代码来源:EnemyVision.cs
示例8: OnChange
private static void OnChange(object sender, OnValueChangeEventArgs e)
{
if (e.GetNewValue<bool>())
AutoLevel.Enable();
else
AutoLevel.Disable();
}
开发者ID:dsakrani,项目名称:l-,代码行数:7,代码来源:AutoUltLeveler.cs
示例9: Slider_ValueChanged
private static void Slider_ValueChanged(object sender, OnValueChangeEventArgs e)
{
var player = ObjectMgr.LocalPlayer;
if ((player == null) || (player.Team == Team.Observer))
return;
ZoomVar.SetValue(e.GetNewValue<Slider>().Value);
renderVar.SetValue(2*(e.GetNewValue<Slider>().Value));
}
开发者ID:dendimonster,项目名称:Ensage,代码行数:8,代码来源:Program.cs
示例10: Item_ValueChanged
// ReSharper disable once InconsistentNaming
private static void Item_ValueChanged(object sender, OnValueChangeEventArgs e)
{
foreach (var particleEffect in Effects.Values)
{
particleEffect.Dispose();
}
Effects.Clear();
}
开发者ID:vitac1998,项目名称:Ensage,代码行数:9,代码来源:Program.cs
示例11: MenuItem_ValueChanged
// ReSharper disable once InconsistentNaming
private static void MenuItem_ValueChanged(object sender, OnValueChangeEventArgs e)
{
var item = sender as MenuItem;
// ReSharper disable once PossibleNullReferenceException
if (item.Name == "ownTowers") ownTowers = e.GetNewValue<bool>();
else enemyTowers = e.GetNewValue<bool>();
HandleTowers();
}
开发者ID:vitac1998,项目名称:Ensage,代码行数:11,代码来源:Program.cs
示例12: Export
private static void Export(object sender, OnValueChangeEventArgs e)
{
if (((MenuItem)sender).GetValue<KeyBind>().Active) { return; }
string s = "Spots=new List<FlashSpot>{";
foreach (FlashSpot spot in Spots)
{
s += spot.getConstructor() + ",";
}
s += "};";
Console.WriteLine(s);
}
开发者ID:werdbrian,项目名称:LeagueSharp-27,代码行数:11,代码来源:Program.cs
示例13: Program_ValueChanged
private static void Program_ValueChanged(object sender, OnValueChangeEventArgs e)
{
if (e.GetNewValue<KeyBind>().Active)
{
cache.Set("HeroName", HeroManager.Player.ChampionName);
cache.Set("MoveSpeed", HeroManager.Player.MoveSpeed);
cache.Set("IsMe", HeroManager.Player.IsMe);
cache.Save();
}
}
开发者ID:VivianGit,项目名称:LeagueSharp,代码行数:12,代码来源:Program.cs
示例14: MenuItem_ValueChanged
private static void MenuItem_ValueChanged(object sender, OnValueChangeEventArgs e)
{
var item = sender as MenuItem;
if (item.Name == "menurange_dagger") menurange_dagger = e.GetNewValue<bool>();
if (item.Name == "menurange_aura") menurange_aura = e.GetNewValue<bool>();
if (item.Name == "menurange_exp") menurange_exp = e.GetNewValue<bool>();
if (item.Name == "menurange_atck") menurange_atck = e.GetNewValue<bool>();
if (item.Name == "menurange_coil") menurange_coil = e.GetNewValue<bool>();
}
开发者ID:Air13,项目名称:ESharp,代码行数:13,代码来源:ShadowFiendHelper+Air13.cs
示例15: OnValueChanged
public static void OnValueChanged(object sender, OnValueChangeEventArgs args)
{
var oldOne = args.GetOldValue<KeyBind>().Active;
var newOne = args.GetNewValue<KeyBind>().Active;
if (oldOne == newOne || newOne) return;
try
{
_tks.Cancel();
_globalTarget = null;
}
catch (Exception)
{
// ignored
}
}
开发者ID:JumpAttacker,项目名称:EnsageSharp,代码行数:15,代码来源:Core.cs
示例16: OnValueChanged
private static void OnValueChanged(object sender, OnValueChangeEventArgs onValueChangeEventArgs)
{
if (onValueChangeEventArgs.GetNewValue<bool>())
{
CurrentPosition = new Render.Circle(ObjectManager.Player.Position, 100, Color.Red, 2);
CurrentPosition.Add();
Text = new Render.Text(new Vector2(50, 50), "MODE: " + CurrentMode, 30, new ColorBGRA(255, 0, 0, 255))
{
OutLined = true
};
Text.Add();
}
else
{
CurrentPosition.Remove();
Text.Remove();
}
}
开发者ID:StopMotionCuber,项目名称:LeagueSharp-1,代码行数:18,代码来源:Program.cs
示例17: Hotkey_ValueChanged
// ReSharper disable once InconsistentNaming
private static void Hotkey_ValueChanged(object sender, OnValueChangeEventArgs e)
{
var newVal = e.GetNewValue<KeyBind>().Active;
if (newVal != e.GetOldValue<KeyBind>().Active)
{
// Deactivate script
if (!newVal)
{
pullCreep = null;
}
else
{
// Activate script
var player = ObjectMgr.LocalPlayer;
if (player == null || player.Team == Team.Observer)
return;
switch (player.Team)
{
case Team.Radiant:
startTime = StartTimeRadiant;
attackTime = AttackTimeRadiant;
route = StackRouteRadiant;
break;
case Team.Dire:
startTime = StartTimeDire;
attackTime = AttackTimeDire;
route = StackRouteDire;
break;
default:
e.Process = false;
return;
}
var units = player.Selection.ToList();
pullCreep = (Unit)units.FirstOrDefault(unit => unit is Unit && ((Unit)unit).IsControllable && ((Unit)unit).IsRanged);
if (pullCreep != null)
{
pullCreep.Move(route.Last());
orderState = -1;
}
else e.Process = false;
}
}
}
开发者ID:vitac1998,项目名称:Ensage,代码行数:44,代码来源:Program.cs
示例18: OnEvadeModeChange
private void OnEvadeModeChange(object sender, OnValueChangeEventArgs e)
{
var mode = e.GetNewValue<StringList>().SelectedValue;
if (mode == "Very Smooth")
{
menu.Item("FastEvadeActivationTime").SetValue(new Slider(0, 0, 500));
menu.Item("RejectMinDistance").SetValue(new Slider(0, 0, 100));
menu.Item("ExtraCPADistance").SetValue(new Slider(0, 0, 150));
menu.Item("ExtraPingBuffer").SetValue(new Slider(40, 0, 200));
}
else if (mode == "Smooth")
{
menu.Item("FastEvadeActivationTime").SetValue(new Slider(65, 0, 500));
menu.Item("RejectMinDistance").SetValue(new Slider(10, 0, 100));
menu.Item("ExtraCPADistance").SetValue(new Slider(10, 0, 150));
menu.Item("ExtraPingBuffer").SetValue(new Slider(65, 0, 200));
}
}
开发者ID:Deprive,项目名称:LeagueSharp,代码行数:19,代码来源:Evade.cs
示例19: MenuItem_ValueChanged
//Menu berubah
private static void MenuItem_ValueChanged(object sender, OnValueChangeEventArgs e)
{
var item = sender as MenuItem;
if (item.Name == "ownTowers") ownTowers = e.GetNewValue<bool>();
else if (item.Name == "jarSer") jarSer = e.GetNewValue<bool>();
else enemyTowers = e.GetNewValue<bool>();
DisplayRange();
}
开发者ID:argosptr,项目名称:Teh-Pucuk,代码行数:10,代码来源:Program.cs
示例20: Program_ValueChanged
private static void Program_ValueChanged(object sender, OnValueChangeEventArgs e)
{
Throw.MinHitChance = GetHitChance();
}
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:4,代码来源:Program.cs
注:本文中的OnValueChangeEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论