public static void InitLadderEntry(CUIFormScript form, ref COMDT_RANKDETAIL data, bool isQualified) { Transform transform = form.transform.Find("MainPanel/BtnGroup/SingleStart"); Transform transform2 = form.transform.Find("MainPanel/BtnGroup/DoubleStart"); Transform transform3 = form.transform.Find("MainPanel/BtnGroup/FiveStart"); Button button = null; Button button2 = null; Button button3 = null; if (transform) { button = transform.GetComponent <Button>(); } if (transform2) { button2 = transform2.GetComponent <Button>(); } if (transform3) { button3 = transform3.GetComponent <Button>(); } GameObject widget = form.GetWidget(11); widget.CustomSetActive(isQualified); if (isQualified) { form.transform.Find("ReqPanel").gameObject.CustomSetActive(false); form.transform.Find("MainPanel/ImgLock").gameObject.CustomSetActive(false); form.transform.Find("MainPanel/RankCon").gameObject.CustomSetActive(true); GameObject gameObject = form.transform.Find("MainPanel/RankCon").gameObject; if (data != null) { if (button) { CUICommonSystem.SetButtonEnableWithShader(button, data.bState == 1, true); } if (button2) { CUICommonSystem.SetButtonEnableWithShader(button2, data.bState == 1, true); if (CLadderSystem.MultiLadderMaxTeamerNum() == 2) { CUICommonSystem.SetTextContent(transform2.FindChild("Text"), Singleton <CTextManager> .GetInstance().GetText("Ladder_EntryBtn_Text1")); } else { CUICommonSystem.SetTextContent(transform2.FindChild("Text"), Singleton <CTextManager> .GetInstance().GetText("Ladder_EntryBtn_Text2")); } } if (button3) { CUICommonSystem.SetButtonEnableWithShader(button3, data.bState == 1, true); } CLadderView.ShowRankDetail(gameObject, ref data, false); CUIParticleScript component = form.GetWidget(16).GetComponent <CUIParticleScript>(); component.LoadRes(CLadderView.GetGradeParticleBgResName()); } else { if (button) { CUICommonSystem.SetButtonEnableWithShader(button, false, true); } if (button2) { CUICommonSystem.SetButtonEnableWithShader(button2, false, true); } if (button3) { CUICommonSystem.SetButtonEnableWithShader(button3, false, true); } } } else { if (button) { CUICommonSystem.SetButtonEnableWithShader(button, false, true); } if (button2) { CUICommonSystem.SetButtonEnableWithShader(button2, false, true); } if (button3) { CUICommonSystem.SetButtonEnableWithShader(button3, false, true); } form.transform.Find("ReqPanel").gameObject.CustomSetActive(true); form.transform.Find("MainPanel/ImgLock").gameObject.CustomSetActive(true); form.transform.Find("MainPanel/RankCon").gameObject.CustomSetActive(false); Text component2 = form.transform.Find("ReqPanel/txtHeroNum").GetComponent <Text>(); Text component3 = form.transform.Find("ReqPanel/txtReqHeroNum").GetComponent <Text>(); int num = 0; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo != null) { num = masterRoleInfo.GetHaveHeroCount(false); } component2.set_text(string.Format("{0}/{1}", num, CLadderSystem.REQ_HERO_NUM)); component3.set_text(string.Format(Singleton <CTextManager> .GetInstance().GetText("Ladder_Req_Hero_Num"), CLadderSystem.REQ_HERO_NUM.ToString())); } CLadderView.ShowBraveScorePanel(form, data, isQualified); CLadderView.ShowRewardPanel(form, data); CLadderView.ShowBpModePanel(form); CLadderView.ShowSuperKingRankPanel(form); if (CSysDynamicBlock.bLobbyEntryBlocked) { form.transform.FindChild("MainPanel/pnlRankingBtn").gameObject.CustomSetActive(false); } }