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); }
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(); } else { CurrentPosition.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(); } }
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); }