Branch_DNA
PC-202302260912\Administrator 2025-05-07 15:44:38 +08:00
parent 42756a9522
commit 60f8a5e568
1 changed files with 6 additions and 6 deletions

View File

@ -204,7 +204,7 @@ function PartsMainPopup.SetUnlockUI()
elseif PassiveSkillLogicConfig[id] then--被动
skillLogic = PassiveSkillLogicConfig[id]
end
this.ItemGrid:SetActive(skillLogic.Level < 10)
this.ItemGrid:SetActive(skillLogic.Level < 8)
Util.GetGameObject(this.Unlock, "Bg/icon"):GetComponent("Image").sprite = Util.LoadSprite(GetResourcePath(skillList[curPos].skillConfig.Icon))
Util.GetGameObject(this.Unlock,"Bg/lv"):GetComponent("Text").text = skillLogic.Level
@ -248,10 +248,10 @@ function PartsMainPopup.SetCastGodUI()
local max = Util.GetGameObject(this.Max, "max")
local desc = Util.GetGameObject(this.CastGod, "effect/Text"):GetComponent("Text")
this.Max:SetActive(skillLogic.Level >= 10)
this.CastGod:SetActive(skillLogic.Level < 10)
this.ItemGrid:SetActive(skillLogic.Level < 10)
if skillLogic.Level >= 10 then
this.Max:SetActive(skillLogic.Level >= 8)
this.CastGod:SetActive(skillLogic.Level < 8)
this.ItemGrid:SetActive(skillLogic.Level < 8)
if skillLogic.Level >= 8 then
this.SetSkill(max, skillId, _isPassivity)
else
local name = this.SetSkill(cur, skillId, _isPassivity)
@ -317,7 +317,7 @@ function this.SetSkill(go, skillid, isPassivity)
local skillData = {}
skillData.skillId = skillid
skillData.skillConfig = skillConfig
UIManager.OpenPanel(UIName.SkillInfoPopup, skillData, 1, 10, maxLv, curPos, skillLogicInner.Level)
UIManager.OpenPanel(UIName.SkillInfoPopup, skillData, 1, 8, maxLv, curPos, skillLogicInner.Level)
end)
return skillConfig.Name