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