Example #1
0
    static void OnOpenWindow(bool bSuccess, object info)
    {
        if (bSuccess == false)
        {
            return;
        }
        //PlayerGuideInfo curInfo = info as PlayerGuideInfo;
        if (null != m_Instance && m_CurPlayerGuideInfo.IsValid() /* && null != curInfo*/)
        {
            m_Instance.InitWindow(m_CurPlayerGuideInfo._UIObj, m_CurPlayerGuideInfo._offsetX, m_CurPlayerGuideInfo._offsetY);
            // 手
            m_Instance.UpdateHand(m_CurPlayerGuideInfo._nWidth, m_CurPlayerGuideInfo._nHeight, m_CurPlayerGuideInfo._nMotionType);
            // 新手框、蒙版
            m_Instance.UpdateBoxMask(m_CurPlayerGuideInfo._UIObj, m_CurPlayerGuideInfo._nWidth, m_CurPlayerGuideInfo._nHeight,
                                     m_CurPlayerGuideInfo._bIsBoxEnable, m_CurPlayerGuideInfo._bIsMaskEnable, m_CurPlayerGuideInfo._bIsFocusAnim, m_CurPlayerGuideInfo._GuideSpriteType,
                                     m_CurPlayerGuideInfo._onClickBlackCallback);
            // 更新文字提示的位置
            m_Instance.UpdateRemindLabelPos(m_CurPlayerGuideInfo._strText, m_CurPlayerGuideInfo._TextLocation, m_CurPlayerGuideInfo._GuideSpriteType);
            // FTE Sound
            m_Instance.PlayFTESound(m_CurPlayerGuideInfo._UIObj.name);
            // 有关时间
            m_Instance.UpdateTimeLimit(m_CurPlayerGuideInfo._bIsForever);

            if (m_CurPlayerGuideInfo._deleOnShowGuide != null)
            {
                m_CurPlayerGuideInfo._deleOnShowGuide();
            }
        }

        m_CurPlayerGuideInfo.CleanUp();
    }