【背包优化】无可分解装备和魂印时添加提示
parent
1f3ba7abf7
commit
bb43d526b2
|
|
@ -78,9 +78,20 @@ function BagPanel:BindEvent()
|
|||
end
|
||||
Util.AddClick(this.fenJieBtn, function()
|
||||
if sortIndex == ItemBaseType.Equip then
|
||||
UIManager.OpenPanel(UIName.EquipSellSelectPopup)--宝器
|
||||
local temp = BagManager.GetBagItemDataByItemType(ItemBaseType.Equip)
|
||||
if not temp or #temp < 1 then
|
||||
PopupTipPanel.ShowTip("无可出售装备")
|
||||
else
|
||||
UIManager.OpenPanel(UIName.EquipSellSelectPopup)--宝器
|
||||
end
|
||||
|
||||
elseif sortIndex == ItemBaseType.SoulPrint then
|
||||
UIManager.OpenPanel(UIName.HeroAndEquipResolvePanel, 4)--魂印
|
||||
local temp = BagManager.GetAllSoulPrintData()
|
||||
if not temp or #temp < 1 then
|
||||
PopupTipPanel.ShowTip("无可分解魂印")
|
||||
else
|
||||
UIManager.OpenPanel(UIName.HeroAndEquipResolvePanel, 4)--魂印
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
@ -135,7 +146,6 @@ function this:OnClickAllBtn()
|
|||
|
||||
this:SetItemData(itemData)
|
||||
this.noneImage:SetActive(#itemData==0)
|
||||
this.fenJieBtn:GetComponent("Button").enabled = not(#itemData==0)
|
||||
|
||||
end
|
||||
function this.BagGoldChangeCallBackOnClickTabBtn()
|
||||
|
|
@ -169,7 +179,6 @@ function this.OnClickTabBtn(_index, _clickBtn)
|
|||
this:SetItemData(itemData)
|
||||
end
|
||||
this.noneImage:SetActive(#itemData==0)
|
||||
this.fenJieBtn:GetComponent("Button").enabled = not(#itemData==0)
|
||||
end
|
||||
|
||||
--当魂印升级消耗时刷新背包数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue