【本地化】限时礼包限购提示文字本地化修改

dev_chengFeng
gaoxin 2021-03-05 16:41:59 +08:00
parent b7f9f620c3
commit 1e784087c9
3 changed files with 9 additions and 7 deletions

View File

@ -2230,4 +2230,5 @@
[12229] = GetLanguageStrById("装备个数"),
[12230] = GetLanguageStrById("竞技守卫"),
[12231] = GetLanguageStrById("$99.99抢购"),
[12232] = GetLanguageStrById("每周限购 %s 个"),
}

View File

@ -75,19 +75,19 @@ function this.SingleDataShow(go, data)
local btnBuy = Util.GetGameObject(go, "btnBuy")
local grid = Util.GetGameObject(go, "scrollView/grid")
local shadow = Util.GetGameObject(go, "shadow")
local LimitText=Util.GetGameObject(go,"tip/tip1/Image/text"):GetComponent("Text")
local LimitText=Util.GetGameObject(go,"tip/tip1/text1"):GetComponent("Text")
local goodData = OperatingManager.GetGiftGoodsInfo(GoodsTypeDef.DirectPurchaseGift, data.Id)
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, data.Id) or 0
local shows = shopItemData.RewardShow
name.text = GetLanguageStrById(shopItemData.Name)
LimitText.text = shopItemData.Limit
if GetCurLanguage() == 2 then
LimitText.gameObject.transform.localPosition = Vector3.New(4.7,-5,0)
else
LimitText.gameObject.transform.localPosition = Vector3.New(-147,-5,0)
end
LimitText.text = string.format(Language[12232], "<color=#FAD88AFF>"..shopItemData.Limit.."</color>")
-- if GetCurLanguage() == 2 then
-- LimitText.gameObject.transform.localPosition = Vector3.New(4.7,-5,0)
-- else
-- LimitText.gameObject.transform.localPosition = Vector3.New(-147,-5,0)
-- end
buyInfo:SetActive( shopItemData.IsDiscount ~= 0 )
if shopItemData.IsDiscount and shopItemData.IsDiscount > 0 then
buyInfo:GetComponent("Text").text = Language[10582]..string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(shopItemData.Price) / (shopItemData.IsDiscount/10))--shopItemData.Price / (shopItemData.IsDiscount/10)..MoneyUtil.GetMoneyUnitName()

View File

@ -2229,3 +2229,4 @@
12229,装备个数
12230,竞技守卫
12231,$99.99抢购
12232,每周限购 %s 个

1 10001
2229 12229 装备个数
2230 12230 竞技守卫
2231 12231 $99.99抢购
2232 12232 每周限购 %s 个