【修行】神印按钮条件

dev_chengFeng
ZhangBiao 2021-05-24 13:48:07 +08:00
parent d9b465c7cf
commit 04140ca1f2
2 changed files with 8 additions and 2 deletions

View File

@ -1649,7 +1649,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -107, y: -100}
m_AnchoredPosition: {x: -107, y: -145}
m_SizeDelta: {x: 129, y: 130}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5983553501615161877

View File

@ -63,7 +63,11 @@ function Practice:BindEvent()
UIManager.OpenPanel(UIName.RoleProInfoPopup,PracticeManager.GetCurAllGetAddForShow(),nil,false,nil)
end)
Util.AddClick(self.imprintBtn, function()
UIManager.OpenPanel(UIName.PracticeImprintPanel)
if PracticeManager.PracticeBigLevel > 1 then
UIManager.OpenPanel(UIName.PracticeImprintPanel)
else
PopupTipPanel.ShowTip("到达筑基期后解锁!")
end
end)
Util.AddClick(self.textBtn, function()
Log("打开山河社稷图")
@ -202,6 +206,8 @@ function Practice:RefreshLines()
end
function Practice:RefreshBtn()
--神印按钮筑基期后开启
Util.SetGray(self.imprintBtn,PracticeManager.PracticeBigLevel < 2)
if XinXianConfig[PracticeManager.PracticeLevel + 1] then
self.button:SetActive(true)
if self.curLevelConfig.LevelUpCost then--如果下级消耗不为空则为突破阶段