예제 #1
0
        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);
        }
예제 #2
0
 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();
     }
 }
예제 #3
0
 public bool RemoveCircle()
 {
     _circle.Remove();
     if (_timerText != null)
     {
         _timerText.Remove();
     }
     if (_minimapSprite != null)
     {
         _minimapSprite.Remove();
     }
     return(true);
 }
예제 #4
0
 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();
     }
 }
예제 #5
0
        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);
        }