diff --git a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua index 5eeb4d4430..508952cc13 100644 --- a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua +++ b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua @@ -1730,6 +1730,7 @@ FUNCTION_OPEN_TYPE = { CROSS_RANK=128,--跨服排行榜 Hot_Hero_Rank=132,--神将热榜 NewShenzun=133,--新神尊特权 + XIUWEI=136,--主角修为 Number_Game=149,--数字游戏 } diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua index 05942e300b..d445e2ddc7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua @@ -5,6 +5,7 @@ local PropertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig) local XiuXianSkillConfig = ConfigManager.GetConfig(ConfigName.XiuXianSkillConfig) local SkillBaseConfig= ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable) local skillSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.PLAYER_SKILL) +local xiuWeiSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.XIUWEI) function this.Initialize() this.PracticeLevel = 1--小境界id this.PracticeBigLevel = 1--大境界数 @@ -776,6 +777,10 @@ function this.getDataOfCur() end function this.CheckPlayerCultivetionRed() + if xiuWeiSystemConfig.IsOpen==0 then + return false + end + local maxLevel,statePower,achivePower = this.getDataOfCur() if maxLevel > this.CultivationLevel then FormationManager.UserPowerChanged() diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua index cc20be17f5..b73a474fd4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua @@ -7,6 +7,7 @@ local newPower = 0 local oldBigLevel = 0 local globalSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.FOURQUADRANT) local skillSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.PLAYER_SKILL) +local xiuWeiSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.XIUWEI) local SkillBaseConfig= ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable) function Practice:InitComponent() self.spLoader = SpriteLoader.New() @@ -248,15 +249,19 @@ function Practice:OnOpen() self.mask:SetActive(false) self.skillObj:SetActive(skillSystemConfig.IsOpen==1) + self.cultivationBtn:SetActive(xiuWeiSystemConfig.IsOpen==1) Practice:SetSkillInfo() end --设置技能信息显示 function Practice:SetSkillInfo() - CheckRedPointStatus(RedPointType.playerSkill1) - CheckRedPointStatus(RedPointType.playerSkill2) - CheckRedPointStatus(RedPointType.playerSkill3) - CheckRedPointStatus(RedPointType.playerSkill4) + if skillSystemConfig.IsOpen==1 then + CheckRedPointStatus(RedPointType.playerSkill1) + CheckRedPointStatus(RedPointType.playerSkill2) + CheckRedPointStatus(RedPointType.playerSkill3) + CheckRedPointStatus(RedPointType.playerSkill4) + end + local list=PracticeManager.GetSkillInfo() local index=1 for i = 100, 400,100 do