From 1e784087c98badc8a4bfe5e9493f58fc0a2ab526 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 5 Mar 2021 16:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9C=AC=E5=9C=B0=E5=8C=96=E3=80=91?= =?UTF-8?q?=E9=99=90=E6=97=B6=E7=A4=BC=E5=8C=85=E9=99=90=E8=B4=AD=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E5=AD=97=E6=9C=AC=E5=9C=B0=E5=8C=96=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Common/Language.lua | 1 + .../~Lua/Modules/Expert/GiftBuy.lua | 14 +++++++------- data_execl/Language_data/LanguageLua.csv | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) 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