【天宫商店】去掉已获得变身卡的购买限制

dev_chengFeng
yuanshuai 2022-04-26 17:26:55 +08:00
parent 4199ea504a
commit 311439c885
2 changed files with 7 additions and 12 deletions

View File

@ -465,12 +465,10 @@ function RewardItemSingleShowPopup:OnShow()
this.armorType.gameObject:SetActive(true)
this.armorLanTuNum.gameObject:SetActive(true)
this.armorType.text = this.getType()--道具类型显示
LogError("11111111111")
this.armorLanTuNum.text = Language[11516] .. BagManager.GetItemCountById(itemSid)
this.armorInfoText.text = string.gsub(GetLanguageStrById(itemConfigData.ItemDescribe), "\\n", "")
local jumpDataList = itemConfigData.Jump
local jumpSortData = creatJumpData(jumpDataList)
LogError("222222222")
for i = 1, #jumpSortData do
if jumpSortData[i].id > 0 then
-- type 大于 10000为活动 直接显示按钮如果小于1000 为功能 开启才显示
@ -496,7 +494,6 @@ function RewardItemSingleShowPopup:OnShow()
end
end
end
LogError("33333333")
this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(912.8,600)
-- if jumpDataList and #jumpDataList then
-- this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList))
@ -518,7 +515,6 @@ function RewardItemSingleShowPopup:OnShow()
else
this.checkHero:SetActive(false)
end
LogError("44444444444444")
-- 判断是否要显示等级限制
this.armorLock.gameObject:SetActive(false)
if itemConfigData.UseLevel and itemConfigData.UseLevel > 0 and PlayerManager.level < itemConfigData.UseLevel then
@ -526,7 +522,6 @@ function RewardItemSingleShowPopup:OnShow()
this.armorLock.text = string.format("<color=%s>等级达%s后可以使用</color>", UIColorStr.RED, itemConfigData.UseLevel)
end
ForceRebuildLayout(this.equipProGrid.transform)
LogError("5555555555")
end
--获取道具种类

View File

@ -605,13 +605,13 @@ function this:ShopItemAdapter(shopItem, itemData)
PopupTipPanel.ShowTip(Language[12039])
end)
Util.AddOnceClick(bg, function()
if con.ItemType == ItemType.Incarnation then
local num = BagManager.GetItemCountById(con.Id)
if num > 0 or IncarnationManager.GetStatusByItemId(con.Id) >= 0 then
PopupTipPanel.ShowTip("无法选择已获取过的变身卡!")
return
end
end
-- if con.ItemType == ItemType.Incarnation then
-- local num = BagManager.GetItemCountById(con.Id)
-- if num > 0 or IncarnationManager.GetStatusByItemId(con.Id) >= 0 then
-- PopupTipPanel.ShowTip("无法选择已获取过的变身卡!")
-- return
-- end
-- end
-- 售空
if isEmpty then
PopupTipPanel.ShowTip(Language[12039])