[图鉴]=====图鉴详情修改提交

dev_chengFeng
wangzhenxing 2022-01-15 14:32:55 +08:00
parent bca67f4fd6
commit e8f8f5ca59
5 changed files with 9 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -137,10 +137,12 @@ function HandBookRoleInfoLayout:OnShowHeroData(_starType,star,_lv)
bg.sprite=this.spLoader:LoadSprite("r_hero_jinengmoren")
end
Util.GetGameObject(passObj,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SkillIconType[aaa])
Util.GetGameObject(passObj,"SkillTypeImage"):GetComponent("Image"):SetNativeSize()
local OpenPassiveSkillRules = star >= HeroManager.awakeNextStarIndex and heroConFigData.Awaken or heroConFigData.OpenPassiveSkillRules
local openlists,compoundOpenNum,compoundNum = HeroManager.GetAllPassiveSkillIds(heroConFigData,breakId,upStarId)
Util.GetGameObject(passObj,"Text"):GetComponent("Text").text = #openlists - compoundOpenNum .."/"..#OpenPassiveSkillRules - compoundNum
Util.AddOnceClick(Util.GetGameObject(passObj,"s"),function()
UIManager.ClosePanel(UIName.SkillInfoPopup)
if star==11 then
UIManager.OpenPanel(UIName.RoleAwakeTalentPopup,heroConFigData)
else
@ -148,14 +150,16 @@ function HandBookRoleInfoLayout:OnShowHeroData(_starType,star,_lv)
end
end)
end
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.shenhun) and heroConFigData.IsSoulOpen == 1 and star > 10 then
if heroConFigData.IsSoulOpen == 1 and star > 10 then
btnCount=btnCount+1
local passObj=Util.GetGameObject(self.skillGrid,"sBg"..len+2)--self.skillGrid.transform:GetChild(len+1).gameObject
passObj:SetActive(true)
Util.GetGameObject(passObj,"s"):GetComponent("Image").sprite=this.spLoader:LoadSprite("r_tongyong_shenhun_icon")
Util.GetGameObject(passObj,"s/Text"):SetActive(false)
Util.GetGameObject(passObj,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SkillIconType[8])
Util.GetGameObject(passObj,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SkillIconType[9])
Util.GetGameObject(passObj,"SkillTypeImage"):GetComponent("Image"):SetNativeSize()
Util.AddOnceClick(Util.GetGameObject(passObj,"s"),function()
UIManager.ClosePanel(UIName.SkillInfoPopup)
UIManager.OpenPanel(UIName.RoleGodSoulLayout,heroConFigData,star)
end)
end
@ -182,6 +186,7 @@ function HandBookRoleInfoLayout:OnShowHeroData(_starType,star,_lv)
else
Util.GetGameObject(go.transform,"SkillTypeImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetSkillType(skillList[i]))
end
Util.GetGameObject(go.transform,"SkillTypeImage"):GetComponent("Image"):SetNativeSize()
local di=Util.GetGameObject(go.transform,"pro"):GetComponent("Image")
local diTxt=Util.GetGameObject(go.transform,"pro/Text"):GetComponent("Text")
if skillList[i].skillConfig.Skilltips and skillList[i].skillConfig.Skilltips > 0 then
@ -204,7 +209,7 @@ function HandBookRoleInfoLayout:OnShowHeroData(_starType,star,_lv)
skillData.skillConfig = skillList[i].skillConfig
local maxLv= HeroManager.GetHeroSkillMaxLevel(heroConFigData.Id,skillData.skillConfig.Type)
if index<len then
if index~=3 then
if Game.GlobalEvent:HasEvent(GameEvent.UI.OnClose, triggerCallBack) then
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnClose, triggerCallBack)
end
@ -219,6 +224,7 @@ function HandBookRoleInfoLayout:OnShowHeroData(_starType,star,_lv)
end
Game.GlobalEvent:AddEvent(GameEvent.UI.OnClose, triggerCallBack)
else
UIManager.ClosePanel(UIName.SkillInfoPopup)
UIManager.OpenPanel(UIName.TalismanInfoPopup,heroConFigData,1,1)
end