【法宝归元】鸿蒙阵上的英雄归元法宝弹 null and 【灵兽山】长按升级弹服务器开小差

dev_chengFeng
zhangqiang 2021-07-05 15:34:42 +08:00
parent b7447f8d0e
commit 632291a19c
2 changed files with 8 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function this:BindEvent()
end)
--长按升级按下状态
this._onPointerDown = function(Pointgo, data)
-- isTriggerLongClick = false
isTriggerLongClick = false
_isClicked = true
this.timePressStarted = Time.realtimeSinceStartup
oldLv = curPokemonData.lv
@ -76,7 +76,7 @@ end
--长按升级抬起状态
this._onPointerUp = function(Pointgo, data)
LogPink("连续升级抬起请求升级 "..tostring(_isLongPress))
if _isLongPress then--and isTriggerLongClick
if _isLongPress and isTriggerLongClick then
--连续升级抬起请求升级
LogPink("连续升级抬起请求升级 ")
this.LongLvUpClick(oldLv)
@ -232,6 +232,7 @@ function this.LvUpClick(isSingleLvUp)
this.LongLvUpClick(oldLv)
_isClicked = false
_isLongPress = false
isTriggerLongClick = true
end
return
end
@ -249,6 +250,7 @@ function this.LvUpClick(isSingleLvUp)
FormationManager.CheckHeroIdExist()
end)
else
isTriggerLongClick = true
--前端先扣除材料
for i = 1, #curUpLvConsume do
BagManager.HeroLvUpUpdateItemsNum(curUpLvConsume[i][1],curUpLvConsume[i][2])

View File

@ -91,6 +91,10 @@ function RoleTalismanPanelV2:BindEvent()
end)
--进阶按钮
Util.AddClick(this.RecallBtn, function()
if HarmonyManager.IsChangeColor(curHeroData.dynamicId) then
PopupTipPanel.ShowTip(Language[12184])
return
end
if curHeroData.talismanList and curHeroData.talismanList <= 1 then
PopupTipPanel.ShowTip(Language[12265])
return