物品弹窗bug修改

dev_chengFeng
yuanshuai 2022-04-26 15:36:43 +08:00
parent b5445b2ed6
commit 2b5830b76a
1 changed files with 3 additions and 6 deletions

View File

@ -15,7 +15,7 @@ function this:InitComponent()
this.titleText = Util.GetGameObject(self.gameObject, "root/bg/titleText"):GetComponent("Text")
this.prefab=Util.GetGameObject(self.gameObject, "root/prefab")
this.itemView= SubUIManager.Open(SubUIConfig.ItemView, this.prefab.transform)
this.lvLayout=Util.GetGameObject(self.gameObject, "root/verLayout/lvLayout")
@ -47,6 +47,7 @@ function this:InitComponent()
this.upLvBtn = Util.GetGameObject(this.costLayout, "upLvBtn")
this.upStarBtn = Util.GetGameObject(this.costLayout, "upStarBtn")
this.itemView= SubUIManager.Open(SubUIConfig.ItemView, this.prefab.transform)
end
function this:BindEvent()
@ -215,8 +216,7 @@ function this.SetCostItem(costData)
this.num.text= string.format("<color=#FF0000>%s</color>","0/"..costData[2])
this.bianImg.gameObject:SetActive(true)
end
Util.AddClick(Util.GetGameObject(this.costItem, "frame"), function()
Util.AddOnceClick(Util.GetGameObject(this.costItem, "frame"), function()
this.itemView:OnBtnCkickEvent(costData[1])
end)
end
@ -249,9 +249,6 @@ function this.CheckLevelLimit()
return false
end
function this:OnSortingOrderChange()
end
function this:OnClose()
Game.GlobalEvent:DispatchEvent(GameEvent.CommonEvent.RefreshIncarnationPanel)
end