Esempio n. 1
0
    private void ReleaseUpgrade(bool depthClear = true)
    {
        if (null != m_promoteGrow)
        {
            m_promoteGrow.Release(depthClear);
            if (depthClear)
            {
                UIManager.OnObjsRelease(m_promoteGrow.CacheTransform, (uint)GridID.Uiitemgrowshowgrid);
                m_promoteGrow = null;
            }
        }

        if (null != m_lst_expGrids)
        {
            if (depthClear)
            {
                for (int i = 0, max = m_lst_expGrids.Count; i < max; i++)
                {
                    m_lst_expGrids[i].Release(depthClear);
                }
                m_lst_expGrids.Clear();
                m_lst_expGrids = null;
            }
        }
    }
Esempio n. 2
0
    private void ReleaseBlend(bool depthClear = true)
    {
        uint resID = (uint)GridID.Uiitemgrowshowgrid;

        if (null != m_blendCurGrow)
        {
            m_blendCurGrow.Release(depthClear);
            if (depthClear)
            {
                UIManager.OnObjsRelease(m_blendCurGrow.CacheTransform, resID);
            }
        }

        if (null != m_blendNextGrow)
        {
            m_blendNextGrow.Release(depthClear);
            if (depthClear)
            {
                UIManager.OnObjsRelease(m_blendNextGrow.CacheTransform, resID);
            }
        }

        if (depthClear)
        {
            resID = (uint)GridID.Uimuhonpropertygrid;
            UIMuhonPropertyGrid pg = null;
            for (EquipDefine.AttrIndex i = EquipDefine.AttrIndex.First;
                 i <= EquipDefine.AttrIndex.Fifth; i++)
            {
                if (null != m_dic_currentAttrs)
                {
                    if (m_dic_currentAttrs.TryGetValue(i, out pg))
                    {
                        UIManager.OnObjsRelease(pg.CacheTransform, resID);
                    }
                }

                if (null != m_dic_blendAtrs)
                {
                    if (m_dic_blendAtrs.TryGetValue(i, out pg))
                    {
                        UIManager.OnObjsRelease(pg.CacheTransform, resID);
                    }
                }
            }

            if (null != m_dic_currentAttrs)
            {
                m_dic_currentAttrs.Clear();
            }

            if (null != m_dic_blendAtrs)
            {
                m_dic_blendAtrs.Clear();
            }
        }
    }
Esempio n. 3
0
    private void ReleaseEvolve(bool depthClear = true)
    {
        uint resID = 0;

        if (null != m_evolveCurGrow)
        {
            resID = (uint)GridID.Uiitemshowgrid;
            m_evolveCurGrow.Release(depthClear);
            if (depthClear)
            {
                UIManager.OnObjsRelease(m_evolveCurGrow.CacheTransform, resID);
            }
        }

        if (null != m_evolveMaxGrow)
        {
            resID = (uint)GridID.Uiitemgrowshowgrid;
            m_evolveMaxGrow.Release(depthClear);
            if (depthClear)
            {
                UIManager.OnObjsRelease(m_evolveMaxGrow.CacheTransform, resID);
            }
        }

        if (depthClear && null != m_dicMuhonDeputy)
        {
            UIItemShowGrid tempGrid = null;
            resID = (uint)GridID.Uiitemshowgrid;
            for (EquipDefine.AttrIndex i = EquipDefine.AttrIndex.None + 1; i < EquipDefine.AttrIndex.Max; i++)
            {
                if (m_dicMuhonDeputy.TryGetValue(i, out tempGrid))
                {
                    tempGrid.Release(true);
                    UIManager.OnObjsRelease(tempGrid.CacheTransform, resID);
                }
            }
            m_dicMuhonDeputy.Clear();
        }

        ResetEvolveAnim();
    }