예제 #1
0
    void AyncLoadObject()
    {
        if (enabled == false)
        {
            return;
        }
        NcTickTimerTool tickTimer = new NcTickTimerTool();

        for (int n = 0; n < m_nObjectCount; n++)
        {
            if (m_ObjectNodes[n].m_Object == null)
            {
                m_ObjectNodes[n].m_Object    = GetObjectNodeTexture(n);
                m_ObjectContents[n].image    = NgAsset.GetMiniThumbnail(m_ObjectNodes[n].m_Object);
                m_ObjectContents[n].tooltip  = FXMakerTooltip.Tooltip(GetTextureInfo(m_ObjectContents[n].image, true));
                m_ObjectContents[n].tooltip += FXMakerTooltip.AddPopupPreview(m_ObjectContents[n].image);
                m_nNotLoadCount--;
//              return;
                if (200 < tickTimer.GetStartedTickCount())
                {
                    return;
                }
            }
        }
    }
예제 #2
0
    void BuildContents()
    {
        if (enabled == false)
        {
            return;
        }

        m_nNotLoadCount = 0;
        for (int n = 0; n < m_nObjectCount; n++)
        {
            if (m_ObjectContents[n] == null)
            {
                m_ObjectContents[n]      = new GUIContent();
                m_ObjectContents[n].text = NgFile.GetFilename(m_ObjectNodes[n].m_AssetPath);
            }
            if (m_ObjectNodes[n].m_Object == null)
            {
                m_nNotLoadCount++;
            }
            else
            {
                m_ObjectContents[n].image    = NgAsset.GetMiniThumbnail(m_ObjectNodes[n].m_Object);
                m_ObjectContents[n].tooltip  = FXMakerTooltip.Tooltip(GetTextureInfo(m_ObjectContents[n].image, true));
                m_ObjectContents[n].tooltip += FXMakerTooltip.AddPopupPreview(m_ObjectContents[n].image);
            }
        }
    }