Exemplo n.º 1
0
 /// <summary>
 /// MouseMove
 /// </summary>
 /// <param name="e"></param>
 public override void MouseMove(MouseState e)
 {
     if (!DebugConsole.Visible)
     {
         if (ScriptManager.BlockType <= ViewerEnums.BlockType.BlockUserMoves)
         {
             if (_Interface.IsInterfaceActive())
             {
                 _Interface.MouseMove(e);
             }
             else if (ScriptManager.ScriptStagesInteractions)
             {
                 if (e.X >= 0f && e.Y > 0f)
                 {
                     Point fixedE = FixViewCoords(e);
                     if (_Service.GetEventFromMatrix(fixedE, _ProjectData.Resolution.MatrixPrecision) ||
                         _Interface.Inventory.GetInventoryButtonEvent(new Point(e.X, e.Y)))
                     {
                         ActionManager.ClickedState = true;
                     }
                     else
                     {
                         ActionManager.ClickedState = false;
                     }
                 }
             }
             else
             {
                 ActionManager.ClickedState = false;
             }
         }
         else if (ScriptManager.CurrentChoice != null)
         {
             ScriptManager.CurrentChoice.MouseMove(e);
         }
     }
 }