英雄一键升级修改
parent
6f0c4d9a8e
commit
136bc6c12a
|
@ -2809,6 +2809,9 @@ end
|
|||
---检测功能开启方法
|
||||
function CheckFunctionOpen(_funId)
|
||||
local data = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,_funId)
|
||||
if data.IsOpen==0 then
|
||||
return false
|
||||
end
|
||||
-- 当前玩家等级
|
||||
local playerLv = PlayerManager.level
|
||||
--开启规则
|
||||
|
|
|
@ -161,7 +161,8 @@ function RoleInfoLayout:BindEvent()
|
|||
end
|
||||
|
||||
if curHeroData.lv<this.GetCurHeroLvLimit() and oldUpMaxLv==curHeroData.lv then
|
||||
PopupTipPanel.ShowTip("材料不足")
|
||||
-- PopupTipPanel.ShowTip("材料不足")
|
||||
this:ShowCostNotEnoughTip()
|
||||
return
|
||||
end
|
||||
this:DeleteLvUpMaterials(oldUpMaxLv)
|
||||
|
@ -1011,13 +1012,13 @@ function RoleInfoLayout:ShowCostNotEnoughTip()
|
|||
PopupTipPanel.ShowTip(BagManager.GetItemNameById(costId).."不足无法升级")
|
||||
end
|
||||
|
||||
local item=BagManager.GetItemDataByTimeIsGold(costId)
|
||||
if item then
|
||||
UIManager.OpenPanel(UIName.BagResolveAnCompoundPanel, 4,item)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,costId)
|
||||
end
|
||||
local _itemData = BagManager.bagDatas[itemSid]
|
||||
local item=BagManager.GetItemDataByTimeIsGold(costId)
|
||||
if item then
|
||||
UIManager.OpenPanel(UIName.BagResolveAnCompoundPanel, 4,item)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,costId)
|
||||
end
|
||||
--local _itemData = BagManager.bagDatas[itemSid]
|
||||
|
||||
--if costId==4 then
|
||||
|
||||
|
|
Loading…
Reference in New Issue