Beispiel #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;
        }
Beispiel #2
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;
        }
Beispiel #3
0
 public void changeCursorType(CursorType newType)
 {
     switch (newType)
     {
         case CursorType.Camera:
             this.currentCursor = this.defaultCursor;
             break;
         case CursorType.Regular:
             this.currentCursor = this.cameraCursor;
             break;
     }
 }
Beispiel #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;
            }
        }