|
|
|
@ -5,6 +5,8 @@ this.skillConfig=ConfigManager.GetConfig(ConfigName.SkillConfig)
|
|
|
|
|
local passiveSkillConfig=ConfigManager.GetConfig(ConfigName.PassiveSkillConfig)
|
|
|
|
|
local orginLayer = 20
|
|
|
|
|
local callBack = nil
|
|
|
|
|
local heroRankupConfig = ConfigManager.GetConfig(ConfigName.HeroRankupConfig)
|
|
|
|
|
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
|
|
|
|
|
--初始化组件(用于子类重写)
|
|
|
|
|
function RoleUpStarSuccessPanel:InitComponent()
|
|
|
|
|
|
|
|
|
@ -25,28 +27,34 @@ function RoleUpStarSuccessPanel:InitComponent()
|
|
|
|
|
-- this.posImage=Util.GetGameObject(self.transform,"Pos/PosImage"):GetComponent("Image")
|
|
|
|
|
this.posText=Util.GetGameObject(self.transform,"Pos/PosText"):GetComponent("Text")
|
|
|
|
|
|
|
|
|
|
this.upLvMaskPanleProAtk=Util.GetGameObject(self.transform,"proInfo/curPros/mainPro/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProHp=Util.GetGameObject(self.transform,"proInfo/curPros/otherPro1/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProPhyDef=Util.GetGameObject(self.transform,"proInfo/curPros/otherPro2/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProMagDef=Util.GetGameObject(self.transform,"proInfo/curPros/otherPro3/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProSpeed=Util.GetGameObject(self.transform,"proInfo/curPros/otherPro4/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProAtk=Util.GetGameObject(self.transform,"proInfo/nextPros/mainPro/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProHp=Util.GetGameObject(self.transform,"proInfo/nextPros/otherPro1/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProPhyDef=Util.GetGameObject(self.transform,"proInfo/nextPros/otherPro2/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProMagDef=Util.GetGameObject(self.transform,"proInfo/nextPros/otherPro3/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProSpeed=Util.GetGameObject(self.transform,"proInfo/nextPros/otherPro4/curProVale"):GetComponent("Text")
|
|
|
|
|
this.s1=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1")
|
|
|
|
|
this.s1MiddleImage=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1/Image (2)")
|
|
|
|
|
this.s1nextSkill=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1/nextSkill")
|
|
|
|
|
this.upLvMaskPanleProAtk=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/mainPro/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProHp=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/otherPro1/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProPhyDef=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/otherPro2/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProMagDef=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/otherPro3/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleProSpeed=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/otherPro4/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProAtk=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/mainPro/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProHp=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/otherPro1/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProPhyDef=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/otherPro2/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProMagDef=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/otherPro3/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvMaskPanleNextProSpeed=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/otherPro4/curProVale"):GetComponent("Text")
|
|
|
|
|
this.upLvShowGoText=Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/Text"):GetComponent("Text")
|
|
|
|
|
|
|
|
|
|
this.s2=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2")
|
|
|
|
|
this.s2MiddleImage=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2/Image (2)")
|
|
|
|
|
this.s2nextSkill=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2/nextSkill")
|
|
|
|
|
this.talentInfoText=Util.GetGameObject(self.transform,"proInfo/GameObject/talentInfo/Text"):GetComponent("Text")
|
|
|
|
|
this.curTalentVale=Util.GetGameObject(self.transform,"proInfo/GameObject/talentInfo/curTalentVale"):GetComponent("Text")
|
|
|
|
|
this.talentInfoShowGo=Util.GetGameObject(self.transform,"proInfo/GameObject/talentInfo")
|
|
|
|
|
|
|
|
|
|
-- this.s1=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1")
|
|
|
|
|
-- this.s1MiddleImage=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1/Image (2)")
|
|
|
|
|
-- this.s1nextSkill=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo1/nextSkill")
|
|
|
|
|
|
|
|
|
|
-- this.s2=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2")
|
|
|
|
|
-- this.s2MiddleImage=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2/Image (2)")
|
|
|
|
|
-- this.s2nextSkill=Util.GetGameObject(self.transform,"proInfo/skillGrid/skillInfo2/nextSkill")
|
|
|
|
|
this.lvEndInfo=Util.GetGameObject(self.transform, "proInfo/lvEndText"):GetComponent("Text")
|
|
|
|
|
this.UI_Effect_choukaSSR = Util.GetGameObject(self.transform, "UI_Effect_chouka_SSR")
|
|
|
|
|
this.UI_Effect_choukaSR = Util.GetGameObject(self.transform, "UI_Effect_chouka_SR")
|
|
|
|
|
this.UI_Effect_choukaR = Util.GetGameObject(self.transform, "UI_Effect_chouka_R")
|
|
|
|
|
this.skillTiShi = Util.GetGameObject(self.transform,"proInfo/skillTiShi"):GetComponent("Text")
|
|
|
|
|
-- this.skillTiShi = Util.GetGameObject(self.transform,"proInfo/skillTiShi"):GetComponent("Text")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--绑定事件(用于子类重写)
|
|
|
|
@ -81,8 +89,10 @@ end
|
|
|
|
|
--界面打开时调用(用于子类重写)
|
|
|
|
|
function RoleUpStarSuccessPanel:OnOpen(...)
|
|
|
|
|
|
|
|
|
|
Util.GetGameObject(self.transform,"proInfo/curPros/mainPro/curProName"):GetComponent("Text").text = Language[11873]
|
|
|
|
|
Util.GetGameObject(self.transform,"proInfo/nextPros/mainPro/curProName"):GetComponent("Text").text = Language[11873]
|
|
|
|
|
Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/mainPro/curProName"):GetComponent("Text").text = Language[11873]
|
|
|
|
|
Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/mainPro/curProName"):GetComponent("Text").text = Language[11873]
|
|
|
|
|
this.upLvShowGoText.text = Language[12281]
|
|
|
|
|
|
|
|
|
|
local args = {...}
|
|
|
|
|
local curHeroData=args[1]
|
|
|
|
|
local nextHeroUpStarId=args[2]
|
|
|
|
@ -133,113 +143,143 @@ function RoleUpStarSuccessPanel:OnOpen(...)
|
|
|
|
|
this.upLvMaskPanleNextProPhyDef.text=curLvAllAddProVal[HeroProType.PhysicalDefence]
|
|
|
|
|
this.upLvMaskPanleNextProMagDef.text=curLvAllAddProVal[HeroProType.MagicDefence]
|
|
|
|
|
this.upLvMaskPanleNextProSpeed.text= curLvAllAddProVal[HeroProType.Speed]
|
|
|
|
|
|
|
|
|
|
--天赋2#7#127107
|
|
|
|
|
LogPink("curHeroData.upStarId "..nextHeroUpStarId)
|
|
|
|
|
local talentSKillsConFig = ConfigManager.GetConfigData(ConfigName.HeroConfig,curHeroData.id).OpenPassiveSkillRules
|
|
|
|
|
local upStarSkillDataList = {}
|
|
|
|
|
for i = 1, #talentSKillsConFig do
|
|
|
|
|
if talentSKillsConFig[i][1] == 2 then--升星
|
|
|
|
|
LogPink("talentSKillsConFig[i][2] "..talentSKillsConFig[i][2])
|
|
|
|
|
if nextHeroUpStarId == talentSKillsConFig[i][2] then
|
|
|
|
|
local _titleStr = NumToSimplenessFont[heroRankupConfig[nextHeroUpStarId].Phase[2]] .. Language[11865]
|
|
|
|
|
local _passiveSkillId = passiveSkillConfig[talentSKillsConFig[i][3]].Id
|
|
|
|
|
if upStarSkillDataList[nextHeroUpStarId] then
|
|
|
|
|
upStarSkillDataList[nextHeroUpStarId] = {titleStr = _titleStr,str = upStarSkillDataList[nextHeroUpStarId].str .. " "..passiveSkillConfig[talentSKillsConFig[i][3]].Desc}
|
|
|
|
|
else
|
|
|
|
|
upStarSkillDataList[nextHeroUpStarId] = {titleStr = _titleStr,str = passiveSkillConfig[talentSKillsConFig[i][3]].Desc}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
this.curTalentVale=Util.GetGameObject(self.transform,"proInfo/GameObject/talentInfo/curTalentVale"):GetComponent("Text")
|
|
|
|
|
this.talentInfoShowGo=Util.GetGameObject(self.transform,"proInfo/GameObject/talentInfo")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if upStarSkillDataList and LengthOfTable(upStarSkillDataList) > 0 then
|
|
|
|
|
this.talentInfoShowGo:SetActive(true)
|
|
|
|
|
this.talentInfoText.text = Language[12282]
|
|
|
|
|
this.curTalentVale.text = upStarSkillDataList[nextHeroUpStarId].str
|
|
|
|
|
else
|
|
|
|
|
this.talentInfoShowGo:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
--技能
|
|
|
|
|
this.skillTiShi.text = Language[11874]
|
|
|
|
|
local upskillIdList={}
|
|
|
|
|
local upIndex=1
|
|
|
|
|
local curIndex=1
|
|
|
|
|
local curskillIdList={}
|
|
|
|
|
if curHeroData.heroConfig.OpenSkillRules then
|
|
|
|
|
for i = 1, #curHeroData.heroConfig.OpenSkillRules do
|
|
|
|
|
if curHeroData.heroConfig.OpenSkillRules[i][1]==curHeroData.star then
|
|
|
|
|
local skilldata={}
|
|
|
|
|
Log(Language[11875]..curHeroData.heroConfig.OpenSkillRules[i][2])
|
|
|
|
|
skilldata.skillId=curHeroData.heroConfig.OpenSkillRules[i][2]
|
|
|
|
|
skilldata.skillConfig=this.skillConfig[curHeroData.heroConfig.OpenSkillRules[i][2]]
|
|
|
|
|
upskillIdList[upIndex]=skilldata
|
|
|
|
|
upIndex=upIndex+1
|
|
|
|
|
end
|
|
|
|
|
if curHeroData.heroConfig.OpenSkillRules[i][1]==curHeroData.star+1 then
|
|
|
|
|
local skilldata={}
|
|
|
|
|
Log(Language[11876]..curHeroData.heroConfig.OpenSkillRules[i][2])
|
|
|
|
|
skilldata.skillId=curHeroData.heroConfig.OpenSkillRules[i][2]
|
|
|
|
|
skilldata.skillConfig=this.skillConfig[curHeroData.heroConfig.OpenSkillRules[i][2]]
|
|
|
|
|
curskillIdList[curIndex]=skilldata
|
|
|
|
|
curIndex=curIndex+1
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
if curHeroData.heroConfig.OpenPassiveSkillRules then
|
|
|
|
|
for i = 1, #curHeroData.heroConfig.OpenPassiveSkillRules do
|
|
|
|
|
if curHeroData.heroConfig.OpenPassiveSkillRules[i][1]==curHeroData.star then
|
|
|
|
|
local skilldata={}
|
|
|
|
|
Log(Language[11877]..curHeroData.heroConfig.OpenPassiveSkillRules[i][2])
|
|
|
|
|
skilldata.skillId=curHeroData.heroConfig.OpenPassiveSkillRules[i][2]
|
|
|
|
|
skilldata.skillConfig=passiveSkillConfig[curHeroData.heroConfig.OpenPassiveSkillRules[i][2]]
|
|
|
|
|
upskillIdList[upIndex]=skilldata
|
|
|
|
|
upIndex=upIndex+1
|
|
|
|
|
end
|
|
|
|
|
if curHeroData.heroConfig.OpenPassiveSkillRules[i][1]==curHeroData.star+1 then
|
|
|
|
|
local skilldata={}
|
|
|
|
|
Log(Language[11878]..curHeroData.heroConfig.OpenPassiveSkillRules[i][2])
|
|
|
|
|
skilldata.skillId=curHeroData.heroConfig.OpenPassiveSkillRules[i][2]
|
|
|
|
|
skilldata.skillConfig=passiveSkillConfig[curHeroData.heroConfig.OpenPassiveSkillRules[i][2]]
|
|
|
|
|
curskillIdList[curIndex]=skilldata
|
|
|
|
|
curIndex=curIndex+1
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
if LengthOfTable(upskillIdList)>=1 then
|
|
|
|
|
if (upskillIdList[1].skillId % 10)<(curskillIdList[1].skillId % 10) then
|
|
|
|
|
if upskillIdList[1].skillConfig and upskillIdList[1].skillConfig.Name then
|
|
|
|
|
this.s1:SetActive(true)
|
|
|
|
|
this.s1MiddleImage:SetActive(true)
|
|
|
|
|
this.s1nextSkill:SetActive(true)
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(upskillIdList[1].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..upskillIdList[1].skillId % 10
|
|
|
|
|
Util.GetGameObject(this.s1,"nextSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[1].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s1,"nextSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[1].skillId % 10
|
|
|
|
|
else
|
|
|
|
|
this.s1:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
this.s1:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
this.s1:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
if LengthOfTable(upskillIdList)>=2 then
|
|
|
|
|
if (upskillIdList[2].skillId % 10)<(curskillIdList[2].skillId % 10) then
|
|
|
|
|
if upskillIdList[2].skillConfig and upskillIdList[2].skillConfig.Name then
|
|
|
|
|
Util.GetGameObject(this.s2,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(upskillIdList[2].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s2,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..upskillIdList[2].skillId % 10
|
|
|
|
|
Util.GetGameObject(this.s2,"nextSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[2].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s2,"nextSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[2].skillId % 10
|
|
|
|
|
this.s2MiddleImage:SetActive(true)
|
|
|
|
|
this.s2nextSkill:SetActive(true)
|
|
|
|
|
this.s2:SetActive(true)
|
|
|
|
|
else
|
|
|
|
|
this.s2:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
this.s2:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
this.s2:SetActive(false)
|
|
|
|
|
end
|
|
|
|
|
-- this.skillTiShi.text = Language[11874]
|
|
|
|
|
-- local upskillIdList={}
|
|
|
|
|
-- local upIndex=1
|
|
|
|
|
-- local curIndex=1
|
|
|
|
|
-- local curskillIdList={}
|
|
|
|
|
-- if curHeroData.heroConfig.OpenSkillRules then
|
|
|
|
|
-- for i = 1, #curHeroData.heroConfig.OpenSkillRules do
|
|
|
|
|
-- if curHeroData.heroConfig.OpenSkillRules[i][1]==curHeroData.star then
|
|
|
|
|
-- local skilldata={}
|
|
|
|
|
-- Log(Language[11875]..curHeroData.heroConfig.OpenSkillRules[i][2])
|
|
|
|
|
-- skilldata.skillId=curHeroData.heroConfig.OpenSkillRules[i][2]
|
|
|
|
|
-- skilldata.skillConfig=this.skillConfig[curHeroData.heroConfig.OpenSkillRules[i][2]]
|
|
|
|
|
-- upskillIdList[upIndex]=skilldata
|
|
|
|
|
-- upIndex=upIndex+1
|
|
|
|
|
-- end
|
|
|
|
|
-- if curHeroData.heroConfig.OpenSkillRules[i][1]==curHeroData.star+1 then
|
|
|
|
|
-- local skilldata={}
|
|
|
|
|
-- Log(Language[11876]..curHeroData.heroConfig.OpenSkillRules[i][2])
|
|
|
|
|
-- skilldata.skillId=curHeroData.heroConfig.OpenSkillRules[i][2]
|
|
|
|
|
-- skilldata.skillConfig=this.skillConfig[curHeroData.heroConfig.OpenSkillRules[i][2]]
|
|
|
|
|
-- curskillIdList[curIndex]=skilldata
|
|
|
|
|
-- curIndex=curIndex+1
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
|
|
|
|
-- if curHeroData.heroConfig.OpenPassiveSkillRules then
|
|
|
|
|
-- for i = 1, #curHeroData.heroConfig.OpenPassiveSkillRules do
|
|
|
|
|
-- if curHeroData.heroConfig.OpenPassiveSkillRules[i][1]==curHeroData.star then
|
|
|
|
|
-- local skilldata={}
|
|
|
|
|
-- Log(Language[11877]..curHeroData.heroConfig.OpenPassiveSkillRules[i][2])
|
|
|
|
|
-- skilldata.skillId=curHeroData.heroConfig.OpenPassiveSkillRules[i][2]
|
|
|
|
|
-- skilldata.skillConfig=passiveSkillConfig[curHeroData.heroConfig.OpenPassiveSkillRules[i][2]]
|
|
|
|
|
-- upskillIdList[upIndex]=skilldata
|
|
|
|
|
-- upIndex=upIndex+1
|
|
|
|
|
-- end
|
|
|
|
|
-- if curHeroData.heroConfig.OpenPassiveSkillRules[i][1]==curHeroData.star+1 then
|
|
|
|
|
-- local skilldata={}
|
|
|
|
|
-- Log(Language[11878]..curHeroData.heroConfig.OpenPassiveSkillRules[i][2])
|
|
|
|
|
-- skilldata.skillId=curHeroData.heroConfig.OpenPassiveSkillRules[i][2]
|
|
|
|
|
-- skilldata.skillConfig=passiveSkillConfig[curHeroData.heroConfig.OpenPassiveSkillRules[i][2]]
|
|
|
|
|
-- curskillIdList[curIndex]=skilldata
|
|
|
|
|
-- curIndex=curIndex+1
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
|
|
|
|
-- if LengthOfTable(upskillIdList)>=1 then
|
|
|
|
|
-- if (upskillIdList[1].skillId % 10)<(curskillIdList[1].skillId % 10) then
|
|
|
|
|
-- if upskillIdList[1].skillConfig and upskillIdList[1].skillConfig.Name then
|
|
|
|
|
-- this.s1:SetActive(true)
|
|
|
|
|
-- this.s1MiddleImage:SetActive(true)
|
|
|
|
|
-- this.s1nextSkill:SetActive(true)
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(upskillIdList[1].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..upskillIdList[1].skillId % 10
|
|
|
|
|
-- Util.GetGameObject(this.s1,"nextSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[1].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s1,"nextSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[1].skillId % 10
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s1:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s1:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s1:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
-- if LengthOfTable(upskillIdList)>=2 then
|
|
|
|
|
-- if (upskillIdList[2].skillId % 10)<(curskillIdList[2].skillId % 10) then
|
|
|
|
|
-- if upskillIdList[2].skillConfig and upskillIdList[2].skillConfig.Name then
|
|
|
|
|
-- Util.GetGameObject(this.s2,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(upskillIdList[2].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s2,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..upskillIdList[2].skillId % 10
|
|
|
|
|
-- Util.GetGameObject(this.s2,"nextSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[2].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s2,"nextSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[2].skillId % 10
|
|
|
|
|
-- this.s2MiddleImage:SetActive(true)
|
|
|
|
|
-- this.s2nextSkill:SetActive(true)
|
|
|
|
|
-- this.s2:SetActive(true)
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s2:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s2:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- this.s2:SetActive(false)
|
|
|
|
|
-- end
|
|
|
|
|
--是否有新开的技能
|
|
|
|
|
local openNewSkillCound =LengthOfTable(curskillIdList) - LengthOfTable(upskillIdList)
|
|
|
|
|
if openNewSkillCound == 1 then
|
|
|
|
|
this.skillTiShi.text = Language[11879]
|
|
|
|
|
this.s1:SetActive(true)
|
|
|
|
|
this.s1MiddleImage:SetActive(false)
|
|
|
|
|
this.s1nextSkill:SetActive(false)
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[LengthOfTable(curskillIdList)].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[LengthOfTable(curskillIdList)].skillId % 10
|
|
|
|
|
elseif openNewSkillCound == 2 then
|
|
|
|
|
this.skillTiShi.text = Language[11879]
|
|
|
|
|
this.s1:SetActive(true)
|
|
|
|
|
this.s1MiddleImage:SetActive(false)
|
|
|
|
|
this.s1nextSkill:SetActive(false)
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[1].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[1].skillId % 10
|
|
|
|
|
this.s2:SetActive(true)
|
|
|
|
|
this.s2MiddleImage:SetActive(false)
|
|
|
|
|
this.s2nextSkill:SetActive(false)
|
|
|
|
|
Util.GetGameObject(this.s2,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[2].skillConfig.Icon))
|
|
|
|
|
Util.GetGameObject(this.s2,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[2].skillId % 10
|
|
|
|
|
end
|
|
|
|
|
Log("curHeroData.star+1 "..curHeroData.star+1)
|
|
|
|
|
-- local openNewSkillCound =LengthOfTable(curskillIdList) - LengthOfTable(upskillIdList)
|
|
|
|
|
-- if openNewSkillCound == 1 then
|
|
|
|
|
-- this.skillTiShi.text = Language[11879]
|
|
|
|
|
-- this.s1:SetActive(true)
|
|
|
|
|
-- this.s1MiddleImage:SetActive(false)
|
|
|
|
|
-- this.s1nextSkill:SetActive(false)
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[LengthOfTable(curskillIdList)].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[LengthOfTable(curskillIdList)].skillId % 10
|
|
|
|
|
-- elseif openNewSkillCound == 2 then
|
|
|
|
|
-- this.skillTiShi.text = Language[11879]
|
|
|
|
|
-- this.s1:SetActive(true)
|
|
|
|
|
-- this.s1MiddleImage:SetActive(false)
|
|
|
|
|
-- this.s1nextSkill:SetActive(false)
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[1].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s1,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[1].skillId % 10
|
|
|
|
|
-- this.s2:SetActive(true)
|
|
|
|
|
-- this.s2MiddleImage:SetActive(false)
|
|
|
|
|
-- this.s2nextSkill:SetActive(false)
|
|
|
|
|
-- Util.GetGameObject(this.s2,"curSkill/icon"):GetComponent("Image").sprite=Util.LoadSprite(GetResourcePath(curskillIdList[2].skillConfig.Icon))
|
|
|
|
|
-- Util.GetGameObject(this.s2,"curSkill/skillLv"):GetComponent("Text").text=Language[10470]..curskillIdList[2].skillId % 10
|
|
|
|
|
-- end
|
|
|
|
|
-- Log("curHeroData.star+1 "..curHeroData.star+1)
|
|
|
|
|
if curHeroData.heroConfig.Quality == 5 and curHeroData.heroConfig.Natural >= 13 then
|
|
|
|
|
if curHeroData.star+1 >= 5 and curHeroData.star+1 < 15 then
|
|
|
|
|
HeroManager.DetectionOpenFiveStarActivity(curHeroData.star+1)
|
|
|
|
|