fix:1、添加跳链接的webview的插件。2、修复bug
This commit is contained in:
@@ -99,6 +99,7 @@ namespace RedHotRoast
|
||||
public int[] BalanceExchange;
|
||||
public int[] PotExchange;
|
||||
public int StatementSwitch;
|
||||
|
||||
public string X_Redeemcode;
|
||||
public string X_ShopURL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,8 +50,10 @@ namespace FGUI.tixian
|
||||
public cash_levelcom com_chlevel;
|
||||
public GGroup group_;
|
||||
public GTextField lab_mn;
|
||||
public GTextField text_rate1;
|
||||
public GList list_kicket;
|
||||
public GTextField lab_mn2;
|
||||
public GTextField text_rate;
|
||||
public GTextField lab_ticket;
|
||||
public GTextField lab_code;
|
||||
public btn_code btn_copy;
|
||||
@@ -116,8 +118,10 @@ namespace FGUI.tixian
|
||||
com_chlevel = (cash_levelcom)GetChildAt(60);
|
||||
group_ = (GGroup)GetChildAt(61);
|
||||
lab_mn = (GTextField)GetChildAt(65);
|
||||
text_rate1 = (GTextField)GetChildAt(68);
|
||||
list_kicket = (GList)GetChildAt(70);
|
||||
lab_mn2 = (GTextField)GetChildAt(75);
|
||||
text_rate = (GTextField)GetChildAt(78);
|
||||
lab_ticket = (GTextField)GetChildAt(83);
|
||||
lab_code = (GTextField)GetChildAt(85);
|
||||
btn_copy = (btn_code)GetChildAt(86);
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace FGUI.tixian
|
||||
public GTextField text_title;
|
||||
public GButton btn_close1;
|
||||
public GTextField lab_mn2;
|
||||
public GTextField text_rate;
|
||||
public GTextField lab_ticket;
|
||||
public GTextField lab_code;
|
||||
public btn_code btn_copy;
|
||||
@@ -29,6 +30,7 @@ namespace FGUI.tixian
|
||||
text_title = (GTextField)GetChildAt(1);
|
||||
btn_close1 = (GButton)GetChildAt(2);
|
||||
lab_mn2 = (GTextField)GetChildAt(6);
|
||||
text_rate = (GTextField)GetChildAt(9);
|
||||
lab_ticket = (GTextField)GetChildAt(14);
|
||||
lab_code = (GTextField)GetChildAt(16);
|
||||
btn_copy = (btn_code)GetChildAt(17);
|
||||
|
||||
@@ -40,8 +40,10 @@ namespace FGUI.tixian
|
||||
public btn_pay btn_watch;
|
||||
public GImage card_;
|
||||
public GTextField lab_mn;
|
||||
public GTextField text_rate1;
|
||||
public GList list_kicket;
|
||||
public GTextField lab_mn2;
|
||||
public GTextField text_rate;
|
||||
public GTextField lab_ticket;
|
||||
public GTextField lab_code;
|
||||
public btn_code btn_copy;
|
||||
@@ -95,8 +97,10 @@ namespace FGUI.tixian
|
||||
btn_watch = (btn_pay)GetChildAt(40);
|
||||
card_ = (GImage)GetChildAt(42);
|
||||
lab_mn = (GTextField)GetChildAt(45);
|
||||
text_rate1 = (GTextField)GetChildAt(47);
|
||||
list_kicket = (GList)GetChildAt(51);
|
||||
lab_mn2 = (GTextField)GetChildAt(55);
|
||||
text_rate = (GTextField)GetChildAt(57);
|
||||
lab_ticket = (GTextField)GetChildAt(62);
|
||||
lab_code = (GTextField)GetChildAt(64);
|
||||
btn_copy = (btn_code)GetChildAt(65);
|
||||
|
||||
@@ -1205,7 +1205,7 @@ namespace RedHotRoast
|
||||
{
|
||||
if (RainPlayUI == null)
|
||||
{
|
||||
RainPlayUI = GameObject.Find("(RainPlayUI)sheep_play");
|
||||
RainPlayUI = GameObject.Find("(ArrowGameUI)com_arrow_game");
|
||||
}
|
||||
if (RainPlayUI != null)
|
||||
{
|
||||
@@ -1906,7 +1906,9 @@ namespace RedHotRoast
|
||||
|
||||
public static string GetPriceInt(decimal ch)
|
||||
{
|
||||
return $"${ch:N0}";
|
||||
var vo = GetExchangeRateVo();
|
||||
ch *= (decimal)vo.Multi;
|
||||
return $"{vo.Payicon}{ch:N0}";
|
||||
}
|
||||
|
||||
public static void InitNewWatchCDList(bool isNew = false)
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace RedHotRoast
|
||||
EnterHall();
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MainUI_Open);
|
||||
});
|
||||
CtrlDispatcher.Instance.AddListener(CtrlMsg.open_wb, OpenWb);
|
||||
|
||||
AppDispatcher.Instance.AddListener(MainThreadMsg.App_Focus_True, BackToGame);
|
||||
InitSystem();
|
||||
@@ -182,6 +183,43 @@ namespace RedHotRoast
|
||||
AudioManager.Instance.PlayBGM(AudioConst.GameBg);
|
||||
}
|
||||
}
|
||||
|
||||
private void OpenWb(object obj) {
|
||||
|
||||
if (obj is not SDKOpenConfig openConfig) return;
|
||||
|
||||
// SdkConfigMgr.Instance.Open(openConfig.normal, openConfig.url);
|
||||
SetCameraVisible(false);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open, openConfig);
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.hideBroadCast);
|
||||
}
|
||||
|
||||
private Camera _gameCamera;
|
||||
|
||||
public void SetCameraVisible(bool visible)
|
||||
{
|
||||
// 只在首次调用时查找
|
||||
if (_gameCamera == null)
|
||||
{
|
||||
// 使用 FindWithTag 确保能找到非激活对象
|
||||
|
||||
_gameCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
|
||||
|
||||
}
|
||||
if (_gameCamera != null)
|
||||
{
|
||||
_gameCamera.enabled = visible;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("GameCamera reference not found!");
|
||||
}
|
||||
|
||||
GameHelper.ShowSheepPlayUI(visible);
|
||||
}
|
||||
|
||||
|
||||
#region 缓存资源
|
||||
|
||||
|
||||
Reference in New Issue
Block a user