public bool Remove() { if (_minimapSprite != null) { _minimapSprite.Remove(); } _defaultCircle.Remove(); _rangeCircle.Remove(); _rangeCircleFilled.Remove(); _defaultCircleFilled.Remove(); if (_timerText != null) { _timerText.Remove(); } if (_missileLine != null) { _missileLine.Remove(); } return(true); }
/// <summary> /// Raises the <see cref="E:Ping" /> event. /// </summary> /// <param name="args">The <see cref="GamePingEventArgs"/> instance containing the event data.</param> private void OnPing(GamePingEventArgs args) { if (!args.Source.IsMe && ShouldRun() && (args.Source is Obj_AI_Hero)) { var pingType = args.PingType; var srcHero = args.Source as Obj_AI_Hero; if (pingType == PingCategory.Normal) { var textObject = new Render.Text( srcHero.ChampionName, new Vector2( Drawing.WorldToScreen(args.Position.To3D()).X, Drawing.WorldToScreen(args.Position.To3D()).Y + 15), 17, SharpDX.Color.White) { PositionUpdate = () => new Vector2( Drawing.WorldToScreen(args.Position.To3D()).X, Drawing.WorldToScreen(args.Position.To3D()).Y + 30), Centered = true }; textObject.Add(0); LeagueSharp.Common.Utility.DelayAction.Add(1000, () => { textObject.Remove(); }); } } }
public bool RemoveCircle() { _circle.Remove(); if (_timerText != null) { _timerText.Remove(); } if (_minimapSprite != null) { _minimapSprite.Remove(); } return(true); }
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)); Text.OutLined = true; Text.Add(); } else { CurrentPosition.Remove(); Text.Remove(); } }
void AltarObject_ValueChanged(object sender, OnValueChangeEventArgs e) { TextMinimap.Remove(); TextMinimap.TextFontDescription = new FontDescription { FaceName = "Calibri", Height = e.GetNewValue <Slider>().Value, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default, }; TextMinimap.Add(); TextMap.Remove(); TextMap.TextFontDescription = new FontDescription { FaceName = "Calibri", Height = e.GetNewValue <Slider>().Value, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default, }; TextMap.Add(); }
private static void SupportedChampionsNotify() { var drawPos = new Vector2(120, 120); Render.Text MainText = new Render.Text("OlympusAIO - Supported Champions", drawPos, 20, new ColorBGRA(170, 255, 47, 255)); MainText.Add(0); MainText.OnDraw(); foreach (var champ in SupportedChampions) { drawPos += new Vector2(0, 30); Render.Text SupportingChampions = new Render.Text(champ, drawPos, 20, new ColorBGRA(255, 222, 173, 255)); SupportingChampions.Add(0); SupportingChampions.OnDraw(); DelayAction.Add(13000, () => SupportingChampions.Remove()); } DelayAction.Add(13000, () => MainText.Remove()); }
public bool Remove() { if (_minimapSprite != null && WardTracker.Config.Item("SpritesEnabled").GetValue <bool>()) { _minimapSprite.Remove(); } _defaultCircle.Remove(); _rangeCircle.Remove(); _rangeCircleFilled.Remove(); _defaultCircleFilled.Remove(); if (_timerText != null) { _timerText.Remove(); } if (_missileLine != null) { _missileLine.Remove(); } return(true); }
private void CurrentDomainOnDomainUnload(object sender, EventArgs eventArgs) { Text.Remove(); Text.Dispose(); }