public override void PickImage (eImageSource _source, 	float _scaleFactor, 	
		                                PickImageCompletion _onCompletion)
		{
			base.PickImage(_source, _scaleFactor, _onCompletion);
			
			if (_scaleFactor > 0f)
				Plugin.Call(Native.Methods.PICK_IMAGE, (int)_source, _scaleFactor);
		}
예제 #2
0
        public override void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
        {
            base.PickImage(_source, _scaleFactor, _onCompletion);

            if (_scaleFactor > 0f)
            {
                m_gallery.PickImage(_source);
            }
        }
		public override void PickImage (eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
		{
			base.PickImage(_source, _scaleFactor, _onCompletion);

			if (_scaleFactor > 0f)
			{
				m_gallery.PickImage(_source);
			}
		}
예제 #4
0
        public override void PickImage(eImageSource _source, float _scaleFactor,
                                       PickImageCompletion _onCompletion)
        {
            base.PickImage(_source, _scaleFactor, _onCompletion);

            if (_scaleFactor > 0f)
            {
                Plugin.Call(NativeInfo.Methods.PICK_IMAGE, (int)_source, _scaleFactor);
            }
        }
예제 #5
0
        public override void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
        {
            base.PickImage(_source, _scaleFactor, _onCompletion);

            if (_scaleFactor > 0f)
            {
                // Opens image picker
                pickImage((int)_source, _scaleFactor);
            }
        }
		public override void PickImage (eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
		{
			base.PickImage(_source, _scaleFactor, _onCompletion);

			if (_scaleFactor > 0f)
			{
				// Opens image picker
				pickImage((int)_source, _scaleFactor);
			}
		}
예제 #7
0
        /// <summary>
        /// Picks the image.
        /// </summary>
        /// <param name="_source"> Specify from where you want to pick the image from. <see cref="eImageSource"/> </param>
        /// <param name="_scaleFactor">Specify if scaled up or scaled down version of pick image is required. 1.0f returns the image with out any modification.</param>
        /// <param name="_onCompletion">Callback triggered once Pick from the source is finised.</param>
        public virtual void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
        {
            // Pause unity player
            this.PauseUnity();

            // Cache callbacks
            OnPickImageFinished = _onCompletion;

            if (_scaleFactor <= 0f)
            {
                PickImageFinished(null, ePickImageFinishReason.FAILED);
                return;
            }
        }
        /// <summary>
        /// Picks the image.
        /// </summary>
        /// <param name="_source"> Specify from where you want to pick the image from. <see cref="eImageSource"/> </param>
        /// <param name="_scaleFactor">Specify if scaled up or scaled down version of pick image is required. 1.0f returns the image with out any modification.</param>
        /// <param name="_onCompletion">Callback triggered once Pick from the source is finised.</param>
        public virtual void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion)
        {
            // Pause unity player
            this.PauseUnity();

            // Cache callbacks
            OnPickImageFinished	= _onCompletion;

            if (_scaleFactor <= 0f)
            {
                PickImageFinished(null, ePickImageFinishReason.FAILED);
                return;
            }
        }
 public void PickImage(eImageSource _source)
 {
     if (_source == eImageSource.ALBUM)
     {
         m_viewType = eMediaLibraryType.ALBUM;
         m_scrollView.Reset();
     }
     else if (_source == eImageSource.CAMERA)
     {
         m_viewType = eMediaLibraryType.CAMERA;
     }
     else if (_source == eImageSource.BOTH)
     {
         m_viewType = eMediaLibraryType.ALBUM_AND_CAMERA;
     }
 }
예제 #10
0
        public override void Reset()
        {
            // Setup properties
            source      = eImageSource.BOTH;
            scaleFactor = 1f;

            // Reset properties
            image = new FsmTexture {
                UseVariable = true
            };

            // Events properties
            selectedEvent  = null;
            cancelledEvent = null;
            failedEvent    = null;
        }
		public void PickImage(eImageSource _source)
		{
			if(_source == eImageSource.ALBUM)
			{
				m_viewType = eMediaLibraryType.ALBUM;
				m_scrollView.Reset();
			}
			else if(_source == eImageSource.CAMERA)
			{
				m_viewType = eMediaLibraryType.CAMERA;
			}
			else if(_source == eImageSource.BOTH)
			{
				m_viewType = eMediaLibraryType.ALBUM_AND_CAMERA;
			}
		}