建木神树 升级修改提交
parent
3e3d0d9416
commit
d010e309ca
|
@ -66,7 +66,7 @@ end
|
|||
|
||||
function SacredTreePanel:OnUpdate()
|
||||
if self.isPressed then
|
||||
if self.numCount > t and self.numCount/t >= 0 then
|
||||
if self.numCount >= t and self.numCount/t >= 1 then
|
||||
self.isShortPress = false
|
||||
self:Refresh(false)
|
||||
else
|
||||
|
@ -120,11 +120,6 @@ function SacredTreePanel:Refresh(isSend)
|
|||
end
|
||||
|
||||
function SacredTreePanel:RequestDonate(num)
|
||||
LogGreen("num:"..num)
|
||||
if num <= 0 then
|
||||
PopupTipPanel.ShowTip(string.format("%s不足!",itemConfig[treeLevelConfig[curTreeLevel].LvupCost[1]].Name))
|
||||
return
|
||||
end
|
||||
NetManager.UpgradeGodTreeRequest(num,function ()
|
||||
self.num = 0
|
||||
self:OnShow()
|
||||
|
@ -187,7 +182,7 @@ function SacredTreePanel:OnShow()
|
|||
CheckRedPointStatus(RedPointType.Sacred)
|
||||
self.treeRed:SetActive(SacredTreeManager.CheckRedPoint())
|
||||
curTreeLevel = SacredTreeManager.treeLevel
|
||||
|
||||
self.itemNum = curTreeLevel >=length and 0 or BagManager.GetTotalItemNum(treeLevelConfig[curTreeLevel].LvupCost[1])
|
||||
|
||||
local str1,str2
|
||||
Util.SetGray(self.upgradeBtn,curTreeLevel >= length)
|
||||
|
|
Loading…
Reference in New Issue