关闭特训
parent
a101109240
commit
aa2178d9e2
|
|
@ -254,8 +254,11 @@ function RoleInfoPopup:OnShow()
|
||||||
this.GodPrintInfo()
|
this.GodPrintInfo()
|
||||||
this.SkillInfo()
|
this.SkillInfo()
|
||||||
local t=ConfigManager.TryGetAllConfigsDataByKey(ConfigName.Train,"HeroID",curHeroData.id)
|
local t=ConfigManager.TryGetAllConfigsDataByKey(ConfigName.Train,"HeroID",curHeroData.id)
|
||||||
this.trainBtn:SetActive( #t~=0)
|
--this.trainBtn:SetActive( #t~=0)
|
||||||
this.trainlevel:SetActive( #t~=0)
|
--this.trainlevel:SetActive( #t~=0)
|
||||||
|
--关闭特训
|
||||||
|
this.trainBtn:SetActive(false)
|
||||||
|
this.trainlevel:SetActive(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
|
|
@ -620,8 +623,9 @@ function this.SkillInfo()
|
||||||
go:SetActive(true)
|
go:SetActive(true)
|
||||||
Util.GetGameObject(go.transform,"Icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(skillList[i].skillConfig.Icon))
|
Util.GetGameObject(go.transform,"Icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(skillList[i].skillConfig.Icon))
|
||||||
|
|
||||||
local typeImg=Util.GetGameObject(go.transform,"SkillTypeImage")
|
local typeImg=Util.GetGameObject(go.transform,"SkillTypeImage/Text")
|
||||||
typeImg:GetComponent("Image").sprite=this.spLoader:LoadSprite(GetSkillType(skillList[i]))
|
--typeImg:GetComponent("Image").sprite=this.spLoader:LoadSprite(GetSkillType(skillList[i]))
|
||||||
|
typeImg:GetComponent("Text").text= GetSkillTypeDes(skillList[i])
|
||||||
local sText = Util.GetGameObject(go.transform,"Text"):GetComponent("Text")
|
local sText = Util.GetGameObject(go.transform,"Text"):GetComponent("Text")
|
||||||
sText.text=GetLanguageStrById(skillList[i].skillConfig.Name)
|
sText.text=GetLanguageStrById(skillList[i].skillConfig.Name)
|
||||||
sText.fontSize = GetCurLanguage() ~= 2 and 30 or 25
|
sText.fontSize = GetCurLanguage() ~= 2 and 30 or 25
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,9 @@ function this:OnOpen(...)
|
||||||
nextCfg=nil --args[6]
|
nextCfg=nil --args[6]
|
||||||
local soulLv=args[7]
|
local soulLv=args[7]
|
||||||
local isFaBao = args[8]
|
local isFaBao = args[8]
|
||||||
local trainingDta=args[9]
|
--local trainingDta=args[9]
|
||||||
|
--关闭特训
|
||||||
|
local trainingDta=nil
|
||||||
if openType == 1 then
|
if openType == 1 then
|
||||||
this.content.anchoredPosition = Vector2.New(0, 0)
|
this.content.anchoredPosition = Vector2.New(0, 0)
|
||||||
elseif openType == 2 then
|
elseif openType == 2 then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue