本文整理汇总了C#中Menu.AddSubMenuEx方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddSubMenuEx方法的具体用法?C# Menu.AddSubMenuEx怎么用?C# Menu.AddSubMenuEx使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.AddSubMenuEx方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EvadeSpell
public EvadeSpell(Menu mainMenu)
{
menu = mainMenu;
//Game.OnUpdate += Game_OnGameUpdate;
evadeSpellMenu = menu.IsSubMenu ? menu.Parent.AddSubMenuEx("Evade Spells", "EvadeSpells") : menu.AddSubMenuEx("Evade Spells", "EvadeSpells");
LoadEvadeSpellList();
DelayAction.Add(100, () => CheckForItems());
}
示例2: SpellDetector
public SpellDetector(Menu mainMenu)
{
GameObject.OnCreate += SpellMissile_OnCreate;
GameObject.OnDelete += SpellMissile_OnDelete;
Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
//Obj_AI_Hero.OnEnterVisiblityClient += Game_OnEnterVisiblity;
Game.OnUpdate += Game_OnGameUpdate;
spellMenu = mainMenu;
spellMenu = mainMenu.AddSubMenuEx("Spells", "Spells");
LoadSpellDictionary();
InitChannelSpells();
}
示例3: SpellDetector
public SpellDetector(Menu mainMenu)
{
MissileClient.OnCreate += SpellMissile_OnCreate;
MissileClient.OnDelete += SpellMissile_OnDelete;
Obj_SpellMissile.OnCreate += SpellMissile_OnCreateOld;
Obj_SpellMissile.OnDelete += SpellMissile_OnDeleteOld;
AIHeroClient.OnProcessSpellCast += Game_ProcessSpell;
Game.OnUpdate += Game_OnGameUpdate;
menu = mainMenu;
spellMenu = menu.IsSubMenu ? menu.Parent.AddSubMenuEx("Spells", "Spells") : menu.AddSubMenuEx("Spells", "Spells");
LoadSpellDictionary();
InitChannelSpells();
}
示例4: AutoSetPing
public AutoSetPing(Menu mainMenu)
{
AIHeroClient.OnNewPath += Hero_OnNewPath;
Player.OnIssueOrder += Hero_OnIssueOrder;
Spellbook.OnCastSpell += Game_OnCastSpell;
MissileClient.OnCreate += Game_OnCreateObj;
AIHeroClient.OnProcessSpellCast += Game_ProcessSpell;
//Game.OnUpdate += Game_OnUpdate;
//Drawing.OnDraw += Game_OnDraw;
Menu autoSetPingMenu = mainMenu.IsSubMenu ? mainMenu.Parent.AddSubMenuEx("AutoSetPing", "AutoSetPingMenu") : mainMenu.AddSubMenuEx("AutoSetPing", "AutoSetPingMenu");
autoSetPingMenu.Add("AutoSetPingOn", new CheckBox("Auto Set Ping"));
autoSetPingMenu.Add("AutoSetPercentile", new Slider("Auto Set Percentile", 75));
//autoSetPingMenu.AddItem(new MenuItem("TestSkillshotDelay", "TestSkillshotDelay").SetValue<bool>(false));
menu = mainMenu;
}
示例5: Game_OnGameLoad
private void Game_OnGameLoad(EventArgs args)
{
//Console.Write("ezEvade loading....");
try
{
Player.OnIssueOrder += Game_OnIssueOrder;
Spellbook.OnCastSpell += Game_OnCastSpell;
Game.OnUpdate += Game_OnGameUpdate;
AIHeroClient.OnProcessSpellCast += Game_OnProcessSpell;
Game.OnEnd += Game_OnGameEnd;
SpellDetector.OnProcessDetectedSpells += SpellDetector_OnProcessDetectedSpells;
Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
/*Console.WriteLine("<font color=\"#66CCFF\" >Yomie's </font><font color=\"#CCFFFF\" >ezEvade</font> - " +
"<font color=\"#FFFFFF\" >Version " + Assembly.GetExecutingAssembly().GetName().Version + "</font>");
*/
menu = MainMenu.AddMenu("ezEvade", "ezEvade");
ObjectCache.menuCache.AddMenuToCache(menu);
Menu mainMenu = menu.AddSubMenuEx("Main", "Main");
mainMenu.Add("DodgeSkillShots",
new KeyBind("Dodge SkillShots", true, KeyBind.BindTypes.PressToggle, 'K'));
mainMenu.Add("ActivateEvadeSpells",
new KeyBind("Use Evade Spells", true, KeyBind.BindTypes.PressToggle, 'K'));
mainMenu.Add("DodgeDangerous", new CheckBox("Dodge Only Dangerous", false));
mainMenu.Add("DodgeFOWSpells", new CheckBox("Dodge FOW SkillShots", true));
mainMenu.Add("DodgeCircularSpells", new CheckBox("Dodge Circular SkillShots", true));
//var keyBind = mainMenu.Item("DodgeSkillShots").GetValue<KeyBind>();
//mainMenu.Item("DodgeSkillShots").SetValue(new KeyBind(keyBind.Key, KeyBindType.Toggle, true));
spellDetector = new SpellDetector(menu);
evadeSpell = new EvadeSpell(menu);
Menu keyMenu = menu.AddSubMenuEx("Key Settings", "KeySettings");
keyMenu.Add("DodgeDangerousKeyEnabled", new CheckBox("Enable Dodge Only Dangerous Keys", false));
keyMenu.Add("DodgeDangerousKey",
new KeyBind("Dodge Only Dangerous Key", false, KeyBind.BindTypes.HoldActive, 32));
keyMenu.Add("DodgeDangerousKey2",
new KeyBind("Dodge Only Dangerous Key 2", false, KeyBind.BindTypes.HoldActive, 'V'));
Menu miscMenu = menu.AddSubMenuEx("Misc Settings", "MiscSettings");
miscMenu.Add("HigherPrecision", new CheckBox("Enhanced Dodge Precision", false));
miscMenu.Add("RecalculatePosition", new CheckBox("Recalculate Path", true));
miscMenu.Add("ContinueMovement", new CheckBox("Continue Last Movement", true));
miscMenu.Add("CalculateWindupDelay", new CheckBox("Calculate Windup Delay", true));
miscMenu.Add("CheckSpellCollision", new CheckBox("Check Spell Collision", false));
miscMenu.Add("PreventDodgingUnderTower", new CheckBox("Prevent Dodging Under Tower", false));
miscMenu.Add("PreventDodgingNearEnemy", new CheckBox("Prevent Dodging Near Enemies", false));
miscMenu.Add("AdvancedSpellDetection", new CheckBox("Advanced Spell Detection", false));
//miscMenu.AddItem(new MenuItem("AllowCrossing", "Allow Crossing").SetValue(false));
//miscMenu.AddItem(new MenuItem("CalculateHeroPos", "Calculate Hero Position").SetValue(false));
Menu evadeModeMenu = menu.AddSubMenuEx("Mode", "EvadeModeSettings");
evadeModeMenu.AddGroupLabel("Evade Mode");
var sliderEvadeMode = evadeModeMenu.Add("EvadeMode", new Slider("Smooth", 0, 0, 2));
var modeArray = new[] { "Smooth", "Fastest", "Very Smooth" };
sliderEvadeMode.DisplayName = modeArray[sliderEvadeMode.CurrentValue];
sliderEvadeMode.OnValueChange +=
delegate(ValueBase<int> sender, ValueBase<int>.ValueChangeArgs changeArgs)
{
sender.DisplayName = modeArray[changeArgs.NewValue];
OnEvadeModeChange(sender, changeArgs);
};
Menu limiterMenu = menu.AddSubMenuEx("Humanizer", "Limiter");
limiterMenu.Add("ClickOnlyOnce", new CheckBox("Click Only Once", true));
limiterMenu.Add("EnableEvadeDistance", new CheckBox("Extended Evade", false));
limiterMenu.Add("TickLimiter", new Slider("Tick Limiter", 100, 0, 500));
limiterMenu.Add("SpellDetectionTime", new Slider("Spell Detection Time", 0, 0, 1000));
limiterMenu.Add("ReactionTime", new Slider("Reaction Time", 0, 0, 500));
limiterMenu.Add("DodgeInterval", new Slider("Dodge Interval", 0, 0, 2000));
Menu fastEvadeMenu = menu.AddSubMenuEx("Fast Evade", "FastEvade");
fastEvadeMenu.Add("FastMovementBlock", new CheckBox("EFast Movement Block", false));
fastEvadeMenu.Add("FastEvadeActivationTime", new Slider("FastEvade Activation Time", 65, 0, 500));
fastEvadeMenu.Add("SpellActivationTime", new Slider("Spell Activation Time", 200, 0, 1000));
fastEvadeMenu.Add("RejectMinDistance", new Slider("Collision Distance Buffer", 10, 0, 100));
/*Menu evadeSpellSettingsMenu = new Menu("Evade Spell", "EvadeSpellMisc");
evadeSpellSettingsMenu.AddItem(new MenuItem("EvadeSpellActivationTime", "Evade Spell Activation Time").SetValue(new Slider(150, 0, 500)));
miscMenu.AddSubMenuEx(evadeSpellSettingsMenu);*/
Menu bufferMenu = menu.AddSubMenuEx("Extra Buffers", "ExtraBuffers");
bufferMenu.Add("ExtraPingBuffer", new Slider("Extra Ping Buffer", 65, 0, 200));
bufferMenu.Add("ExtraCPADistance", new Slider("Extra Collision Distance", 10, 0, 150));
bufferMenu.Add("ExtraSpellRadius", new Slider("Extra Spell Radius", 0, 0, 100));
bufferMenu.Add("ExtraEvadeDistance", new Slider("Extra Evade Distance", 100, 0, 300));
bufferMenu.Add("ExtraAvoidDistance", new Slider("Extra Avoid Distance", 50, 0, 300));
bufferMenu.Add("MinComfortZone", new Slider("Min Distance to Champion", 550, 0, 1000));
Menu resetMenu = menu.AddSubMenuEx("Reset Config", "ResetConfig");
resetMenu.Add("ResetConfig", new CheckBox("Reset Config", false));
resetMenu.Add("ResetConfig200", new CheckBox("Set Patch Config", true));
//.........这里部分代码省略.........
示例6: EvadeTester
public EvadeTester(Menu mainMenu)
{
lastGameTimerStart = getGameTimer;
lastTickCountTimerStart = getTickCountTimer;
lastWatchTimerStart = getWatchTimer;
lastTimerCheck = getTickCountTimer;
Drawing.OnDraw += Drawing_OnDraw;
Player.OnIssueOrder += Game_OnIssueOrder;
Game.OnUpdate += Game_OnGameUpdate;
Chat.OnInput += Game_OnGameInput;
Game.OnSendPacket += Game_onSendPacket;
//Game.OnProcessPacket += Game_onRecvPacket;
MissileClient.OnDelete += Game_OnDelete;
MissileClient.OnCreate += SpellMissile_OnCreate;
AIHeroClient.OnProcessSpellCast += Game_ProcessSpell;
Spellbook.OnCastSpell += Game_OnCastSpell;
//Obj_AI_Base.OnFloatPropertyChange += GameObject_OnFloatPropertyChange; TODO
Obj_AI_Base.OnDamage += Game_OnDamage;
//GameObject.OnIntegerPropertyChange += GameObject_OnIntegerPropertyChange;
//Game.OnGameNotifyEvent += Game_OnGameNotifyEvent;
Game.OnWndProc += Game_OnWndProc;
AIHeroClient.OnNewPath += ObjAiHeroOnOnNewPath;
SpellDetector.OnProcessDetectedSpells += SpellDetector_OnProcessDetectedSpells;
menu = mainMenu;
testMenu = mainMenu.IsSubMenu ? mainMenu.Parent.AddSubMenuEx("Test", "Test") : mainMenu.AddSubMenuEx("Test", "Test");
testMenu.Add("TestWall", new CheckBox("TestWall", true));
testMenu.Add("TestPath", new CheckBox("TestPath", true));
testMenu.Add("TestTracker", new CheckBox("TestTracker", false));
testMenu.Add("TestHeroPos", new CheckBox("TestHeroPos", true));
testMenu.Add("DrawHeroPos", new CheckBox("DrawHeroPos", true));
testMenu.Add("TestSpellEndTime", new CheckBox("TestSpellEndTime", true));
testMenu.Add("ShowBuffs", new CheckBox("ShowBuffs", true));
testMenu.Add("ShowDashInfo", new CheckBox("ShowDashInfo", true));
testMenu.Add("ShowProcessSpell", new CheckBox("ShowProcessSpell", true));
testMenu.Add("ShowMissileInfo", new CheckBox("ShowMissileInfo", true));
testMenu.Add("ShowWindupTime", new CheckBox("ShowWindupTime", true));
testMenu.Add("TestMoveTo", new KeyBind("TestMoveTo", false, KeyBind.BindTypes.PressToggle, 'L'));
testMenu.Add("EvadeTesterPing", new CheckBox("EvadeTesterPing", false));
Game_OnGameLoad();
}
示例7: Game_OnGameLoad
private void Game_OnGameLoad(EventArgs args)
{
Console.Write("ezEvade loading....");
Player.OnIssueOrder += Game_OnIssueOrder;
Spellbook.OnCastSpell += Game_OnCastSpell;
Game.OnUpdate += Game_OnGameUpdate;
Obj_AI_Base.OnProcessSpellCast += Game_OnProcessSpell;
Game.OnEnd += Game_OnGameEnd;
SpellDetector.OnProcessDetectedSpells += SpellDetector_OnProcessDetectedSpells;
Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
menu = MainMenu.AddMenu("ezEvade", "ezEvade");
ObjectCache.menuCache.AddMenuToCache(menu);
Menu mainMenu = menu.AddSubMenuEx("Main", "Main");
mainMenu.Add("DodgeSkillShots", new KeyBind("Dodge SkillShots", true, KeyBind.BindTypes.PressToggle, 'K'));
mainMenu.Add("ActivateEvadeSpells", new KeyBind("Use Evade Spells", true, KeyBind.BindTypes.PressToggle, 'K'));
mainMenu.AddSeparator();
mainMenu.Add("DodgeDangerous", new CheckBox("Dodge Only Dangerous", false));
mainMenu.Add("ChaseModeMinHP", new CheckBox("Check Ignored HP %(ChaseMode)"));
mainMenu.Add("DodgeFOWSpells", new CheckBox("Dodge FOW SkillShots"));
mainMenu.Add("DodgeCircularSpells", new CheckBox("Dodge Circular SkillShots"));
mainMenu.AddSeparator();
mainMenu.Add("DodgeDangerousKeyEnabled", new CheckBox("Enable Dodge Only Dangerous Keys", false));
mainMenu.Add("DodgeDangerousKey", new KeyBind("Dodge Only Dangerous Key", false, KeyBind.BindTypes.HoldActive, 32));
mainMenu.Add("DodgeDangerousKey2", new KeyBind("Dodge Only Dangerous Key 2", false, KeyBind.BindTypes.HoldActive, 'V'));
mainMenu.AddSeparator();
mainMenu.AddGroupLabel("Evade Mode");
var sliderEvadeMode = mainMenu.Add("EvadeMode", new Slider("Smooth", 0, 0, 2));
var modeArray = new[] { "Smooth", "Fastest", "Very Smooth" };
sliderEvadeMode.DisplayName = modeArray[sliderEvadeMode.CurrentValue];
sliderEvadeMode.OnValueChange +=
delegate(ValueBase<int> sender, ValueBase<int>.ValueChangeArgs changeArgs)
{
sender.DisplayName = modeArray[changeArgs.NewValue];
OnEvadeModeChange(sender, changeArgs);
};
spellDetector = new SpellDetector(menu);
evadeSpell = new EvadeSpell(menu);
Menu miscMenu = menu.AddSubMenuEx("Misc Settings", "MiscSettings");
miscMenu.Add("HigherPrecision", new CheckBox("Enhanced Dodge Precision", false));
miscMenu.Add("RecalculatePosition", new CheckBox("Recalculate Path"));
miscMenu.Add("ContinueMovement", new CheckBox("Continue Last Movement", false));
miscMenu.Add("CalculateWindupDelay", new CheckBox("Calculate Windup Delay"));
miscMenu.Add("CheckSpellCollision", new CheckBox("Check Spell Collision", false));
miscMenu.Add("PreventDodgingUnderTower", new CheckBox("Prevent Dodging Under Tower", false));
miscMenu.Add("PreventDodgingNearEnemy", new CheckBox("Prevent Dodging Near Enemies", false));
miscMenu.Add("AdvancedSpellDetection", new CheckBox("Advanced Spell Detection", false));
Menu limiterMenu = menu.AddSubMenuEx("Humanizer", "Limiter");
limiterMenu.Add("ClickOnlyOnce", new CheckBox("Click Only Once", false));
limiterMenu.Add("EnableEvadeDistance", new CheckBox("Extended Evade", false));
limiterMenu.Add("TickLimiter", new Slider("Tick Limiter", 0, 0, 500));
limiterMenu.Add("SpellDetectionTime", new Slider("Spell Detection Time", 0, 0, 1000));
limiterMenu.Add("ReactionTime", new Slider("Reaction Time", 0, 0, 500));
limiterMenu.Add("DodgeInterval", new Slider("Dodge Interval", 0, 0, 2000));
Menu fastEvadeMenu = menu.AddSubMenuEx("Fast Evade", "FastEvade");
fastEvadeMenu.Add("FastMovementBlock", new CheckBox("Fast Movement Block", false));
fastEvadeMenu.Add("FastEvadeActivationTime", new Slider("FastEvade Activation Time", 65, 0, 500));
fastEvadeMenu.Add("SpellActivationTime", new Slider("Spell Activation Time", 200, 0, 1000));
fastEvadeMenu.Add("RejectMinDistance", new Slider("Collision Distance Buffer", 10));
Menu bufferMenu = menu.AddSubMenuEx("Extra Buffers", "ExtraBuffers");
bufferMenu.Add("ExtraPingBuffer", new Slider("Extra Ping Buffer", 65, 0, 200));
bufferMenu.Add("ExtraCPADistance", new Slider("Extra Collision Distance", 10, 0, 150));
bufferMenu.Add("ExtraSpellRadius", new Slider("Extra Spell Radius"));
bufferMenu.Add("ExtraEvadeDistance", new Slider("Extra Evade Distance", 0, 0, 300));
bufferMenu.Add("ExtraAvoidDistance", new Slider("Extra Avoid Distance", 50, 0, 300));
bufferMenu.Add("MinComfortZone", new Slider("Min Distance to Champion", 1000, 0, 1000));
spellDrawer = new SpellDrawer(menu);
var initCache = ObjectCache.myHeroCache;
Console.WriteLine("ezEvade Loaded");
}