Beispiel #1
0
 // Token: 0x060003BB RID: 955 RVA: 0x00016838 File Offset: 0x00014C38
 public void ClosePanel()
 {
     this.webViewObject.SetVisibility(false);
     base.gameObject.SetActive(false);
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
     WebViewPanel.Back back = this.backMode;
     if (back != WebViewPanel.Back.OtherPanel)
     {
         if (back != WebViewPanel.Back.IAPPanel)
         {
             if (back != WebViewPanel.Back.Tutorial)
             {
             }
         }
         else
         {
             this.IAPUI.SetActive(true);
             this.IAPUI.GetComponent <IAPPanel>().BackFunc();
         }
     }
     else
     {
         this.OtherUI.GetComponent <OtherPanel>().MainScrollView.SetActive(true);
         this.OtherUI.GetComponent <OtherPanel>().BackFunc();
     }
 }
Beispiel #2
0
    // Token: 0x060003BA RID: 954 RVA: 0x00016728 File Offset: 0x00014B28
    public bool OpenPanel(string _url, WebViewPanel.Back _backMode)
    {
        this.backMode = _backMode;
        if (Application.internetReachability == NetworkReachability.NotReachable)
        {
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("インターネットに接続できませんでした\n電波状況や端末オプションを\nご確認のうえ、再度お試しください");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
            return(false);
        }
        base.gameObject.SetActive(true);
        this.webViewObject.Init(null, false, string.Empty, null, null, false);
        this.webViewObject.LoadURL(_url);
        this.webViewObject.SetVisibility(true);
        float num;

        if (Screen.height / 3 > Screen.width / 2)
        {
            num = (float)Screen.width / 640f;
        }
        else
        {
            num = (float)Screen.height / 960f;
        }
        this.webViewObject.SetMargins(0, (int)(num * 70f), 0, 0);
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
        this.BackFunc();
        return(true);
    }