Example #1
0
 protected internal override void OnMouseUp(int X, int Y, MouseButtons mb)
 {
     if (this.m_CanClose && (mb == MouseButtons.Right))
     {
         Gumps.Destroy(this);
         Engine.CancelClick();
     }
 }
Example #2
0
 protected internal override void OnMouseUp(int x, int y, MouseButtons mb)
 {
     if ((Engine.TargetHandler != null) && ((mb & MouseButtons.Left) != MouseButtons.None))
     {
         this.m_Item.OnTarget();
         Engine.CancelClick();
     }
 }
Example #3
0
 protected internal override void OnMouseUp(int X, int Y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         this.m_Container.BookIconX = base.m_X;
         this.m_Container.BookIconY = base.m_Y;
         this.m_Container.OpenSB    = false;
         Gumps.Destroy(this);
         Gumps.Destroy(this.m_Book);
         Engine.CancelClick();
     }
 }
Example #4
0
 protected internal override void OnMouseUp(int X, int Y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         this.Close();
         Engine.CancelClick();
     }
     else if ((Engine.TargetHandler != null) && ((mb & MouseButtons.Left) != MouseButtons.None))
     {
         this.m_Mobile.OnTarget();
         Engine.CancelClick();
     }
 }
Example #5
0
 protected internal override void OnMouseUp(int x, int y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         if ((Control.ModifierKeys & Keys.Shift) != Keys.None)
         {
             Gumps.Destroy(this);
             Engine.CancelClick();
         }
         else
         {
             Engine.amMoving = false;
         }
     }
 }
Example #6
0
 protected internal override void OnMouseUp(int x, int y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         Point p = base.PointToScreen(new Point(x, y));
         p = base.m_Parent.PointToClient(p);
         base.m_Parent.OnMouseUp(p.X, p.Y, mb);
     }
     else if ((Engine.TargetHandler != null) && ((mb & MouseButtons.Left) != MouseButtons.None))
     {
         this.m_Item.OnTarget();
         Engine.CancelClick();
     }
     else if (((mb & MouseButtons.Left) != MouseButtons.None) && ((Control.ModifierKeys & Keys.Shift) != Keys.None))
     {
         Network.Send(new PPopupRequest(this.m_Item));
     }
 }
Example #7
0
 protected internal override void OnMouseUp(int X, int Y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         Mobile mobile = this.m_Mobile;
         this.Close();
         mobile.BigStatus = false;
         Engine.CancelClick();
     }
     if ((mb & MouseButtons.Left) != MouseButtons.None)
     {
         if (Engine.TargetHandler != null)
         {
             this.m_Mobile.OnTarget();
             Engine.CancelClick();
         }
         else
         {
             this.m_Mobile.Look();
         }
     }
 }
Example #8
0
 protected internal override void OnMouseUp(int X, int Y, MouseButtons mb)
 {
     if ((mb & MouseButtons.Right) != MouseButtons.None)
     {
         if ((Control.ModifierKeys & Keys.Shift) != Keys.None)
         {
             this.Close();
             Engine.CancelClick();
         }
         else
         {
             Engine.amMoving = false;
         }
     }
     else if (((mb & MouseButtons.Left) != MouseButtons.None) && ((Control.ModifierKeys & Keys.Control) != Keys.None))
     {
         GRadar.m_FocusMob = this.m_Mobile;
     }
     else if ((Engine.TargetHandler != null) && ((mb & MouseButtons.Left) != MouseButtons.None))
     {
         this.m_Mobile.OnTarget();
         Engine.CancelClick();
     }
 }