fix:1、添加H5
This commit is contained in:
@@ -16,6 +16,7 @@ using System.Net;
|
||||
using SGModule.Net;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using DontConfuse;
|
||||
|
||||
|
||||
namespace RedHotRoast
|
||||
@@ -209,6 +210,9 @@ namespace RedHotRoast
|
||||
}
|
||||
void Setbg(object a = null)
|
||||
{
|
||||
return;
|
||||
|
||||
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
return;
|
||||
@@ -483,6 +487,13 @@ namespace RedHotRoast
|
||||
ui.btn_shop.SetClick(OnClickShop);
|
||||
// ui.btn_secret.SetClick(OnClickSecretAlbums);
|
||||
ui.btn_vip.SetClick(onClickVip);
|
||||
|
||||
WebviewManager.Instance.SetDarkThough(true);
|
||||
|
||||
ui.btn_wv.SetClick(() =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
|
||||
});
|
||||
|
||||
ui.btn_egg.SetClick(OnClickEgg);
|
||||
btn_noads.SetClick(() =>
|
||||
@@ -546,6 +557,12 @@ namespace RedHotRoast
|
||||
|
||||
});
|
||||
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
WebviewManager.Instance.SetDarkThough(false);
|
||||
}
|
||||
|
||||
|
||||
// ui.btn_task_times.SetClick(() => { OnClickTask(false); });
|
||||
|
||||
ui.btn_task.SetClick(() => { OnClickTask(false); });
|
||||
@@ -581,7 +598,7 @@ namespace RedHotRoast
|
||||
ui.state.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
|
||||
ui.btn_three_day.SetClick(() =>
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
|
||||
});
|
||||
for (int i = 0; i < BtnNum; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user