diff --git a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua index 9981aa9d86..99a3e2914e 100644 --- a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua +++ b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua @@ -1504,6 +1504,7 @@ FUNCTION_OPEN_TYPE = { guajigongneng = 89,--挂机多人 FIGHTLEVEL = 107,--山河社稷图 PRACTICE = 108,--修行 + FOURQUADRANT=113,--四象心法 } TaskGetBtnIconDef = { diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua index b715c0be2a..db5b850b48 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua @@ -5,7 +5,7 @@ local ItemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig) local oldPower = 0 local newPower = 0 local oldBigLevel = 0 - +local globalSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.FOURQUADRANT) function Practice:InitComponent() self.spLoader = SpriteLoader.New() orginLayer = 0 @@ -90,7 +90,11 @@ function Practice:BindEvent() end) --驭神按钮 Util.AddClick(self.fourQuadrantBtn, function() - UIManager.OpenPanel(UIName.FourQuadrantPopup) + if PlayerManager.level < globalSystemConfig.OpenRules[2] then + PopupTipPanel.ShowTip(string.format("到达%s级后解锁!",globalSystemConfig.OpenRules[1][2])) + else + UIManager.OpenPanel(UIName.FourQuadrantPopup) + end end) Util.AddClick(self.textBtn, function() UIManager.OpenPanel(UIName.FightLevelChapterPanel) @@ -306,6 +310,8 @@ end function Practice:RefreshBtn() --神印按钮筑基期后开启 Util.SetGray(self.imprintBtn,PracticeManager.PracticeBigLevel < 2) + Util.SetGray(self.fourQuadrantBtn,PlayerManager.level < globalSystemConfig.OpenRules[2]) + self.noOpenTip:SetActive(false) if XinXianConfig[PracticeManager.PracticeLevel + 1] then self.button:SetActive(true)