fix:1、多语言添加

This commit is contained in:
2026-07-07 17:04:11 +08:00
parent 09c02d51f7
commit 03b3ad4364
76 changed files with 41664 additions and 43127 deletions
@@ -213,17 +213,17 @@ namespace ChillConnect
ui.text_chneedlv.text = str;
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock.ToString()).FlushVars();
Debug.Log(ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock);
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock);
ui.lab_ads.text = str;
str = $"{makeupTaskData.LvVideoCount}/{ConfigSystem.GetConfig<CommonModel>().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.GetConfig<CommonModel>().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(() =>
@@ -317,10 +317,10 @@ namespace ChillConnect
ui.text_chneedlv.text = str;
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock.ToString()).FlushVars();
Debug.Log(ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock);
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetConfig<CommonModel>().ExpiryUnlock);
ui.lab_ads.text = str;
str = $"{makeupTaskData.LvVideoCount}/{ ConfigSystem.GetConfig<CommonModel>().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.GetConfig<CommonModel>().PiggyBankSwitch == 1)
{
(ui.btn_watchad.GetChild("img_saveingpot") as GImage).visible = true;
@@ -328,7 +328,7 @@ namespace ChillConnect
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(() =>
@@ -434,9 +434,9 @@ namespace ChillConnect
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;
@@ -461,7 +461,8 @@ namespace ChillConnect
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
@@ -535,27 +536,27 @@ namespace ChillConnect
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;
}
@@ -1002,12 +1003,12 @@ namespace ChillConnect
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(() =>