神将天赋字号颜色

onepiece_demo_arena
xiejun 2023-10-27 20:48:34 +08:00
parent 44e3f87d2c
commit cd9a898c46
1 changed files with 7 additions and 4 deletions

View File

@ -114,17 +114,17 @@ function RoleTalentPopup:GetTalentDataShow()
LogError("upstarid=="..upStarId.." curupstarid=="..curUpStarId)
if upStarId >= curUpStarId then
if upStarSkillDataList[curUpStarId] then
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str = GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .. "<color=#00F800>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str = "<color=#F78A5B>".. GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .."</color>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc),isHide=true}
else
openNum=openNum+1
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#6a4444>"..GetLanguageStrById(titleStr).."</color>".."<color=#FFFFFF>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#F78A5B>"..GetLanguageStrById(titleStr).."</color>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc),isHide=true}
end
else
if upStarSkillDataList[curUpStarId] then
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str =GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .. "<color=#B9AC97>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str =GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .. "<color=#B9AC97>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>",isHide=false}
else
openNum=openNum+1
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#6a4444>"..GetLanguageStrById(titleStr).."</color>".."<color=#FFFFFF>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#6a4444>"..GetLanguageStrById(titleStr).."</color>".."<color=#FFFFFF>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>",isHide=false}
end
end
end
@ -181,6 +181,7 @@ function RoleTalentPopup:GetTalentDataShow()
local go = self.upStarSkillGoList[i]
go.gameObject:SetActive(true)
local flyImg= Util.GetGameObject(go, "flyImg")
local mask= Util.GetGameObject(go, "mask")
local kongStr = ""
if passiveSkillLogicConfig[upStarSkillDataList2[i].passiveSkillId].Judge == 1 then
kongStr = Language[11835]
@ -192,9 +193,11 @@ function RoleTalentPopup:GetTalentDataShow()
kongStr =""
flyImg.gameObject:SetActive(false)
end
-- mask:SetActive(not upStarSkillDataList2[i].isHide)
-- Util.GetGameObject(go.transform, "Image"):SetActive(passiveSkillLogicConfig[upStarSkillDataList2[i].passiveSkillId].Judge == 1)
-- Util.GetGameObject(go.transform, "Image"):SetActive(false)
go:GetComponent("Text").text = kongStr .. upStarSkillDataList2[i].str
--Util.GetGameObject(go,"mask/upText"):GetComponent("Text").text = kongStr .. upStarSkillDataList2[i].str
end
end