Ejemplo n.º 1
0
        public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
        {
            if (buttons.Count > 0 &&
                e.curState.X > Position.X && e.curState.Y > Position.Y + 96 &&
                e.curState.X < Position.X + 280 && e.curState.Y < Position.Y + Size.Y)
            {
                FileListOffset.Y += e.delta / 3;
                if (FileListOffset.Y > 0)
                {
                    FileListOffset.Y = 0;
                }
                float h = -(buttons[buttons.Count - 1].Position.Y - Position.Y + buttons[buttons.Count - 1].Size.Y - Size.Y);
                if (FileListOffset.Y < h)
                {
                    FileListOffset.Y = h;
                }

                sbFileList.Value = (int)(FileListOffset.Y / h * sbFileList.MaxValue);
            }

            onMouseMove(new InputEngine.MouseMoveArgs()
            {
                curState = e.curState
            });

            base.onMouseWheelMove(e);
        }
Ejemplo n.º 2
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     if (IsIn(e.curState.X, e.curState.Y))
     {
         e.Handled = true;
     }
     base.onMouseWheelMove(e);
 }
Ejemplo n.º 3
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     base.onMouseWheelMove(e);
     if (tbCode.isVisible)
     {
         e.Handled = true;
     }
 }
Ejemplo n.º 4
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     base.onMouseWheelMove(e);
     if (!e.Handled && currentFrame != null)
     {
         currentFrame.onMouseWheelMove(e);
     }
     e.Handled = true;
 }
Ejemplo n.º 5
0
        public override void OnMouseWheel(InputEngine.MouseWheelMoveArgs e)
        {
            base.OnMouseWheel(e);

            if (e.delta != 0)
            {
                Resistance += (float)(e.delta) / 120f;
            }
        }
Ejemplo n.º 6
0
 public static void OnMouseWheel(InputEngine.MouseWheelMoveArgs e)
 {
     for (int i = 0; i < Components.Count; i++)
     {
         if (Components[i].isIn(e.curState.X, e.curState.Y))
         {
             Components[i].OnMouseWheel(e);
         }
     }
 }
Ejemplo n.º 7
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     if (IsIn(e.curState.X, e.curState.Y))
     {
         e.Handled = true;
         Scrolled -= e.delta / 120;
         //CheckScrolledBounds();
         //Scrolled = scrolled;
     }
 }
Ejemplo n.º 8
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     if (!e.Handled)
     {
         logoffset -= e.delta / 120 * 4;
         CheckLogRange();
         updateLog();
     }
     e.Handled = true;
 }
Ejemplo n.º 9
0
 public virtual void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     foreach (Control c in controls)
     {
         if (c.isVisible)
         {
             c.onMouseWheelMove(e);
         }
         if (InputEngine.eventHandled)
         {
             break;
         }
     }
 }
Ejemplo n.º 10
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     if (isFocused && !contextMenu.isVisible)
     {
         TextOffset.Y -= SizePerOneSymbol.Y * e.delta / 120f;
         if (TextOffset.Y > DrawTextLines.Length * SizePerOneSymbol.Y - size.Y)
         {
             TextOffset.Y = DrawTextLines.Length * SizePerOneSymbol.Y - size.Y;
         }
         if (TextOffset.Y < 0)
         {
             TextOffset.Y = 0;
         }
         Cursor = Cursor;
     }
     base.onMouseWheelMove(e);
 }
Ejemplo n.º 11
0
        public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
        {
            InputEngine.MouseWheelMoveArgs ee = new InputEngine.MouseWheelMoveArgs()
            {
                delta    = e.delta,
                curState = new MouseState(
                    e.curState.X - (int)position.X,
                    e.curState.Y - (int)position.Y,
                    e.curState.ScrollWheelValue,
                    e.curState.LeftButton,
                    e.curState.MiddleButton,
                    e.curState.RightButton,
                    e.curState.XButton1,
                    e.curState.XButton2)
            };

            base.onMouseWheelMove(ee);
        }
Ejemplo n.º 12
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     Offset.Y += e.delta / 2;
     if (Offset.Y > 0)
     {
         Offset.Y = 0;
     }
     if (Offset.Y < -(elements.Count * 106 + 25 - size.Y + 97))
     {
         Offset.Y = -(elements.Count * 106 + 25 - size.Y + 97);
     }
     scrollbar.Value = (int)-Offset.Y;
     for (int i = 0; i < elements.Count; i++)
     {
         elements[i].Offset = Offset;
         elements[i].onMouseWheelMove(e);
     }
 }
Ejemplo n.º 13
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     isMouseOver = IsIn(e.curState.X - (int)offset.X, e.curState.Y - (int)offset.Y);
 }
Ejemplo n.º 14
0
 public virtual void OnMouseWheel(InputEngine.MouseWheelMoveArgs e)
 {
 }
Ejemplo n.º 15
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
 }
Ejemplo n.º 16
0
 public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
 {
     base.onMouseWheelMove(e);
     e.Handled = true;
 }
Ejemplo n.º 17
0
        public override void onMouseWheelMove(InputEngine.MouseWheelMoveArgs e)
        {
            InputEngine.MouseWheelMoveArgs ee = new InputEngine.MouseWheelMoveArgs()
            {
                delta = e.delta,
                curState = new MouseState(
                    e.curState.X - (int)position.X,
                    e.curState.Y - (int)position.Y,
                    e.curState.ScrollWheelValue,
                    e.curState.LeftButton,
                    e.curState.MiddleButton,
                    e.curState.RightButton,
                    e.curState.XButton1,
                    e.curState.XButton2)
            };

            base.onMouseWheelMove(ee);
        }