Пример #1
0
 public void Clear()
 {
     this.levelNodeList.Clear();
     this.boxNodeList.Clear();
     this.mapNode         = null;
     this.resetNumText    = null;
     this.animationScript = null;
     this.enemyNode       = null;
     this.enemy_node_0    = null;
     this.enemy_node_1    = null;
     this.enemy_node_2    = null;
     this.buffNode        = null;
     this.buff_node_0     = null;
     this.buff_node_1     = null;
     this.buff_node_2     = null;
     this.nameText        = null;
     this.levelText       = null;
     this.HttpImage       = null;
     this.coinText        = null;
     this.map_fromScript  = null;
 }
Пример #2
0
        public void Init()
        {
            this.IsPlaying = false;
            Singleton <EventRouter> .get_instance().AddEventHandler <KillDetailInfo>(EventID.AchievementRecorderEvent, new Action <KillDetailInfo>(this.OnAchievementEvent));

            this.m_formScript        = KillNotify.GetKillNotifyFormScript();
            this.node                = Utility.FindChild(this.m_formScript.gameObject, "KillNotify_New");
            this.animatorScript      = Utility.GetComponetInChild <CUIAnimatorScript>(this.node, "KillNotify_Sub");
            this.KillerImg           = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/KillerHead/KillerImg");
            this.VictimImg           = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/VictimHead/VictimImg");
            this.killerHead          = Utility.FindChild(this.node, "KillNotify_Sub/KillerHead");
            this.VictimHead          = Utility.FindChild(this.node, "KillNotify_Sub/VictimHead");
            this.assistList          = Utility.FindChild(this.node, "KillNotify_Sub/AssistHeadList");
            this.assistHeads[0]      = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_1");
            this.assistHeads[1]      = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_2");
            this.assistHeads[2]      = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_3");
            this.assistHeads[3]      = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_4");
            this.assistHeadFrames[0] = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_1/Frame");
            this.assistHeadFrames[1] = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_2/Frame");
            this.assistHeadFrames[2] = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_3/Frame");
            this.assistHeadFrames[3] = Utility.GetComponetInChild <Image>(this.node, "KillNotify_Sub/AssistHeadList/Pl_Assist/Pl_Head/Head_4/Frame");
            this.Hide();
            this.hideTimer = Singleton <CTimerManager> .GetInstance().AddTimer(KillNotify.HideTime, -1, new CTimer.OnTimeUpHandler(this.OnPlayEnd));

            Singleton <CTimerManager> .GetInstance().PauseTimer(this.hideTimer);

            this.play_delta_timer = Singleton <CTimerManager> .GetInstance().AddTimer(KillNotify.s_play_deltaTime, -1, new CTimer.OnTimeUpHandler(this.On_Play_DeltaEnd));

            Singleton <CTimerManager> .GetInstance().PauseTimer(this.play_delta_timer);

            SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

            if (curLvelContext != null && curLvelContext.IsFireHolePlayMode())
            {
                this.sub_sys = new FireHoleKillNotify();
            }
        }
Пример #3
0
        public void Clear()
        {
            Singleton <EventRouter> .get_instance().RemoveEventHandler <KillDetailInfo>(EventID.AchievementRecorderEvent, new Action <KillDetailInfo>(this.OnAchievementEvent));

            this.KillInfoList.Clear();
            this.animatorScript   = null;
            this.killerHead       = (this.VictimHead = null);
            this.KillerImg        = (this.VictimImg = null);
            this.assistHeads      = null;
            this.assistHeadFrames = null;
            Singleton <CTimerManager> .GetInstance().RemoveTimer(this.hideTimer);

            Singleton <CTimerManager> .GetInstance().RemoveTimer(this.play_delta_timer);

            this.IsPlaying = false;
            this.node      = null;
            if (this.sub_sys != null)
            {
                this.sub_sys.Clear();
                this.sub_sys = null;
            }
            this.m_formScript = null;
            Singleton <CUIManager> .get_instance().CloseForm(KillNotify.s_killNotifyFormPath);
        }
Пример #4
0
        public void Init(GameObject node, CUIFormScript formScript)
        {
            this.map_fromScript = formScript;
            node.CustomSetActive(true);
            this.buff_node    = Utility.FindChild(node, "buff");
            this.buff_cd_text = Utility.GetComponetInChild <Text>(this.buff_node, "Present/Text_Skill_1_CD");
            this.buff_node.CustomSetActive(false);
            Singleton <GameEventSys> .instance.AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_CaptainSwitch, new RefAction <DefaultGameEventParam>(this.OnCaptainSwitch));

            Transform transform = formScript.transform.Find("Flashing_RedHud");

            if (transform)
            {
                this.animationScript = transform.GetComponent <CUIAnimatorScript>();
            }
            this.bIn10   = false;
            this.bIn30   = false;
            this.bNormal = true;
            this.bossActorRoot.Release();
            this.boss_hp_Node = Utility.FindChild(node, "boss_blood");
            this.boss_hp_Node.CustomSetActive(false);
            if (this.boss_hp_timer != -1)
            {
                Singleton <CTimerManager> .instance.RemoveTimer(this.boss_hp_timer);
            }
            this.boss_hp_timer = -1;
            this.hpText        = Utility.GetComponetInChild <Text>(this.boss_hp_Node, "Bar/txt");
            this.nameText      = Utility.GetComponetInChild <Text>(this.boss_hp_Node, "Bar/name");
            this.bloodImage    = Utility.GetComponetInChild <Image>(this.boss_hp_Node, "Bar/Fore");
            this.blood_eft     = Utility.GetComponetInChild <Image>(this.boss_hp_Node, "Bar/Fore/Effect_BloodBar_Front");
            this.boss_icon     = Utility.GetComponetInChild <Image>(this.boss_hp_Node, "Bar/Icon");
            this.eliteActor.Release();
            this.eliteActorName = null;
            this.eliteBarTimer  = -1;
            Singleton <GameEventSys> .instance.AddEventHandler <HurtEventResultInfo>(GameEventDef.Event_ActorDamage, new RefAction <HurtEventResultInfo>(this.onActorDamage));
        }
Пример #5
0
 public void ClearBattleFloatText(CUIAnimatorScript animatorScript)
 {
 }
Пример #6
0
    private void AddHighlightInternal(GameObject baseGo, CUIFormScript inOriginalForm, bool cloneEvent, bool bShowFinger)
    {
        this.PreHighlight();
        if (baseGo != null)
        {
            NewbieGuideBaseScript.ms_originalGo.Add(baseGo);
        }
        NewbieGuideBaseScript.ms_originalForm = inOriginalForm;
        this.OpenGuideForm();
        if (NewbieGuideScriptControl.FormGuideMask == null)
        {
            NewbieGuideScriptControl.OpenGuideForm();
        }
        List <GameObject> .Enumerator enumerator = NewbieGuideBaseScript.ms_originalGo.GetEnumerator();
        int num = 0;

        while (enumerator.MoveNext())
        {
            GameObject current = enumerator.get_Current();
            if (!(current == null))
            {
                GameObject gameObject = Object.Instantiate(current) as GameObject;
                if (!(gameObject == null))
                {
                    RectTransform rectTransform = gameObject.transform as RectTransform;
                    rectTransform.SetParent(NewbieGuideScriptControl.FormGuideMask.transform);
                    rectTransform.SetSiblingIndex(1);
                    rectTransform.localScale = current.transform.localScale;
                    RectTransform rectTransform2 = current.transform as RectTransform;
                    rectTransform.pivot     = rectTransform2.pivot;
                    rectTransform.sizeDelta = rectTransform2.sizeDelta;
                    LayoutElement component = current.GetComponent <LayoutElement>();
                    if (component != null && rectTransform.sizeDelta == Vector2.zero)
                    {
                        rectTransform.sizeDelta = new Vector2(component.get_preferredWidth(), component.get_preferredHeight());
                    }
                    rectTransform.position = current.transform.position;
                    Vector2 screenPoint   = CUIUtility.WorldToScreenPoint(inOriginalForm.GetCamera(), current.transform.position);
                    Vector3 worldPosition = CUIUtility.ScreenToWorldPoint(NewbieGuideScriptControl.FormGuideMask.GetCamera(), screenPoint, rectTransform.position.z);
                    NewbieGuideScriptControl.FormGuideMask.InitializeWidgetPosition(gameObject, worldPosition);
                    gameObject.CustomSetActive(false);
                    if (cloneEvent)
                    {
                        CUIEventScript component2 = current.GetComponent <CUIEventScript>();
                        CUIEventScript component3 = gameObject.GetComponent <CUIEventScript>();
                        if (component2 && component3)
                        {
                            component3.m_onDownEventParams      = component2.m_onDownEventParams;
                            component3.m_onUpEventParams        = component2.m_onUpEventParams;
                            component3.m_onClickEventParams     = component2.m_onClickEventParams;
                            component3.m_onHoldStartEventParams = component2.m_onHoldStartEventParams;
                            component3.m_onHoldEventParams      = component2.m_onHoldEventParams;
                            component3.m_onHoldEndEventParams   = component2.m_onHoldEndEventParams;
                            component3.m_onDragStartEventParams = component2.m_onDragStartEventParams;
                            component3.m_onDragEventParams      = component2.m_onDragEventParams;
                            component3.m_onDragEndEventParams   = component2.m_onDragEndEventParams;
                            component3.m_onDropEventParams      = component2.m_onDropEventParams;
                            component3.m_closeFormWhenClicked   = component2.m_closeFormWhenClicked;
                            component3.m_belongedFormScript     = component2.m_belongedFormScript;
                            component3.m_belongedListScript     = component2.m_belongedListScript;
                            component3.m_indexInlist            = component2.m_indexInlist;
                        }
                        CUIMiniEventScript component4 = current.GetComponent <CUIMiniEventScript>();
                        CUIMiniEventScript component5 = gameObject.GetComponent <CUIMiniEventScript>();
                        if (component4 && component5)
                        {
                            component5.m_onDownEventParams    = component4.m_onDownEventParams;
                            component5.m_onUpEventParams      = component4.m_onUpEventParams;
                            component5.m_onClickEventParams   = component4.m_onClickEventParams;
                            component5.m_closeFormWhenClicked = component4.m_closeFormWhenClicked;
                            component5.m_belongedFormScript   = component4.m_belongedFormScript;
                            component5.m_belongedListScript   = component4.m_belongedListScript;
                            component5.m_indexInlist          = component4.m_indexInlist;
                        }
                    }
                    else
                    {
                        CUIEventScript component6 = gameObject.GetComponent <CUIEventScript>();
                        if (component6)
                        {
                            component6.enabled = false;
                        }
                        CUIMiniEventScript component7 = gameObject.GetComponent <CUIMiniEventScript>();
                        if (component7)
                        {
                            component7.enabled = false;
                        }
                    }
                    gameObject.CustomSetActive(true);
                    CUIAnimatorScript component8 = current.GetComponent <CUIAnimatorScript>();
                    if (component8 != null)
                    {
                        CUICommonSystem.PlayAnimator(gameObject, component8.m_currentAnimatorStateName);
                    }
                    NewbieGuideBaseScript.ms_highlitGo.Add(gameObject);
                    if (bShowFinger)
                    {
                        GameObject gameObject2 = Singleton <CResourceManager> .GetInstance().GetResource("UGUI/Form/System/Dialog/WeakGuideHighlighter.prefab", typeof(GameObject), enResourceType.UIPrefab, false, false).m_content as GameObject;

                        if (gameObject2 != null)
                        {
                            GameObject gameObject3 = Object.Instantiate(gameObject2) as GameObject;
                            if (gameObject3 != null)
                            {
                                gameObject3.transform.SetParent(gameObject.transform);
                                Transform transform = gameObject3.transform;
                                switch (this.currentConf.wFlipType)
                                {
                                case 0:
                                    transform.localScale = NewbieGuideBaseScript.s_FlipNone;
                                    break;

                                case 1:
                                    transform.localScale = NewbieGuideBaseScript.s_FlipX;
                                    break;

                                case 2:
                                    transform.localScale = NewbieGuideBaseScript.s_FlipY;
                                    break;

                                case 3:
                                    transform.localScale = NewbieGuideBaseScript.s_FlipXY;
                                    break;
                                }
                                gameObject3.transform.position = gameObject.transform.position;
                                (gameObject3.transform as RectTransform).anchoredPosition = new Vector2((float)this.currentConf.iOffsetHighLightX, (float)this.currentConf.iOffsetHighLightY);
                                if (!this.DoesShowArrow())
                                {
                                    gameObject3.transform.FindChild("Panel/ImageFinger").gameObject.CustomSetActive(false);
                                }
                                NewbieGuideBaseScript.ms_highlighter.Add(gameObject3);
                            }
                        }
                    }
                    if (num == 0 && this.currentConf.wSpecialTip != 0)
                    {
                        NewbieGuideSpecialTipConf specialTipConfig = Singleton <NewbieGuideDataManager> .GetInstance().GetSpecialTipConfig((uint)this.currentConf.wSpecialTip);

                        if (specialTipConfig != null && specialTipConfig.bGuideTextPos > 0)
                        {
                            GameObject gameObject4 = NewbieGuideBaseScript.InstantiateGuideText(specialTipConfig, gameObject, NewbieGuideScriptControl.FormGuideMask, inOriginalForm);
                            if (gameObject4 != null)
                            {
                                NewbieGuideBaseScript.ms_guideTextList.Add(gameObject4);
                                gameObject4.CustomSetActive(false);
                            }
                        }
                    }
                    num++;
                }
            }
        }
    }
Пример #7
0
    private void AddHighlightInternal(GameObject baseGo, CUIFormScript inOriginalForm, bool cloneEvent, params GameObject[] addGo)
    {
        this.PreHighlight();
        if (baseGo != null)
        {
            ms_originalGo.Add(baseGo);
        }
        if (addGo != null)
        {
            ms_originalGo.AddRange(addGo);
        }
        ms_originalForm = inOriginalForm;
        this.OpenGuideForm();
        if (NewbieGuideScriptControl.FormGuideMask == null)
        {
            NewbieGuideScriptControl.OpenGuideForm();
        }
        List <GameObject> .Enumerator enumerator = ms_originalGo.GetEnumerator();
        int num = 0;

        while (enumerator.MoveNext())
        {
            GameObject current = enumerator.Current;
            if (current != null)
            {
                GameObject widget = UnityEngine.Object.Instantiate(current) as GameObject;
                if (widget != null)
                {
                    RectTransform transform = widget.transform as RectTransform;
                    transform.SetParent(NewbieGuideScriptControl.FormGuideMask.transform);
                    transform.SetSiblingIndex(1);
                    transform.localScale = current.transform.localScale;
                    RectTransform transform2 = current.transform as RectTransform;
                    transform.pivot     = transform2.pivot;
                    transform.sizeDelta = transform2.sizeDelta;
                    LayoutElement component = current.GetComponent <LayoutElement>();
                    if ((component != null) && (transform.sizeDelta == Vector2.zero))
                    {
                        transform.sizeDelta = new Vector2(component.preferredWidth, component.preferredHeight);
                    }
                    transform.position = current.transform.position;
                    Vector2 screenPoint   = CUIUtility.WorldToScreenPoint(inOriginalForm.GetCamera(), current.transform.position);
                    Vector3 worldPosition = CUIUtility.ScreenToWorldPoint(NewbieGuideScriptControl.FormGuideMask.GetCamera(), screenPoint, transform.position.z);
                    NewbieGuideScriptControl.FormGuideMask.InitializeWidgetPosition(widget, worldPosition);
                    widget.CustomSetActive(false);
                    if (cloneEvent)
                    {
                        CUIEventScript script  = current.GetComponent <CUIEventScript>();
                        CUIEventScript script2 = widget.GetComponent <CUIEventScript>();
                        if ((script != null) && (script2 != null))
                        {
                            script2.m_onDownEventParams      = script.m_onDownEventParams;
                            script2.m_onUpEventParams        = script.m_onUpEventParams;
                            script2.m_onClickEventParams     = script.m_onClickEventParams;
                            script2.m_onHoldStartEventParams = script.m_onHoldStartEventParams;
                            script2.m_onHoldEventParams      = script.m_onHoldEventParams;
                            script2.m_onHoldEndEventParams   = script.m_onHoldEndEventParams;
                            script2.m_onDragStartEventParams = script.m_onDragStartEventParams;
                            script2.m_onDragEventParams      = script.m_onDragEventParams;
                            script2.m_onDragEndEventParams   = script.m_onDragEndEventParams;
                            script2.m_onDropEventParams      = script.m_onDropEventParams;
                            script2.m_closeFormWhenClicked   = script.m_closeFormWhenClicked;
                            script2.m_belongedFormScript     = script.m_belongedFormScript;
                            script2.m_belongedListScript     = script.m_belongedListScript;
                            script2.m_indexInlist            = script.m_indexInlist;
                        }
                        CUIMiniEventScript script3 = current.GetComponent <CUIMiniEventScript>();
                        CUIMiniEventScript script4 = widget.GetComponent <CUIMiniEventScript>();
                        if ((script3 != null) && (script4 != null))
                        {
                            script4.m_onDownEventParams    = script3.m_onDownEventParams;
                            script4.m_onUpEventParams      = script3.m_onUpEventParams;
                            script4.m_onClickEventParams   = script3.m_onClickEventParams;
                            script4.m_closeFormWhenClicked = script3.m_closeFormWhenClicked;
                            script4.m_belongedFormScript   = script3.m_belongedFormScript;
                            script4.m_belongedListScript   = script3.m_belongedListScript;
                            script4.m_indexInlist          = script3.m_indexInlist;
                        }
                    }
                    else
                    {
                        CUIEventScript script5 = widget.GetComponent <CUIEventScript>();
                        if (script5 != null)
                        {
                            script5.enabled = false;
                        }
                        CUIMiniEventScript script6 = widget.GetComponent <CUIMiniEventScript>();
                        if (script6 != null)
                        {
                            script6.enabled = false;
                        }
                    }
                    widget.CustomSetActive(true);
                    CUIAnimatorScript script7 = current.GetComponent <CUIAnimatorScript>();
                    if (script7 != null)
                    {
                        CUICommonSystem.PlayAnimator(widget, script7.m_currentAnimatorStateName);
                    }
                    ms_highlitGo.Add(widget);
                    GameObject content = Singleton <CResourceManager> .GetInstance().GetResource("UGUI/Form/System/Dialog/WeakGuideHighlighter.prefab", typeof(GameObject), enResourceType.UIPrefab, false, false).m_content as GameObject;

                    if (content != null)
                    {
                        GameObject item = UnityEngine.Object.Instantiate(content) as GameObject;
                        if (item != null)
                        {
                            item.transform.SetParent(widget.transform);
                            Transform transform3 = item.transform;
                            switch (this.currentConf.wFlipType)
                            {
                            case 0:
                                transform3.localScale = s_FlipNone;
                                break;

                            case 1:
                                transform3.localScale = s_FlipX;
                                break;

                            case 2:
                                transform3.localScale = s_FlipY;
                                break;

                            case 3:
                                transform3.localScale = s_FlipXY;
                                break;
                            }
                            item.transform.position = widget.transform.position;
                            (item.transform as RectTransform).anchoredPosition = new Vector2((float)this.currentConf.iOffsetHighLightX, (float)this.currentConf.iOffsetHighLightY);
                            if (!this.DoesShowArrow())
                            {
                                item.transform.FindChild("Panel/ImageFinger").gameObject.CustomSetActive(false);
                            }
                            ms_highlighter.Add(item);
                        }
                    }
                    if ((num == 0) && (this.currentConf.wSpecialTip != 0))
                    {
                        NewbieGuideSpecialTipConf specialTipConfig = Singleton <NewbieGuideDataManager> .GetInstance().GetSpecialTipConfig(this.currentConf.wSpecialTip);

                        if ((specialTipConfig != null) && (specialTipConfig.bGuideTextPos > 0))
                        {
                            GameObject obj6 = InstantiateGuideText(specialTipConfig, widget, NewbieGuideScriptControl.FormGuideMask, inOriginalForm);
                            if (obj6 != null)
                            {
                                ms_guideTextList.Add(obj6);
                                obj6.CustomSetActive(false);
                            }
                        }
                    }
                    num++;
                }
            }
        }
    }
Пример #8
0
 private void OnToggleHide(CUIEvent uiEvent)
 {
     if (this._form && this._form.gameObject)
     {
         this._isViewHide = !this._isViewHide;
         this.SwitchCameraZoom();
         if (!WatchForm.IsNeedShowCampMidInterface())
         {
             this._hideBtn.CustomSetActive(!this._isViewHide);
             this._showBtn.CustomSetActive(this._isViewHide);
             this.DisableAnimator(Utility.FindChild(this._camp1List, "EquipInfoList"));
             this._camp1List.CustomSetActive(!this._isViewHide);
             this.DisableAnimator(Utility.FindChild(this._camp2List, "EquipInfoList"));
             this._camp2List.CustomSetActive(!this._isViewHide);
             if (!WatchForm.IsNeedShowCampMidInterface())
             {
                 this.DisableAnimator(this._heroInfoHud.Root);
                 this._heroInfoHud.Root.CustomSetActive(!this._isViewHide);
             }
             if (this._replayControl != null && !WatchForm.IsNeedShowCampMidInterface())
             {
                 this.DisableAnimator(this._replayControl.Root);
                 this._replayControl.Root.CustomSetActive(!this._isViewHide);
             }
         }
         else if (!this._isBottomInAnimDoing)
         {
             CUIAnimatorScript componetInChild = Utility.GetComponetInChild <CUIAnimatorScript>(this._form.gameObject, "CampInfoList_1");
             if (componetInChild)
             {
                 bool flag = this._isCampFold_1 != this._isViewHide;
                 this._isCampFold_1 = this._isViewHide;
                 if (flag)
                 {
                     componetInChild.PlayAnimator(this._isCampFold_1 ? "Hide_Left_1" : "Hide_Left_2");
                 }
             }
             CUIAnimatorScript componetInChild2 = Utility.GetComponetInChild <CUIAnimatorScript>(this._form.gameObject, "CampInfoList_2");
             if (componetInChild2)
             {
                 bool flag2 = this._isCampFold_2 != this._isViewHide;
                 this._isCampFold_2 = this._isViewHide;
                 if (flag2)
                 {
                     componetInChild2.PlayAnimator(this._isCampFold_2 ? "Hide_Right_1" : "Hide_Right_2");
                 }
             }
             CUIAnimatorScript componetInChild3 = Utility.GetComponetInChild <CUIAnimatorScript>(this._form.gameObject, "DetailControl");
             if (componetInChild3)
             {
                 bool flag3 = this._isBottomFold != this._isViewHide;
                 this._isBottomFold = this._isViewHide;
                 if (flag3)
                 {
                     this._isBottomInAnimDoing = true;
                     if (this._isBottomFold)
                     {
                         componetInChild3.PlayAnimator(this._isBottomLong ? "UpAndDown_1_1" : "UpAndDown_2_1");
                     }
                     else
                     {
                         componetInChild3.PlayAnimator(this._isBottomLong ? "UpAndDown_1_2" : "UpAndDown_2_2");
                     }
                 }
             }
         }
         this.m_targetScaleVal = (this._isViewHide ? 1.6f : 1.2f);
     }
 }
Пример #9
0
        private void InitForm(CUIFormScript form)
        {
            this.m_FormObj        = form.gameObject;
            this.m_PlayerName     = this.m_FormObj.transform.Find("PlayerHead/NameGroup/PlayerName").GetComponent <Text>();
            this.m_PvpLevel       = this.m_FormObj.transform.Find("PlayerHead/pvpLevel").GetComponent <Text>();
            this.m_PlayerExp      = this.m_FormObj.transform.Find("PlayerHead/PlayerExp").GetComponent <Text>();
            this.m_PlayerVipLevel = this.m_FormObj.transform.Find("PlayerHead/imgVipBg/txtVipLevel").GetComponent <Text>();
            this.m_PvpExpImg      = this.m_FormObj.transform.Find("PlayerHead/pvpExp/expBg/imgExp").GetComponent <Image>();
            this.m_PvpExpTxt      = this.m_FormObj.transform.Find("PlayerHead/pvpExp/expBg/txtExp").GetComponent <Text>();
            this.animatorScript   = this.m_FormObj.GetComponent <CUIAnimatorScript>();
            this.hero_btn         = this.m_FormObj.transform.Find("LobbyBottom/SysEntry/HeroBtn").gameObject;
            this.symbol_btn       = this.m_FormObj.transform.Find("LobbyBottom/SysEntry/SymbolBtn").gameObject;
            this.bag_btn          = this.m_FormObj.transform.Find("LobbyBottom/SysEntry/BagBtn").gameObject;
            this.task_btn         = this.m_FormObj.transform.Find("LobbyBottom/Newbie").gameObject;
            this.social_btn       = this.m_FormObj.transform.Find("LobbyBottom/SysEntry/SocialBtn").gameObject;
            this.addSkill_btn     = this.m_FormObj.transform.Find("LobbyBottom/SysEntry/AddedSkillBtn").gameObject;
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_HERO);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SYMBOL);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_BAG);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_TASK);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_UNION);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_FRIEND);
            this.Check_Enable(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ADDEDSKILL);
            if (CSysDynamicBlock.bLobbyEntryBlocked)
            {
                Transform transform = this.m_FormObj.transform.Find("Popup");
                if (transform != null)
                {
                    transform.gameObject.CustomSetActive(false);
                }
                Transform transform2 = this.m_FormObj.transform.Find("BtnCon/CompetitionBtn");
                if (transform2 != null)
                {
                    transform2.gameObject.CustomSetActive(false);
                }
                if (this.task_btn != null)
                {
                    this.task_btn.CustomSetActive(false);
                }
                Transform transform3 = this.m_FormObj.transform.Find("DiamondPayBtn");
                if (transform3 != null)
                {
                    transform3.gameObject.CustomSetActive(false);
                }
            }
            if (CSysDynamicBlock.bUnfinishBlock)
            {
                Transform transform4 = this.m_FormObj.transform.Find("BtnCon/WebBtn");
                if (transform4 != null)
                {
                    transform4.gameObject.CustomSetActive(false);
                }
            }
            Button component = this.m_FormObj.transform.Find("BtnCon/LadderBtn").GetComponent <Button>();

            if (component != null)
            {
                component.interactable = Singleton <CLadderSystem> .GetInstance().IsLevelQualified();

                Transform transform5 = component.transform.Find("Lock");
                if (transform5 != null)
                {
                    transform5.gameObject.CustomSetActive(!component.interactable);
                }
            }
            Button button2 = this.m_FormObj.transform.FindChild("BtnCon/UnionBtn").GetComponent <Button>();

            if (button2 != null)
            {
                bool bActive = Singleton <CUnionBattleEntrySystem> .GetInstance().IsUnionFuncLocked();

                button2.interactable = !bActive;
                button2.transform.FindChild("Lock").gameObject.CustomSetActive(bActive);
            }
            GameObject gameObject = this.m_FormObj.transform.Find("PlayerHead/pvpExp").gameObject;

            if (gameObject != null)
            {
                CUIEventScript script = gameObject.GetComponent <CUIEventScript>();
                if (script == null)
                {
                    script = gameObject.AddComponent <CUIEventScript>();
                    script.Initialize(form);
                }
                CUseable        useable     = CUseableManager.CreateVirtualUseable(enVirtualItemType.enExp, 0);
                stUIEventParams eventParams = new stUIEventParams {
                    iconUseable = useable,
                    tag         = 3
                };
                script.SetUIEvent(enUIEventType.Down, enUIEventID.Tips_ItemInfoOpen, eventParams);
                script.SetUIEvent(enUIEventType.HoldEnd, enUIEventID.Tips_ItemInfoClose, eventParams);
                script.SetUIEvent(enUIEventType.Click, enUIEventID.Tips_ItemInfoClose, eventParams);
                script.SetUIEvent(enUIEventType.DragEnd, enUIEventID.Tips_ItemInfoClose, eventParams);
            }
            RefreshDianQuanPayButton(false);
            Transform transform6 = this.m_FormObj.transform.Find("BtnCon/PvpBtn");
            Transform transform7 = this.m_FormObj.transform.Find("BtnCon/PveBtn");

            if (transform6 != null)
            {
                Singleton <CMallSystem> .instance.LoadUIPrefab(Pvp_BtnRes_PATH, "PvpBtnDynamic", transform6.gameObject, form);
            }
            if (transform7 != null)
            {
                Singleton <CMallSystem> .instance.LoadUIPrefab(Pve_BtnRes_PATH, "PveBtnDynamic", transform7.gameObject, form);
            }
        }