diff --git a/Assets/ManagedResources/~Lua/Common/Language.lua b/Assets/ManagedResources/~Lua/Common/Language.lua index 018dbe5ffd..8de2d79049 100644 --- a/Assets/ManagedResources/~Lua/Common/Language.lua +++ b/Assets/ManagedResources/~Lua/Common/Language.lua @@ -2230,4 +2230,5 @@ [12229] = GetLanguageStrById("装备个数"), [12230] = GetLanguageStrById("竞技守卫"), [12231] = GetLanguageStrById("$99.99抢购"), + [12232] = GetLanguageStrById("每周限购 %s 个"), } diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/GiftBuy.lua b/Assets/ManagedResources/~Lua/Modules/Expert/GiftBuy.lua index 9956be2380..bfe32d5068 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/GiftBuy.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/GiftBuy.lua @@ -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], ""..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 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() diff --git a/data_execl/Language_data/LanguageLua.csv b/data_execl/Language_data/LanguageLua.csv index 6afceaa17c..0491c3d587 100644 --- a/data_execl/Language_data/LanguageLua.csv +++ b/data_execl/Language_data/LanguageLua.csv @@ -2229,3 +2229,4 @@ 12229,װ 12230, 12231,$99.99 +12232,ÿ޹ %s