| | |
| | | m_ServerSelect.SetListener(OpenServerListWin);
|
| | | m_SwitchAccount.SetListener(SwitchAccount);
|
| | | m_Notice.SetListener(VeiwNotice);
|
| | | m_UserHelp.SetListener(OpenUserHelp);
|
| | | if (m_UserHelp)
|
| | | {
|
| | | m_UserHelp.SetListener(OpenUserHelp);
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | m_BanHao.text = string.IsNullOrEmpty(VersionConfig.Get().banHao) ? string.Empty : VersionConfig.Get().banHao;
|
| | |
|
| | | var sprite = Resources.Load<Sprite>("UI/Sprites/TB_DL_Logo");
|
| | | var sprite = BuiltInLoader.LoadSprite("TB_DL_Logo");
|
| | | m_Logo.overrideSprite = sprite;
|
| | | m_Logo.SetNativeSize();
|
| | | m_Logo.rectTransform.anchoredPosition = VersionConfig.Get().logoPosition;
|
| | |
| | | m_AlphaTween.SetStartState();
|
| | | m_SwitchAccount.gameObject.SetActive(VersionConfig.Get().versionAuthority == VersionAuthority.Release && !VersionConfig.Get().isBanShu);
|
| | |
|
| | | m_UserHelp.gameObject.SetActive(Config.Instance.ContainKey<ContactConfig>(VersionConfig.Get().appId));
|
| | | if (m_UserHelp)
|
| | | {
|
| | | var appId = VersionConfig.Get().appId;
|
| | | var branch = VersionConfig.Get().branch;
|
| | | m_UserHelp.gameObject.SetActive(ContactConfig.GetConfig(appId, branch) != null);
|
| | | }
|
| | |
|
| | | m_WaitServerList.gameObject.SetActive(!ServerListCenter.Instance.serverListGot);
|
| | | m_ContainerEnterGame.gameObject.SetActive(ServerListCenter.Instance.serverListGot);
|