private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = new Menu("【超神汉化】gank提醒", "universalgankalerter", true); _sliderRadius = new MenuItem("range", "最大范围").SetValue(new Slider(3000, 500, 5000)); _sliderRadius.ValueChanged += SliderRadiusValueChanged; _sliderCooldown = new MenuItem("cooldown", "冷却 (秒)").SetValue(new Slider(10, 0, 60)); _sliderLineDuration = new MenuItem("lineduration", "线上持续时间(秒)").SetValue(new Slider(10, 0, 20)); _dangerPing = new MenuItem("dangerping", "危险提示(本地)").SetValue(true); _junglerOnly = new MenuItem("jungleronly", "只警示打野").SetValue(false); _menu.AddItem(_sliderRadius); _menu.AddItem(_sliderCooldown); _menu.AddItem(_sliderLineDuration); _menu.AddItem(_dangerPing); _menu.AddItem(_junglerOnly); foreach (Obj_AI_Hero hero in ObjectManager.Get <Obj_AI_Hero>()) { if (hero.Team != ObjectManager.Player.Team) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero); _menu.AddItem(new MenuItem(hero.ChampionName, hero.ChampionName).SetValue(true)); } } _menu.AddToMainMenu(); Print("Loaded!"); }
private void Game_OnGameLoad() { _previewCircle = new PreviewCircle(); _menu = new Menu("Universal GankAlerter", "universalgankalerter", true); _sliderRadius = new MenuItem("range", "Trigger range").SetValue(new Slider(3000, 500, 5000)); _sliderRadius.ValueChanged += SliderRadiusValueChanged; _sliderCooldown = new MenuItem("cooldown", "Trigger cooldown (sec)").SetValue(new Slider(10, 0, 60)); _sliderLineDuration = new MenuItem("lineduration", "Line duration (sec)").SetValue(new Slider(10, 0, 20)); _enemyJunglerOnly = new MenuItem("jungleronly", "Warn jungler only (smite)").SetValue(false); _allyJunglerOnly = new MenuItem("allyjungleronly", "Warn jungler only (smite)").SetValue(true); _showChampionNames = new MenuItem("shownames", "Show champion name").SetValue(true); _drawMinimapLines = new MenuItem("drawminimaplines", "Draw minimap lines").SetValue(false); _dangerPing = new MenuItem("dangerping", "Danger Ping (local)").SetValue(false); _enemies = new Menu("Enemies", "enemies"); _enemies.AddItem(_enemyJunglerOnly); _allies = new Menu("Allies", "allies"); _allies.AddItem(_allyJunglerOnly); _menu.AddItem(_sliderRadius); _menu.AddItem(_sliderCooldown); _menu.AddItem(_sliderLineDuration); _menu.AddItem(_showChampionNames); _menu.AddItem(_drawMinimapLines); _menu.AddItem(_dangerPing); _menu.AddSubMenu(_enemies); _menu.AddSubMenu(_allies); foreach (AIHeroClient hero in ObjectManager.Get <AIHeroClient>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.AddItem(new MenuItem("enemy" + hero.ChampionName, hero.ChampionName).SetValue(true)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.AddItem(new MenuItem("ally" + hero.ChampionName, hero.ChampionName).SetValue(false)); } } } _menu.AddToMainMenu(); Print("Loaded!"); }
private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = MainMenu.AddMenu("Universal GankAlerter", "universalgankalerter"); _sliderRadius = new Slider("Trigger range", 3000, 500, 5000); _sliderRadius.OnValueChange += SliderRadiusValueChanged; _sliderCooldown = new Slider("Trigger cooldown (sec)", 10, 0, 60); _sliderLineDuration = new Slider("Line duration (sec)", 10, 0, 20); _enemyJunglerOnly = new CheckBox("Warn enemy jungler only (smite)", false); _allyJunglerOnly = new CheckBox("Warn ally jungler only (smite)", true); _showChampionNames = new CheckBox("Show champion name", true); _drawMinimapLines = new CheckBox("Draw minimap lines", false); _dangerPing = new CheckBox("Danger Ping (local)", false); _enemies = _menu.AddSubMenu("Enemies", "enemies"); _enemies.Add <CheckBox>("enemyjungleronly", _enemyJunglerOnly); _allies = _menu.AddSubMenu("Allies", "allies"); _allies.Add <CheckBox>("allyjungleronly", _allyJunglerOnly); _menu.Add <Slider>("radius", _sliderRadius); _menu.Add <Slider>("cooldown", _sliderCooldown); _menu.Add <Slider>("lineduration", _sliderLineDuration); _menu.Add <CheckBox>("shownames", _showChampionNames); _menu.Add <CheckBox>("drawminimaplines", _drawMinimapLines); _menu.Add <CheckBox>("dangerping", _dangerPing); //_menu.AddSubMenu(_enemies); //_menu.AddSubMenu(_allies); foreach (AIHeroClient hero in ObjectManager.Get <AIHeroClient>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.Add <CheckBox>("enemy" + hero.ChampionName, new CheckBox(hero.ChampionName)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.Add <CheckBox>("ally" + hero.ChampionName, new CheckBox(hero.ChampionName, false)); } } } //_menu.AddToMainMenu(); Print("Loaded!"); }
private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = new Menu("娛樂漢化:Gank提醒", "universalgankalerter", true); _sliderRadius = new MenuItem("range", "预警范围").SetValue(new Slider(3000, 500, 5000)); _sliderRadius.ValueChanged += SliderRadiusValueChanged; _sliderCooldown = new MenuItem("cooldown", "预警冷却时间(秒)").SetValue(new Slider(10, 0, 60)); _sliderLineDuration = new MenuItem("lineduration", "标示冷需时间").SetValue(new Slider(10, 0, 20)); _enemyJunglerOnly = new MenuItem("jungleronly", "仅警告打野").SetValue(false); _allyJunglerOnly = new MenuItem("allyjungleronly", "仅警告打野").SetValue(true); _showChampionNames = new MenuItem("shownames", "显示玩家名字").SetValue(true); _drawMinimapLines = new MenuItem("drawminimaplines", "小地图上标示线").SetValue(false); _dangerPing = new MenuItem("dangerping", "危险提示(本地)").SetValue(false); _enemies = new Menu("敌人", "enemies"); _enemies.AddItem(_enemyJunglerOnly); _allies = new Menu("队友", "allies"); _allies.AddItem(_allyJunglerOnly); _menu.AddItem(_sliderRadius); _menu.AddItem(_sliderCooldown); _menu.AddItem(_sliderLineDuration); _menu.AddItem(_showChampionNames); _menu.AddItem(_drawMinimapLines); _menu.AddItem(_dangerPing); _menu.AddSubMenu(_enemies); _menu.AddSubMenu(_allies); foreach (Obj_AI_Hero hero in ObjectManager.Get <Obj_AI_Hero>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.AddItem(new MenuItem("enemy" + hero.ChampionName, hero.ChampionName).SetValue(true)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.AddItem(new MenuItem("ally" + hero.ChampionName, hero.ChampionName).SetValue(false)); } } } _menu.AddToMainMenu(); Print("Loaded!"); }
private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = new Menu("Universal GankAlerter", "universalgankalerter", true); _sliderRadius = new MenuItem("range", "Trigger range").SetValue(new Slider(3000, 500, 15000)); _sliderRadius.ValueChanged += SliderRadiusValueChanged; _sliderCooldown = new MenuItem("cooldown", "Trigger cooldown (sec)").SetValue(new Slider(10, 0, 60)); _sliderLineDuration = new MenuItem("lineduration", "Line duration (sec)").SetValue(new Slider(10, 0, 20)); _enemyJunglerOnly = new MenuItem("jungleronly", "Warn jungler only (smite)").SetValue(false); _allyJunglerOnly = new MenuItem("allyjungleronly", "Warn jungler only (smite)").SetValue(true); _showChampionNames = new MenuItem("shownames", "Show champion name").SetValue(true); _drawMinimapLines = new MenuItem("drawminimaplines", "Draw minimap lines").SetValue(false); _dangerPing = new MenuItem("dangerping", "Danger Ping (local)").SetValue(false); _enemies = new Menu("Enemies", "enemies"); _enemies.AddItem(_enemyJunglerOnly); _allies = new Menu("Allies", "allies"); _allies.AddItem(_allyJunglerOnly); _menu.AddItem(_sliderRadius); _menu.AddItem(_sliderCooldown); _menu.AddItem(_sliderLineDuration); _menu.AddItem(_showChampionNames); _menu.AddItem(_drawMinimapLines); _menu.AddItem(_dangerPing); _menu.AddSubMenu(_enemies); _menu.AddSubMenu(_allies); foreach (Obj_AI_Hero hero in ObjectManager.Get<Obj_AI_Hero>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.AddItem(new MenuItem("enemy" + hero.ChampionName, hero.ChampionName).SetValue(true)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.AddItem(new MenuItem("ally" + hero.ChampionName, hero.ChampionName).SetValue(false)); } } } _menu.AddToMainMenu(); Print("Loaded!"); }
private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = MainMenu.AddMenu("Gank提示", "universalgankalerter"); _menu.Add("range", new Slider("触发范围", 3000, 500, 5000)); _menu["range"].Cast <Slider>().OnValueChange += SliderRadiusValueChanged; _menu.Add("cooldown", new Slider("触发倒计时 (秒)", 10, 0, 60)); _menu.Add("lineduration", new Slider("线形持续时间 (秒)", 10, 0, 20)); _menu.Add("shownames", new CheckBox("显示英雄名称")); _menu.Add("drawminimaplines", new CheckBox("显示小地图线", false)); _menu.Add("dangerping", new CheckBox("危险型信号 (本地)", false)); _enemies = _menu.AddSubMenu("敌人", "enemies"); _enemies.Add("jungleronly", new CheckBox("只警告打野的英雄 (带惩戒的)", false)); _allies = _menu.AddSubMenu("友军", "allies"); _allies.Add("allyjungleronly", new CheckBox("只警告打野的英雄 (带惩戒的)")); foreach (AIHeroClient hero in ObjectManager.Get <AIHeroClient>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.Add("enemy" + hero.ChampionName, new CheckBox(hero.ChampionName)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.Add("ally" + hero.ChampionName, new CheckBox(hero.ChampionName, false)); } } } Print("Loaded!"); }
private void Game_OnGameLoad(EventArgs args) { _previewCircle = new PreviewCircle(); _menu = MainMenu.AddMenu("Universal GankAlerter", "universalgankalerter"); _menu.Add("range", new Slider("Trigger range", 3000, 500, 5000)); _menu["range"].Cast<Slider>().OnValueChange += SliderRadiusValueChanged; _menu.Add("cooldown", new Slider("Trigger cooldown (sec)", 10, 0, 60)); _menu.Add("lineduration", new Slider("Line duration (sec)", 10, 0, 20)); _menu.Add("shownames", new CheckBox("Show champion name")); _menu.Add("drawminimaplines", new CheckBox("Draw minimap lines", false)); _menu.Add("dangerping", new CheckBox("Danger Ping (local)", false)); _enemies = _menu.AddSubMenu("Enemies", "enemies"); _enemies.Add("jungleronly", new CheckBox("Warn jungler only (smite)", false)); _allies = _menu.AddSubMenu("Allies", "allies"); _allies.Add("allyjungleronly", new CheckBox("Warn jungler only (smite)")); foreach (AIHeroClient hero in ObjectManager.Get<AIHeroClient>()) { if (hero.NetworkId != ObjectManager.Player.NetworkId) { if (hero.IsEnemy) { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, false); _enemies.Add("enemy" + hero.ChampionName, new CheckBox(hero.ChampionName)); } else { _championInfoById[hero.NetworkId] = new ChampionInfo(hero, true); _allies.Add("ally" + hero.ChampionName, new CheckBox(hero.ChampionName, false)); } } } Print("Loaded!"); }