parent
8de35750c6
commit
e019ef8f22
|
@ -58,6 +58,8 @@ end
|
|||
|
||||
function this.SetPanel()
|
||||
this.TimeCountDown(ShopManager.CountShopRefreshLeftTime(SHOP_TYPE.BUYCOIN_SHOP))
|
||||
local levelConfig = ConfigManager.GetConfigDataByKey(ConfigName.PlayerLevelConfig,"PlayerLv",PlayerManager.level)
|
||||
local levelNums = {levelConfig.GoldExtraNum1,levelConfig.GoldExtraNum2,levelConfig.GoldExtraNum3}
|
||||
for i = 1, #panels do
|
||||
local o=panels[i]
|
||||
local coinNum=Util.GetGameObject(o,"Coin/Num"):GetComponent("Text")
|
||||
|
@ -75,7 +77,8 @@ function this.SetPanel()
|
|||
local item,num,oldNum = ShopManager.CalculateCostCountByShopId(SHOP_TYPE.BUYCOIN_SHOP, storeData.Id, 1) --商品ID 价格数 旧价格
|
||||
|
||||
local vipFactor = PrivilegeManager.GetPrivilegeNumber(PRIVILEGE_TYPE.BuyGoldAdd)
|
||||
coinNum.text= math.floor(storeData.Goods[1][2] * vipFactor)
|
||||
|
||||
coinNum.text= math.floor((storeData.Goods[1][2] + levelNums[i]) * vipFactor)
|
||||
btnIcon.sprite=this.mainPanel.spLoader:LoadSprite(GetResourcePath(itemConfig[item].ResourceID))
|
||||
btnText.text=string.format(Language[11655],num)
|
||||
btnIcon.gameObject:SetActive(num~=0)
|
||||
|
|
Loading…
Reference in New Issue