Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void UpdateTest()
 {
     Vector2 position = new Vector2(); // TODO: Initialize to an appropriate value
     SpriteFont font = null; // TODO: Initialize to an appropriate value
     DropDownList target = new DropDownList(position, font); // 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.");
 }