Beispiel #1
0
    // Token: 0x060018D8 RID: 6360 RVA: 0x00299C40 File Offset: 0x00297E40
    public void OnButtonClick(UIButton sender)
    {
        int btnID = sender.m_BtnID1;

        if (btnID != 0)
        {
            if (btnID != 1)
            {
                if (btnID == 999)
                {
                    this.OnBackButtonClick();
                }
            }
            else if (this.m_MaintanceType == GameMaintanceType.IsMaintain)
            {
                if (IGGGameSDK.Instance.GameMaintanceDataReady)
                {
                    IGGGameSDK.Instance.GameMaintanceDataReady = false;
                    IGGSDKPlugin.LoadGameConfig();
                }
            }
            else if (this.m_MaintanceType == GameMaintanceType.HaveLoginInfo)
            {
                IGGGameSDK.Instance.CanLogIn();
            }
            else if (this.m_MaintanceType == GameMaintanceType.ForciblyUpdate)
            {
                if (UpdateController.CheckNewApk(IGGGameSDK.Instance.MaintanceData.URL))
                {
                    GUIManager.Instance.CloseMenu(EGUIWindow.UI_Announcement);
                }
            }
            else if (this.m_MaintanceType == GameMaintanceType.ProposalUpdate && UpdateController.CheckNewApk(IGGGameSDK.Instance.MaintanceData.URL))
            {
                GUIManager.Instance.CloseMenu(EGUIWindow.UI_Announcement);
            }
        }
        else if (this.m_MaintanceType == GameMaintanceType.IsMaintain)
        {
            if (DataManager.Instance.UserLanguage == GameLanguage.GL_Chs)
            {
                IGGSDKPlugin.OpenFbByUrl(GameConstants.Url176);
            }
            else
            {
                this.OpneURLByLanguage(GameConstants.GlobalEditionFUrl);
            }
        }
        else if (this.m_MaintanceType == GameMaintanceType.ForciblyUpdate)
        {
            this.OnBackButtonClick();
        }
        else if (this.m_MaintanceType == GameMaintanceType.ProposalUpdate)
        {
            if (this.SDK.IsGameMaintanceType(GameMaintanceType.IsMaintain))
            {
                this.UpdateUI(1, 0);
            }
            else if (this.SDK.IsGameMaintanceType(GameMaintanceType.HaveLoginInfo))
            {
                this.UpdateUI(2, 0);
            }
            else
            {
                this.SDK.CanLogIn();
            }
        }
    }