四象心法添加通用等级限制
parent
ee557e993a
commit
e91140175f
|
@ -1504,6 +1504,7 @@ FUNCTION_OPEN_TYPE = {
|
||||||
guajigongneng = 89,--挂机多人
|
guajigongneng = 89,--挂机多人
|
||||||
FIGHTLEVEL = 107,--山河社稷图
|
FIGHTLEVEL = 107,--山河社稷图
|
||||||
PRACTICE = 108,--修行
|
PRACTICE = 108,--修行
|
||||||
|
FOURQUADRANT=113,--四象心法
|
||||||
}
|
}
|
||||||
|
|
||||||
TaskGetBtnIconDef = {
|
TaskGetBtnIconDef = {
|
||||||
|
|
|
@ -5,7 +5,7 @@ local ItemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||||
local oldPower = 0
|
local oldPower = 0
|
||||||
local newPower = 0
|
local newPower = 0
|
||||||
local oldBigLevel = 0
|
local oldBigLevel = 0
|
||||||
|
local globalSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.FOURQUADRANT)
|
||||||
function Practice:InitComponent()
|
function Practice:InitComponent()
|
||||||
self.spLoader = SpriteLoader.New()
|
self.spLoader = SpriteLoader.New()
|
||||||
orginLayer = 0
|
orginLayer = 0
|
||||||
|
@ -90,7 +90,11 @@ function Practice:BindEvent()
|
||||||
end)
|
end)
|
||||||
--驭神按钮
|
--驭神按钮
|
||||||
Util.AddClick(self.fourQuadrantBtn, function()
|
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)
|
end)
|
||||||
Util.AddClick(self.textBtn, function()
|
Util.AddClick(self.textBtn, function()
|
||||||
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
||||||
|
@ -306,6 +310,8 @@ end
|
||||||
function Practice:RefreshBtn()
|
function Practice:RefreshBtn()
|
||||||
--神印按钮筑基期后开启
|
--神印按钮筑基期后开启
|
||||||
Util.SetGray(self.imprintBtn,PracticeManager.PracticeBigLevel < 2)
|
Util.SetGray(self.imprintBtn,PracticeManager.PracticeBigLevel < 2)
|
||||||
|
Util.SetGray(self.fourQuadrantBtn,PlayerManager.level < globalSystemConfig.OpenRules[2])
|
||||||
|
|
||||||
self.noOpenTip:SetActive(false)
|
self.noOpenTip:SetActive(false)
|
||||||
if XinXianConfig[PracticeManager.PracticeLevel + 1] then
|
if XinXianConfig[PracticeManager.PracticeLevel + 1] then
|
||||||
self.button:SetActive(true)
|
self.button:SetActive(true)
|
||||||
|
|
Loading…
Reference in New Issue