示例#1
0
        /// <summary>
        /// Create a cursor
        /// </summary>
        public Cursor()
        {
            this.defaultCursor = new UI.Image(DataIdentifier.textureCursorRegular, Horizontal.Left, Vertical.Top);
            this.cameraCursor  = new UI.Image(DataIdentifier.textureCursorCamera, Horizontal.Center, Vertical.Top);

            this.currentCursor = defaultCursor;
        }
示例#2
0
文件: Cursor.cs 项目: XF9/Fenrir
        /// <summary>
        /// Create a cursor
        /// </summary>
        public Cursor()
        {
            this.defaultCursor = new UI.Image(DataIdentifier.textureCursorRegular, Horizontal.Left, Vertical.Top);
            this.cameraCursor = new UI.Image(DataIdentifier.textureCursorCamera, Horizontal.Center, Vertical.Top);

            this.currentCursor = defaultCursor;
        }
示例#3
0
文件: Cursor.cs 项目: XF9/Fenrir
 public void changeCursorType(CursorType newType)
 {
     switch (newType)
     {
         case CursorType.Camera:
             this.currentCursor = this.defaultCursor;
             break;
         case CursorType.Regular:
             this.currentCursor = this.cameraCursor;
             break;
     }
 }
示例#4
0
        public void changeCursorType(CursorType newType)
        {
            switch (newType)
            {
            case CursorType.Camera:
                this.currentCursor = this.defaultCursor;
                break;

            case CursorType.Regular:
                this.currentCursor = this.cameraCursor;
                break;
            }
        }