潜能修改
parent
d370f5b556
commit
08b388cdc9
|
@ -26,7 +26,7 @@ local oldWarPowerValue = 0
|
|||
local newWarPowerValue = 0
|
||||
local oldLv
|
||||
|
||||
|
||||
local data
|
||||
--长按升级状态
|
||||
local _isClicked = false
|
||||
local _isReqLvUp = false
|
||||
|
@ -83,6 +83,10 @@ function HeroPotencyPanel:BindEvent()
|
|||
end)
|
||||
|
||||
Util.AddClick(this.btnRest,function()
|
||||
if data and data[1] and data[1].lv<=1 then
|
||||
PopupTipPanel.ShowTip("当前并未提升潜能")
|
||||
return
|
||||
end
|
||||
NetManager.PotentialBackLvRequest(curHeroData.dynamicId,function()
|
||||
HeroManager.ResetHeroPotentialData(curHeroData.dynamicId)
|
||||
this.RefreshWindowData()
|
||||
|
@ -136,7 +140,7 @@ end
|
|||
function this.RefreshWindowData()
|
||||
this.heroBg.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(curHeroData.heroConfig.Quality,curHeroData.star))
|
||||
this.heroImg.sprite=this.spLoader:LoadSprite(curHeroData.icon)
|
||||
local data=HeroManager.GetPotentialData(curHeroData.dynamicId)
|
||||
data=HeroManager.GetPotentialData(curHeroData.dynamicId)
|
||||
local giftLv=GiftManager.GetHeroPotencyLvById(curHeroData.dynamicId)
|
||||
for i=1, 8 do
|
||||
local item= this.allEquipList[i]
|
||||
|
|
Loading…
Reference in New Issue