Beispiel #1
0
        public override void Update(GameTime time)
        {
            if (active)
            {
                Point mousePos = InputManager.GetMousePos();
                if (this.BoundBox.Contains(mousePos))
                {
                    hovering = true;
                }
                else
                {
                    hovering = false;
                }

                input.Update(time);
                contextMenu.Update(time);
            }
            base.Update(time);
        }
Beispiel #2
0
 public void UpdateTest()
 {
     Vector2 position = new Vector2(); // TODO: Initialize to an appropriate value
     SpriteFont font = null; // TODO: Initialize to an appropriate value
     Color color = new Color(); // TODO: Initialize to an appropriate value
     Action lambdaTextEnter = null; // TODO: Initialize to an appropriate value
     string input = string.Empty; // TODO: Initialize to an appropriate value
     Action lambdaTextChanged = null; // TODO: Initialize to an appropriate value
     TextInput target = new TextInput(position, font, color, lambdaTextEnter, input, lambdaTextChanged); // TODO: Initialize to an appropriate value
     GameTime time = null; // TODO: Initialize to an appropriate value
     target.Update(time);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }