TCX_LongZhu
parent
eac6d98246
commit
554eeacc72
|
|
@ -133,10 +133,11 @@ function Practice:BindEvent()
|
|||
|
||||
end)
|
||||
Util.AddClick(self.imprintBtn, function()
|
||||
if PracticeManager.PracticeBigLevel > 1 then
|
||||
if self:GetPracticeIsOpen() then
|
||||
UIManager.OpenPanel(UIName.PracticeImprintPanel)
|
||||
else
|
||||
PopupTipPanel.ShowTip("到达筑基期后解锁!")
|
||||
local gloConfig=ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,163)
|
||||
PopupTipPanel.ShowTip("玩家达到"..gloConfig.OpenRules[2].."级解锁!")
|
||||
end
|
||||
end)
|
||||
--四象心法按钮
|
||||
|
|
@ -213,6 +214,14 @@ function Practice:BindEvent()
|
|||
--BindRedPointObject(RedPointType.Gem,self.gemRedPoint)
|
||||
BindRedPointObject(RedPointType.playerGift,self.giftRedPoint)
|
||||
end
|
||||
--获取魂印是否开启
|
||||
function Practice:GetPracticeIsOpen()
|
||||
local gloConfig=ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,163)
|
||||
if gloConfig then
|
||||
return PlayerManager.level>=gloConfig.OpenRules[2]
|
||||
end
|
||||
return false
|
||||
end
|
||||
function Practice:BtnClickEvent()
|
||||
NetManager.UpPracticeLevelRequest(function ()
|
||||
newPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||
|
|
@ -460,9 +469,9 @@ end
|
|||
|
||||
function Practice:RefreshBtn()
|
||||
--神印按钮筑基期后开启
|
||||
Util.SetGray(self.imprintBtn,PracticeManager.PracticeBigLevel < 2)
|
||||
Util.SetGray(self.imprintBtn,self:GetPracticeIsOpen() == false)
|
||||
--屏蔽紫府神印入口
|
||||
self.imprintBtn:SetActive(false)
|
||||
--self.imprintBtn:SetActive(false)
|
||||
Util.SetGray(self.fourQuadrantBtn,not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.FOURQUADRANT))
|
||||
self.fourQuadrantBtn:SetActive(globalSystemConfig.IsOpen==1)
|
||||
self.talsmanSoulBtn:SetActive(ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.TailsmanSoul))
|
||||
|
|
|
|||
Loading…
Reference in New Issue