Beispiel #1
0
    public void SetImage(Texture2D texture, string imageIdentifier, int textureIndex, bool animateOnSet)
    {
        m_imageSphereController.SetTextureInUse(m_nextTextureIndex, false); // Textures that were going to be used can be thrown away
        m_imageSphereController.SetTextureInUse(textureIndex, true);
        m_nextTextureIndex = textureIndex;

        m_imageIdentifier    = imageIdentifier;
        m_imageSphereTexture = texture;

        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: Finished Loading Image from Texture2D, " +
                      " AnimateOnSet = " + animateOnSet +
                      " , ImageIdentifier = " + imageIdentifier +
                      " , PluginTextureIndex = " + textureIndex +
                      " , Texture size = " + m_imageSphereTexture.width + " x " + m_imageSphereTexture.height);
        }

        m_coroutineQueue.Clear();
        if (!animateOnSet)
        {
            UpdateTextureAndID();
        }
        else
        {
            m_coroutineQueue.EnqueueAction(AnimateSetTexture());
        }
    }
Beispiel #2
0
 public void InvalidateWork() // This function is called in order to stop any ongoing work
 {
     m_posts.InvalidateWork();
     if (m_coroutineQueue != null)
     {
         m_coroutineQueue.Clear();
     }
 }
Beispiel #3
0
 public void InvalidateWork() // This function is called in order to stop any ongoing work
 {
     m_currGalleryImageIndex = -1;
     if (m_coroutineQueue != null)
     {
         m_coroutineQueue.Clear();
     }
 }
Beispiel #4
0
 public void InvalidateWork() // This function is called in order to stop any ongoing work
 {
     m_imageLoader.InvalidateLoading();
     m_currPostIndex = -1;
     if (m_coroutineQueue != null)
     {
         m_coroutineQueue.Clear();
     }
 }
Beispiel #5
0
    public void InvalidateWork() // This function is called in order to stop any ongoing work
    {
        //m_currPostIndex = -1;
        if (m_coroutineQueue != null)
        {
            m_coroutineQueue.Clear();
        }

        ResetSearch();
    }
Beispiel #6
0
    public void NextCommentResults()
    {
        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: NextUserResults() called");
        }

        int numResultsToDisplay = GetNumDisplayItems();
        int numCommentResults   = m_commentResults.Count;

        m_currResultIndex = Mathf.Clamp(m_currResultIndex + numResultsToDisplay, 0, numCommentResults);
        m_coroutineQueue.Clear(); // Ensures we don't repeat operations

        if (m_nextPageOfResults != null)
        {   // By calling this every time a user presses the next button, we ensure he can never miss out on posts and don't overload the API
            m_coroutineQueue.EnqueueAction(StoreCommentResultsFromNextPage());
        }

        DisplayCommentResultsOnItems();
    }
Beispiel #7
0
 public void LoginSelected()
 {
     m_coroutineQueue.Clear();
     m_coroutineQueue.EnqueueAction(LoginSelectedInternal());
 }
Beispiel #8
0
 public void InvalidateLoading()
 {
     m_coroutineQueue.Clear();
 }
Beispiel #9
0
 public void SetSkyboxDimOn(bool visible)
 {
     m_coroutineQueue.Clear();
     m_coroutineQueue.EnqueueAction(SetSkyboxDimOnInternal(visible));
 }