Beispiel #1
0
        public void MouseExit(GuiMouseSensitiveArgs args)
        {
            // We no longer have a mouseover
            isMouseOver = false;

            // Stop listening to the mouse up events
            args.GuiManager.MouseUpListeners.Remove(this);
        }
Beispiel #2
0
        public void MouseEnter(GuiMouseSensitiveArgs args)
        {
            // Mark that the mouse is over this one
            isMouseOver = true;

            // Listen to the mouse up events
            args.GuiManager.MouseUpListeners.Add(this);
        }
Beispiel #3
0
        public virtual void MouseEnter(GuiMouseSensitiveArgs args)
        {
            if (Clicked != null)
            {
                // Add ourselves to the listener
                args.GuiManager.MouseUpListeners.Add(this);

                // Mark ourselves as active
                IsActive = true;
            }
        }
Beispiel #4
0
        public virtual void MouseEnter(GuiMouseSensitiveArgs args)
        {
            if (Clicked != null)
            {
                // Add ourselves to the listener
                args.GuiManager.MouseUpListeners.Add(this);

                // Mark ourselves as active
                IsActive = true;
            }
        }
Beispiel #5
0
        public virtual void MouseExit(GuiMouseSensitiveArgs args)
        {
            if (Clicked != null)
            {
                // Remove ourselves to the listener
                args.GuiManager.MouseUpListeners.Remove(this);

                // Mark ourselves as active
                IsActive = false;
            }
        }
        public void MouseExit(GuiMouseSensitiveArgs args)
        {
            // We no longer have a mouseover
            isMouseOver = false;

            // Stop listening to the mouse up events
            args.GuiManager.MouseUpListeners.Remove(this);
        }
        public void MouseEnter(GuiMouseSensitiveArgs args)
        {
            // Mark that the mouse is over this one
            isMouseOver = true;

            // Listen to the mouse up events
            args.GuiManager.MouseUpListeners.Add(this);
        }
Beispiel #8
0
        public virtual void MouseExit(GuiMouseSensitiveArgs args)
        {
            if (Clicked != null)
            {
                // Remove ourselves to the listener
                args.GuiManager.MouseUpListeners.Remove(this);

                // Mark ourselves as active
                IsActive = false;
            }
        }
 /// <summary>
 /// Stops listening to mouse events.
 /// </summary>
 /// <param name="args"></param>
 public override void MouseExit(GuiMouseSensitiveArgs args)
 {
     base.MouseExit(args);
     args.GuiManager.MouseMotionListeners.Remove(this);
 }
Beispiel #10
0
 /// <summary>
 /// Enables collection of mouse events.
 /// </summary>
 /// <param name="args"></param>
 public override void MouseEnter(GuiMouseSensitiveArgs args)
 {
     base.MouseEnter(args);
     args.GuiManager.MouseMotionListeners.Add(this);
 }
 /// <summary>
 /// Stops listening to mouse events.
 /// </summary>
 /// <param name="args"></param>
 public override void MouseExit(GuiMouseSensitiveArgs args)
 {
     base.MouseExit(args);
     args.GuiManager.MouseMotionListeners.Remove(this);
 }
 /// <summary>
 /// Enables collection of mouse events.
 /// </summary>
 /// <param name="args"></param>
 public override void MouseEnter(GuiMouseSensitiveArgs args)
 {
     base.MouseEnter(args);
     args.GuiManager.MouseMotionListeners.Add(this);
 }