fix:1、多语言bug修复
This commit is contained in:
@@ -483,6 +483,7 @@ namespace RedHotRoast
|
||||
ui.btn_setting.SetClick(OnClickSetting);
|
||||
ui.btn_shop.SetClick(OnClickShop);
|
||||
// ui.btn_secret.SetClick(OnClickSecretAlbums);
|
||||
ui.btn_vip.visible = false;
|
||||
ui.btn_vip.SetClick(onClickVip);
|
||||
|
||||
WebviewManager.Instance.SetDarkThough(true);
|
||||
|
||||
@@ -53,6 +53,13 @@ namespace RedHotRoast
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
var lang = PlayerPrefsKit.ReadString("LangIdKey");
|
||||
if (lang.IsNullOrWhiteSpace())
|
||||
{
|
||||
lang = "en";
|
||||
}
|
||||
UIManager.Instance.SetSwitchLanguage(lang);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenBgUI_Open);
|
||||
ui.com_pb.max = 100;
|
||||
ui.com_pb.value = 0;
|
||||
|
||||
@@ -155,7 +155,6 @@ namespace RedHotRoast
|
||||
//初始化页面逻辑
|
||||
private void InitView()
|
||||
{
|
||||
Debug.Log($"DataMgr.ExchangeAccount====={DataMgr.ExchangeAccount.Value}");
|
||||
Makeup_2 makeupVo = MakeupModel_2.GetData(makeupTaskData.tableId);
|
||||
ui.text_ad.text = string.Format(GameHelper.getDesByKey("saving_pot_5"), makeupVo.ADIncrease);
|
||||
string str = string.Format(GameHelper.getDesByKey("saving_pot_2"), makeupVo.PayIncrease);
|
||||
@@ -214,7 +213,7 @@ namespace RedHotRoast
|
||||
});
|
||||
|
||||
HallManager.Instance.UpdateSecondEvent -= upLvWatchAdsBtn;
|
||||
DOVirtual.DelayedCall(0.1f, InitView);
|
||||
InitView();
|
||||
}
|
||||
if (SaveData.GetSaveObject().saveingpot_ch > SaveData.GetSaveObject().last_saveingpot_ch)
|
||||
{
|
||||
@@ -327,12 +326,11 @@ namespace RedHotRoast
|
||||
btn_watchAd btn_watchad = ui.btn_ch as btn_watchAd;
|
||||
btn_watchad.img_saveingpot.visible = false;
|
||||
|
||||
if (SaveData.GetSaveObject().saveingpot_ch >= makeupTaskData.amount)
|
||||
{
|
||||
HallManager.Instance.UpdateSecondEvent -= upLvWatchAdsBtn;
|
||||
InitView();
|
||||
return;
|
||||
}
|
||||
// if (SaveData.GetSaveObject().saveingpot_ch >= makeupTaskData.amount)
|
||||
// {
|
||||
// InitView();
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (GameHelper.GetNowTime() < lastAdTimes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user