百宝商会文字错乱修改
parent
05ef24c89c
commit
7aa590621c
|
|
@ -71,5 +71,24 @@ function this.GetMoneyUnitNameWithMoney(money)
|
||||||
return string.format(formater, this.GetMoney(money))
|
return string.format(formater, this.GetMoney(money))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 获取货币单位名称
|
||||||
|
local _t2n2 = {
|
||||||
|
[MoneyType.RMB] = "%s\n元",
|
||||||
|
[MoneyType.USD] = "$\n%s",
|
||||||
|
}
|
||||||
|
function this.GetMoneyUnitName1(mt)
|
||||||
|
if not mt then
|
||||||
|
mt = this.MT
|
||||||
|
end
|
||||||
|
if _t2n2[mt] then
|
||||||
|
return _t2n2[mt]
|
||||||
|
end
|
||||||
|
return _t2n2[MoneyType.RMB]
|
||||||
|
end
|
||||||
|
function this.GetMoneyUnitNameWithMoney1(money)
|
||||||
|
local formater = this.GetMoneyUnitName1()
|
||||||
|
return string.format(formater, this.GetMoney(money))
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return MoneyUtil
|
return MoneyUtil
|
||||||
|
|
@ -201,7 +201,7 @@ function this:SetScrollPre(root,data)
|
||||||
itemList[i].Name = Util.GetGameObject(itemList[i].go,"Name"):GetComponent("Text")
|
itemList[i].Name = Util.GetGameObject(itemList[i].go,"Name"):GetComponent("Text")
|
||||||
end
|
end
|
||||||
local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,data.Id)
|
local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,data.Id)
|
||||||
title.text = string.format("价\n值\n%s\n现\n仅\n需\n%s",MoneyUtil.GetMoneyUnitNameWithMoney(config.Rebate),MoneyUtil.GetMoneyUnitNameWithMoney(config.Price))
|
title.text = string.format("价\n值\n%s\n现\n仅\n需\n%s",MoneyUtil.GetMoneyUnitNameWithMoney1(config.Rebate),MoneyUtil.GetMoneyUnitNameWithMoney1(config.Price))
|
||||||
local rewardArray = data.RewardShow
|
local rewardArray = data.RewardShow
|
||||||
if not itemsGrid then
|
if not itemsGrid then
|
||||||
itemsGrid = {}
|
itemsGrid = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue