public override void ResetMouse()
 {
     base.MouseArrowTexture = base.DefaultMouseArrowTexture;
     this.viewMove = ViewMove.Stop;
 }
        private void UpdateViewMove()          //更新视野移动方向
        {
            this.ResetMouse();

            if (this.Plugins.AirViewPlugin.IsMapShowing)
            {
                if (StaticMethods.PointInRectangle(this.MousePosition, this.Plugins.AirViewPlugin.MapPosition))
                {
                    return;
                }
            }
            if (((base.Game.IsActive && base.EnableScroll) && (!this.DrawingSelector && (base.viewportSize != Point.Zero))) && ((((this.mouseState.X >= 0) && (this.mouseState.Y >= 0)) && (this.mouseState.X <= this.viewportSize.X)) && (this.mouseState.Y <= this.viewportSize.Y)))
            {
                if (this.mouseState.X < 50)
                {
                    if (this.mouseState.Y < 50)
                    {
                        if ((this.mainMapLayer.LeftEdge != 0) || (this.mainMapLayer.TopEdge != 0))
                        {
                            base.MouseArrowTexture = this.Textures.MouseArrowTextures[5];
                            this.viewMove = ViewMove.TopLeft;
                        }
                    }
                    else if ((this.viewportSize.Y - this.mouseState.Y) < 50)
                    {
                        if ((this.mainMapLayer.LeftEdge != 0) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                        {
                            base.MouseArrowTexture = this.Textures.MouseArrowTextures[7];
                            this.viewMove = ViewMove.BottomLeft;
                        }
                    }
                    else if (this.mainMapLayer.LeftEdge != 0)
                    {
                        base.MouseArrowTexture = this.Textures.MouseArrowTextures[1];
                        this.viewMove = ViewMove.Left;
                    }
                }
                else if ((this.viewportSize.X - this.mouseState.X) < 50)
                {
                    if (this.mouseState.Y < 50)
                    {
                        if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || (this.mainMapLayer.TopEdge != 0))
                        {
                            base.MouseArrowTexture = this.Textures.MouseArrowTextures[6];
                            this.viewMove = ViewMove.TopRight;
                        }
                    }
                    else if ((this.viewportSize.Y - this.mouseState.Y) < 50)
                    {
                        if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                        {
                            base.MouseArrowTexture = this.Textures.MouseArrowTextures[8];
                            this.viewMove = ViewMove.BottomRight;
                        }
                    }
                    else if ((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X)
                    {
                        base.MouseArrowTexture = this.Textures.MouseArrowTextures[2];
                        this.viewMove = ViewMove.Right;
                    }
                }
                else if (this.mouseState.Y < 50)
                {
                    if (this.mainMapLayer.TopEdge != 0)
                    {
                        base.MouseArrowTexture = this.Textures.MouseArrowTextures[3];
                        this.viewMove = ViewMove.Top;
                    }
                }
                else if (((this.viewportSize.Y - this.mouseState.Y) < 50) && ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                {
                    base.MouseArrowTexture = this.Textures.MouseArrowTextures[4];
                    this.viewMove = ViewMove.Bottom;
                }

                if (this.keyState.IsKeyDown(Keys.Left))
                {
                    if (this.keyState.IsKeyDown(Keys.Up))
                    {
                        if ((this.mainMapLayer.LeftEdge != 0) || (this.mainMapLayer.TopEdge != 0))
                        {
                            this.viewMove = ViewMove.TopLeft;
                            this.isKeyScrolling = true;
                        }
                    }
                    else if (this.keyState.IsKeyDown(Keys.Down))
                    {
                        if ((this.mainMapLayer.LeftEdge != 0) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                        {
                            this.viewMove = ViewMove.BottomLeft;
                            this.isKeyScrolling = true;
                        }
                    }
                    else if (this.mainMapLayer.LeftEdge != 0)
                    {
                        this.viewMove = ViewMove.Left;
                        this.isKeyScrolling = true;
                    }
                }
                else if (this.keyState.IsKeyDown(Keys.Right))
                {
                    if (this.keyState.IsKeyDown(Keys.Up))
                    {
                        if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || (this.mainMapLayer.TopEdge != 0))
                        {
                            this.viewMove = ViewMove.TopRight;
                            this.isKeyScrolling = true;
                        }
                    }
                    else if (this.keyState.IsKeyDown(Keys.Down))
                    {
                        if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                        {
                            this.viewMove = ViewMove.BottomRight;
                            this.isKeyScrolling = true;
                        }
                    }
                    else if ((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X)
                    {
                        this.viewMove = ViewMove.Right;
                        this.isKeyScrolling = true;
                    }
                }
                else if (this.keyState.IsKeyDown(Keys.Up))
                {
                    if (this.mainMapLayer.TopEdge != 0)
                    {
                        this.viewMove = ViewMove.Top;
                        this.isKeyScrolling = true;
                    }
                }
                else if ((this.keyState.IsKeyDown(Keys.Down) && ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y)))
                {
                    this.viewMove = ViewMove.Bottom;
                    this.isKeyScrolling = true;
                }
                else
                {
                    this.isKeyScrolling = false;
                }
            }
        }
 private void UpdateViewMove()          //更新视野移动方向
 {
     this.ResetMouse();
     if (((base.Game.IsActive && base.EnableScroll) && (!this.DrawingSelector && (base.viewportSize != Point.Zero))) && ((((this.mouseState.X >= 0) && (this.mouseState.Y >= 0)) && (this.mouseState.X <= this.viewportSize.X)) && (this.mouseState.Y <= this.viewportSize.Y)))
     {
         if (this.mouseState.X < 50)
         {
             if (this.mouseState.Y < 50)
             {
                 if ((this.mainMapLayer.LeftEdge != 0) || (this.mainMapLayer.TopEdge != 0))
                 {
                     base.MouseArrowTexture = this.Textures.MouseArrowTextures[5];
                     this.viewMove = ViewMove.TopLeft;
                 }
             }
             else if ((this.viewportSize.Y - this.mouseState.Y) < 50)
             {
                 if ((this.mainMapLayer.LeftEdge != 0) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                 {
                     base.MouseArrowTexture = this.Textures.MouseArrowTextures[7];
                     this.viewMove = ViewMove.BottomLeft;
                 }
             }
             else if (this.mainMapLayer.LeftEdge != 0)
             {
                 base.MouseArrowTexture = this.Textures.MouseArrowTextures[1];
                 this.viewMove = ViewMove.Left;
             }
         }
         else if ((this.viewportSize.X - this.mouseState.X) < 50)
         {
             if (this.mouseState.Y < 50)
             {
                 if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || (this.mainMapLayer.TopEdge != 0))
                 {
                     base.MouseArrowTexture = this.Textures.MouseArrowTextures[6];
                     this.viewMove = ViewMove.TopRight;
                 }
             }
             else if ((this.viewportSize.Y - this.mouseState.Y) < 50)
             {
                 if (((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X) || ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
                 {
                     base.MouseArrowTexture = this.Textures.MouseArrowTextures[8];
                     this.viewMove = ViewMove.BottomRight;
                 }
             }
             else if ((this.mainMapLayer.LeftEdge + this.mainMapLayer.TotalTileWidth) != this.viewportSize.X)
             {
                 base.MouseArrowTexture = this.Textures.MouseArrowTextures[2];
                 this.viewMove = ViewMove.Right;
             }
         }
         else if (this.mouseState.Y < 50)
         {
             if (this.mainMapLayer.TopEdge != 0)
             {
                 base.MouseArrowTexture = this.Textures.MouseArrowTextures[3];
                 this.viewMove = ViewMove.Top;
             }
         }
         else if (((this.viewportSize.Y - this.mouseState.Y) < 50) && ((this.mainMapLayer.TopEdge + this.mainMapLayer.TotalTileHeight) != this.viewportSize.Y))
         {
             base.MouseArrowTexture = this.Textures.MouseArrowTextures[4];
             this.viewMove = ViewMove.Bottom;
         }
     }
 }