Exemple #1
0
 // Token: 0x060015CB RID: 5579 RVA: 0x00251830 File Offset: 0x0024FA30
 private void OpenH5()
 {
     H5SDKPlugin.StartH5ByWebView(IGGGameSDK.Instance.m_IGGID, DataManager.Instance.UserLanguage.ToString(), "1", DataManager.Instance.RoleAttr.Name.ToString());
 }
Exemple #2
0
 // Token: 0x06000D9C RID: 3484 RVA: 0x0015CBFC File Offset: 0x0015ADFC
 public void OnButtonClick(UIButton sender)
 {
     if (sender.m_BtnID1 == 1)
     {
         if (sender.m_BtnID2 == 1)
         {
             Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door;
             if (door)
             {
                 door.CloseMenu(false);
             }
         }
         else if (sender.m_BtnID2 == 2)
         {
         }
     }
     else if (sender.m_BtnID1 == 2)
     {
         if (sender.m_BtnID2 == 1)
         {
             Door door2 = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door;
             if (door2)
             {
                 if (this.tmpData.GoToButton == 1)
                 {
                     door2.OpenMenu(EGUIWindow.UI_Mall, 0, 0, true);
                 }
                 else if (this.tmpData.GoToButton == 2)
                 {
                     door2.OpenMenu(EGUIWindow.UI_Chat, 0, 0, false);
                     GUIManager.Instance.OpenMenu(EGUIWindow.UIEmojiSelect, 2, 0, false, true, false);
                     GUIManager.Instance.UpdateUI(EGUIWindow.UIEmojiSelect, 4, 1);
                 }
                 else if (this.tmpData.GoToButton == 3)
                 {
                     if (this.GM.BuildingData.GetBuildData(8, 0).Level < 9)
                     {
                         CString cstring = StringManager.Instance.StaticString1024();
                         cstring.IntToFormat(9L, 1, false);
                         cstring.AppendFormat(this.DM.mStringTable.GetStringByID(9167u));
                         this.GM.AddHUDMessage(cstring.ToString(), 255, true);
                     }
                     else
                     {
                         door2.OpenMenu(EGUIWindow.UI_CastleSkin, 0, 0, true);
                         GUIManager.Instance.UpdateUI(EGUIWindow.UI_CastleSkin, 1, 0);
                     }
                 }
                 else if (this.tmpData.GoToButton == 4)
                 {
                     H5SDKPlugin.StartH5ByWebView(IGGGameSDK.Instance.m_IGGID, DataManager.Instance.UserLanguage.ToString(), "1", DataManager.Instance.RoleAttr.Name.ToString());
                     this.GM.StopShowLiveScale = 2;
                     this.GM.UpdateUI(EGUIWindow.Door, 20, 0);
                 }
                 else if (this.tmpData.GoToButton == 5)
                 {
                     if (!this.DM.MySysSetting.bMusic)
                     {
                         this.GM.AddHUDMessage(this.DM.mStringTable.GetStringByID(10163u), 255, true);
                         return;
                     }
                     if (!this.bPlayMaster)
                     {
                         this.bPlayMaster = true;
                         this.NowBGM      = AudioManager.Instance.GetCurMusic();
                     }
                     AudioManager.Instance.LoadAndPlayBGM(BGMType.Master, 1, false);
                 }
                 else
                 {
                     door2.CloseMenu(false);
                 }
             }
         }
     }
     else if (sender.m_BtnID1 == 3 && sender.m_BtnID2 < this.UrlObject.Count)
     {
         Application.OpenURL(this.UrlObject[sender.m_BtnID2].ToString());
     }
 }