fix:1、添加多语言的json文件,修复bug
This commit is contained in:
@@ -119,6 +119,9 @@ namespace RedHotRoast
|
||||
|
||||
ui.text_chdate3.text = GameHelper.getDesByKey("makeup_11");
|
||||
|
||||
// ui.text_rate1.text = GameHelper.GetExchangeRateVo().Payicon + " 1";
|
||||
// ui.text_rate.text = GameHelper.GetExchangeRateVo().Payicon + " 1";
|
||||
|
||||
updateSpeedCD();
|
||||
InitView();
|
||||
initButtom();
|
||||
@@ -198,8 +201,8 @@ namespace RedHotRoast
|
||||
initTop();
|
||||
ui.btn_close.SetClick(CtrlCloseUI);
|
||||
|
||||
if ((GameHelper.isRDExchangeMode() && DataMgr.ExchangeProcessMode.Value == 1) || (!GameHelper.isRDExchangeMode() && DataMgr.CHProcessMode.Value == 1))
|
||||
{
|
||||
if ((GameHelper.isRDExchangeMode() && DataMgr.ExchangeProcessMode.Value == 1) || (!GameHelper.isRDExchangeMode() && DataMgr.CHProcessMode.Value == 1))
|
||||
{
|
||||
if (makeupTaskData.status == MakeupTaskStatus.Level)
|
||||
{
|
||||
Debug.Log("00000000000000000003");
|
||||
@@ -211,17 +214,17 @@ namespace RedHotRoast
|
||||
ui.text_chneedlv.text = str;
|
||||
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetCommonConf().ExpiryUnlock.ToString()).FlushVars();
|
||||
Debug.Log(ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
ui.lab_ads.text = str;
|
||||
str = $"{makeupTaskData.LvVideoCount}/{ConfigSystem.GetCommonConf().ExpiryUnlock}";
|
||||
ui.lab_ads.text = Language.GetContentParams("owner_ad", str);
|
||||
ui.text_nowch.text = GameHelper.Get102Str(DataMgr.Ticket.Value);
|
||||
ui.text_ch_title.text = "Level " + vo.levels_need;
|
||||
ui.text_ch_title.text = Language.GetContentParams("need_lv_text", vo.levels_need);
|
||||
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetCommonConf().PiggyBankSwitch == 1)
|
||||
{
|
||||
(ui.btn_watchad.GetChild("img_saveingpot") as GImage).visible = true;
|
||||
}
|
||||
if (GameHelper.GetLevel() <= vo.levels_need)
|
||||
{
|
||||
ui.btn_check_level.title = "Go";
|
||||
ui.btn_check_level.title = Language.GetContentParams("go");
|
||||
if (UIManager.Instance.IsExistUI(UIConst.RainPlayUI))
|
||||
{
|
||||
ui.btn_check_level.SetClick(() =>
|
||||
@@ -315,10 +318,10 @@ namespace RedHotRoast
|
||||
ui.text_chneedlv.text = str;
|
||||
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetCommonConf().ExpiryUnlock.ToString()).FlushVars();
|
||||
Debug.Log(ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
ui.lab_ads.text = str;
|
||||
str = $"{makeupTaskData.LvVideoCount}/{ ConfigSystem.GetCommonConf().ExpiryUnlock}";
|
||||
ui.lab_ads.text = Language.GetContentParams("owner_ad", str);
|
||||
ui.text_nowch.text = GameHelper.Get102Str(DataMgr.Ticket.Value);
|
||||
ui.text_ch_title.text = "Level " + vo.levels_need;
|
||||
ui.text_ch_title.text = Language.GetContentParams("need_lv_text", vo.levels_need);
|
||||
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetCommonConf().PiggyBankSwitch == 1)
|
||||
{
|
||||
(ui.btn_watchad.GetChild("img_saveingpot") as GImage).visible = true;
|
||||
@@ -326,7 +329,7 @@ namespace RedHotRoast
|
||||
|
||||
if (GameHelper.GetLevel() <= vo.levels_need)
|
||||
{
|
||||
ui.btn_check_level.title = "Go";
|
||||
ui.btn_check_level.title = Language.GetContentParams("go");
|
||||
if (UIManager.Instance.IsExistUI(UIConst.RainPlayUI))
|
||||
{
|
||||
ui.btn_check_level.SetClick(() =>
|
||||
@@ -432,9 +435,9 @@ namespace RedHotRoast
|
||||
now_selectindex = makeupTaskData.tableId - 1;
|
||||
for (int i = 0; i < btn_list.Count; i++)
|
||||
{
|
||||
btn_list[i].text_level0.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level1.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level2.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level0.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
btn_list[i].text_level1.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
btn_list[i].text_level2.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
if (i < ch_index)
|
||||
{
|
||||
btn_list[i].img_check.visible = true;
|
||||
@@ -459,7 +462,8 @@ namespace RedHotRoast
|
||||
int _temp_index = i;
|
||||
btn_list[i].SetClick(() =>
|
||||
{
|
||||
GameHelper.ShowTips("Complete level " + makeup_list[_temp_index].levels_need + " to unlock.");
|
||||
var tips = Language.GetContentParams("Complete_tips", makeup_list[_temp_index].levels_need);
|
||||
GameHelper.ShowTips(tips);
|
||||
});
|
||||
}
|
||||
else
|
||||
@@ -533,27 +537,27 @@ namespace RedHotRoast
|
||||
var account = enter_input.text.Replace(" ", "");
|
||||
if (account == null || account == "")
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GameHelper.CheckAccountValidly(account))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var fname = ui.com_fname.enter_fname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(fname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var lname = ui.com_lname.enter_lname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(lname) && !AppConst.isPt())
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -985,7 +989,7 @@ namespace RedHotRoast
|
||||
value += makeupTaskData.rdData[i].coupon_mount;
|
||||
}
|
||||
}
|
||||
ui.lab_mn.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
|
||||
ui.list_kicket.itemRenderer = refreshItem;
|
||||
ui.list_kicket.numItems = makeupTaskData.rdData.Count;
|
||||
@@ -1000,12 +1004,12 @@ namespace RedHotRoast
|
||||
if (makeupTaskData.rdData[index].isClaimed)
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 1;
|
||||
item.btn_claim.title = "Claimed";
|
||||
item.btn_claim.title = Language.GetContentParams("claimed");
|
||||
}
|
||||
else
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 0;
|
||||
item.btn_claim.title = "Claim";
|
||||
item.btn_claim.title = Language.GetContentParams("claim");
|
||||
}
|
||||
|
||||
item.btn_claim.SetClick(() =>
|
||||
@@ -1039,10 +1043,10 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
var vo = MakeupModel.GetData(makeupTaskData.tableId);
|
||||
ui.lab_mn2.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn2.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
ui.lab_ticket.text = GameHelper.GetPriceInt(makeupTaskData.lastRdData.coupon_mount);
|
||||
ui.lab_code.text = makeupTaskData.lastRdData.code;
|
||||
|
||||
|
||||
ui.btn_back.SetClick(() =>
|
||||
{
|
||||
ui.cont_state.selectedIndex = 6;
|
||||
@@ -1063,7 +1067,7 @@ namespace RedHotRoast
|
||||
normal = false,
|
||||
url = vo.T_ShopURL
|
||||
};
|
||||
|
||||
|
||||
CtrlDispatcher.Instance.Dispatch(CtrlMsg.open_wb,openConfig);
|
||||
|
||||
CtrlCloseUI();
|
||||
@@ -1207,7 +1211,7 @@ namespace RedHotRoast
|
||||
btn_watchad.can_buy.selectedIndex = 1;
|
||||
btn_watchad.btn_text.text = CommonHelper.TimeFormat(SaveData.GetSaveObject()._watch_ad_cd - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
|
||||
HallManager.Instance.UpdateSecondEvent += upLvWatchAdsBtn;
|
||||
// makeupTaskData.cash_time = GameHelper.GetNowTime() + ConfigSystem.GetCommonConf().BalanceExpired * 3600;
|
||||
// makeupTaskData.cash_time = GameHelper.GetNowTime() + ConfigSystem.GetConfig<CommonModel>().BalanceExpired * 3600;
|
||||
InitView();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user