Compare commits

...

3 Commits

2 changed files with 255 additions and 113 deletions

View File

@ -9782,7 +9782,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224155699271065372}
m_RootOrder: 9
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@ -14776,7 +14776,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224155699271065372}
m_RootOrder: 6
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -14823,7 +14823,7 @@ RectTransform:
- {fileID: 5640133194694820591}
- {fileID: 224138692209109768}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 8
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
@ -33923,7 +33923,7 @@ RectTransform:
- {fileID: 5316518388352579404}
- {fileID: 3697335126414512641}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 5
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
@ -48357,6 +48357,8 @@ GameObject:
- component: {fileID: 224699293317381866}
- component: {fileID: 222963429865802442}
- component: {fileID: 114198918969262224}
- component: {fileID: 6436385094366134390}
- component: {fileID: 8288565361756634550}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
@ -48377,7 +48379,7 @@ RectTransform:
m_Children:
- {fileID: 2370497562134835492}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 4
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@ -48421,6 +48423,44 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!223 &6436385094366134390
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1814381004581320}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 1
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &8288565361756634550
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1814381004581320}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!1 &1843180450707438
GameObject:
m_ObjectHideFlags: 0
@ -48453,9 +48493,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224573688326677760}
- {fileID: 7139743952638162826}
- {fileID: 1599732756550080755}
- {fileID: 5737685884436105008}
- {fileID: 8788851962551787864}
- {fileID: 224699293317381866}
- {fileID: 224508964693967280}
- {fileID: 224746701553232644}
@ -48713,7 +48751,7 @@ Canvas:
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverrideSorting: 1
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
@ -73343,8 +73381,8 @@ RectTransform:
m_Children:
- {fileID: 3324275339260574596}
- {fileID: 978533065907645595}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 2
m_Father: {fileID: 8788851962551787864}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@ -73536,7 +73574,7 @@ RectTransform:
- {fileID: 3606876427733880863}
- {fileID: 4622737741211327210}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 7
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
@ -107812,8 +107850,8 @@ RectTransform:
m_Children:
- {fileID: 1825768316514678780}
- {fileID: 6140636564647324393}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 3
m_Father: {fileID: 8788851962551787864}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@ -107856,7 +107894,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 131.47493, y: 0}
m_AnchoredPosition: {x: 132.07, y: 0}
m_SizeDelta: {x: 0, y: 100.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2962123581231230106
@ -137481,7 +137519,7 @@ RectTransform:
- {fileID: 3532512684372521938}
- {fileID: 3367854974241902415}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 10
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -137703,8 +137741,8 @@ RectTransform:
- {fileID: 4535094099909992}
- {fileID: 224515021969299170}
- {fileID: 4170656024422592}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 1
m_Father: {fileID: 8788851962551787864}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@ -142695,6 +142733,84 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!1 &7828426170048873837
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8788851962551787864}
- component: {fileID: 6510216698056280910}
- component: {fileID: 2386301677472401988}
m_Layer: 5
m_Name: effects
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8788851962551787864
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7828426170048873837}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7139743952638162826}
- {fileID: 1599732756550080755}
- {fileID: 5737685884436105008}
m_Father: {fileID: 224155699271065372}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &6510216698056280910
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7828426170048873837}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 1
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &2386301677472401988
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7828426170048873837}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!1 &7915726454264658020
GameObject:
m_ObjectHideFlags: 0

View File

@ -1,48 +1,61 @@
require("Base/BasePanel")
RoleUpStarSuccessPanel = Inherit(BasePanel)
local this=RoleUpStarSuccessPanel
this.skillConfig=ConfigManager.GetConfig(ConfigName.SkillConfig)
local passiveSkillConfig=ConfigManager.GetConfig(ConfigName.PassiveSkillConfig)
local this = RoleUpStarSuccessPanel
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()
this.spLoader = SpriteLoader.New()
orginLayer = 20
this.BtnBack = Util.GetGameObject(self.transform, "backBtn")
this.mask = Util.GetGameObject(self.transform, "mask")
this.live2dRoot=Util.GetGameObject(self.transform,"live2dRoot")
this.imageMask = Util.GetGameObject(self.transform, "Image")
this.live2dRoot = Util.GetGameObject(self.transform, "live2dRoot")
this.heroName = Util.GetGameObject(self.transform, "heroInfo/nameAndPossLayout/heroName"):GetComponent("Text")
this.profession = Util.GetGameObject(self.transform, "Pos/PosImage"):GetComponent("Image")
this.proImage = Util.GetGameObject(self.transform, "heroInfo/nameAndPossLayout/proImage/proImage"):GetComponent("Image")
--this.posText = Util.GetGameObject(self.transform, "heroInfo/nameAndPossLayout/posText/posText"):GetComponent("Text")
this.proImage = Util.GetGameObject(self.transform, "heroInfo/nameAndPossLayout/proImage/proImage"):GetComponent(
"Image")
-- this.posText = Util.GetGameObject(self.transform, "heroInfo/nameAndPossLayout/posText/posText"):GetComponent("Text")
this.starGrid = Util.GetGameObject(self.transform, "heroInfo/sartAndLvLayout")
--this.qualityImage=Util.GetGameObject(self.transform,"quality"):GetComponent("Image")
--this.quality=Util.GetGameObject(self.transform,"quality/qualityText")
--this.doubleQuality=Util.GetGameObject(self.transform,"quality/qualityDoubleText")
this.posBgImage=Util.GetGameObject(self.transform,"Pos"):GetComponent("Image")
-- this.qualityImage=Util.GetGameObject(self.transform,"quality"):GetComponent("Image")
-- this.quality=Util.GetGameObject(self.transform,"quality/qualityText")
-- this.doubleQuality=Util.GetGameObject(self.transform,"quality/qualityDoubleText")
this.posBgImage = Util.GetGameObject(self.transform, "Pos"):GetComponent("Image")
-- this.posImage=Util.GetGameObject(self.transform,"Pos/PosImage"):GetComponent("Image")
this.posText=Util.GetGameObject(self.transform,"Pos/PosText"):GetComponent("Text")
this.posText = Util.GetGameObject(self.transform, "Pos/PosText"):GetComponent("Text")
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.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.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.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)")
@ -51,14 +64,15 @@ function RoleUpStarSuccessPanel:InitComponent()
-- 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.lvEndInfo = Util.GetGameObject(self.transform, "proInfo/lvEndText"):GetComponent("Text")
this.UI_Effect_choukaSSR = Util.GetGameObject(self.transform, "effects/UI_Effect_chouka_SSR")
this.UI_Effect_choukaSR = Util.GetGameObject(self.transform, "effects/UI_Effect_chouka_SR")
this.UI_Effect_choukaR = Util.GetGameObject(self.transform, "effects/UI_Effect_chouka_R")
this.effectRoot = Util.GetGameObject(self.transform, "effects")
-- this.skillTiShi = Util.GetGameObject(self.transform,"proInfo/skillTiShi"):GetComponent("Text")
end
--绑定事件(用于子类重写)
-- 绑定事件(用于子类重写)
function RoleUpStarSuccessPanel:BindEvent()
Util.AddClick(this.BtnBack, function()
@ -67,124 +81,136 @@ function RoleUpStarSuccessPanel:BindEvent()
end)
end
--添加事件监听(用于子类重写)
-- 添加事件监听(用于子类重写)
function RoleUpStarSuccessPanel:AddListener()
end
--移除事件监听(用于子类重写)
-- 移除事件监听(用于子类重写)
function RoleUpStarSuccessPanel:RemoveListener()
end
function RoleUpStarSuccessPanel:OnSortingOrderChange()
Util.AddParticleSortLayer(this.UI_Effect_choukaSSR, self.sortingOrder - orginLayer)
Util.AddParticleSortLayer(this.UI_Effect_choukaSR, self.sortingOrder - orginLayer)
Util.AddParticleSortLayer(this.UI_Effect_choukaR, self.sortingOrder - orginLayer)
this.mask:GetComponent("Canvas").overrideSorting = true
this.mask:GetComponent("Canvas").sortingOrder = self.sortingOrder - 30
Util.SetParticleSortLayer(this.starGrid,self.sortingOrder + 1)
this.imageMask:GetComponent("Canvas").overrideSorting = true
this.imageMask:GetComponent("Canvas").sortingOrder = self.sortingOrder - 30
this.effectRoot:GetComponent("Canvas").sortingOrder = self.sortingOrder - 20
Util.SetParticleSortLayer(this.starGrid, self.sortingOrder + 1)
orginLayer = self.sortingOrder
end
--界面打开时调用(用于子类重写)
-- 界面打开时调用(用于子类重写)
function RoleUpStarSuccessPanel:OnOpen(...)
Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/curPros/mainPro/curProName"):GetComponent("Text").text = Language[11838]
Util.GetGameObject(self.transform,"proInfo/GameObject/proInfo/nextPros/mainPro/curProName"):GetComponent("Text").text = Language[11838]
Util.GetGameObject(self.transform, "proInfo/GameObject/proInfo/curPros/mainPro/curProName"):GetComponent("Text")
.text = Language[11838]
Util.GetGameObject(self.transform, "proInfo/GameObject/proInfo/nextPros/mainPro/curProName"):GetComponent("Text")
.text = Language[11838]
this.upLvShowGoText.text = Language[11430]
local args = {...}
local curHeroData=args[1]
local nextHeroUpStarId=args[2]
local curHeroRankUpConfigOpenLevel=args[3]
local curHeroData = args[1]
local nextHeroUpStarId = args[2]
local curHeroRankUpConfigOpenLevel = args[3]
callBack = args[4]
--this.OnShowPanelData()
-- this.OnShowPanelData()
this.UI_Effect_choukaSSR:SetActive(curHeroData.heroConfig.Quality == 5)
this.UI_Effect_choukaSR:SetActive(curHeroData.heroConfig.Quality == 4)
this.UI_Effect_choukaR:SetActive(curHeroData.heroConfig.Quality == 3)
this.LiveName = curHeroData.painting
this.LiveGO = poolManager:LoadLive(this.LiveName, this.live2dRoot.transform,
Vector3.one * curHeroData.heroConfig.Scale, Vector3.New(curHeroData.heroConfig.Position[1],curHeroData.heroConfig.Position[2],0))
SetHeroStars(this.spLoader, this.starGrid, curHeroData.star+1,1,Vector2.New(60,60),-11,Vector2.New(0.5,0.5))
Util.SetParticleSortLayer(this.starGrid,self.sortingOrder + 1)
SetHEeroLiveToward(this.LiveGO,curHeroData.heroConfig.Toward)
Vector3.one * curHeroData.heroConfig.Scale, Vector3.New(curHeroData.heroConfig.Position[1],
curHeroData.heroConfig.Position[2], 0))
SetHeroStars(this.spLoader, this.starGrid, curHeroData.star + 1, 1, Vector2.New(60, 60), -11, Vector2.New(0.5, 0.5))
Util.SetParticleSortLayer(this.starGrid, self.sortingOrder + 1)
SetHEeroLiveToward(this.LiveGO, curHeroData.heroConfig.Toward)
this.profession.sprite = this.spLoader:LoadSprite(GetHeroPosStr(curHeroData.heroConfig.Profession))
this.proImage.sprite =this.spLoader:LoadSprite(GetProStrImageByProNum(curHeroData.changeProId))
this.proImage.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(curHeroData.changeProId))
-- LogPurple("curHeroData.heroConfig.profession"..curHeroData.heroConfig.Profession)
-- LogYellow(GetHeroPosStr(curHeroData.heroConfig.Profession))
-- this.proImage.sprite =this.spLoader:LoadSprite(GetHeroPosStr(curHeroData.heroConfig.Profession))
--this.posText.text = GetJobStrByJobNum(curHeroData.profession)
this.heroName.text =GetLanguageStrById(curHeroData.heroConfig.ReadingName)
--this.qualityImage.sprite=GetQuantityImage(this.spLoader, curHeroData.heroConfig.Natural)
--this.quality:SetActive(curHeroData.heroConfig.Natural < 10)
--this.doubleQuality:SetActive(curHeroData.heroConfig.Natural >= 10)
--this.quality:GetComponent("Text").text = curHeroData.heroConfig.Natural
--this.doubleQuality:GetComponent("Text").text = curHeroData.heroConfig.Natural
--定位描述相关
--this.posBgImage.sprite=this.spLoader:LoadSprite(GetHeroPosBgStr(curHeroData.heroConfig.Profession))
-- this.posText.text = GetJobStrByJobNum(curHeroData.profession)
this.heroName.text = GetLanguageStrById(curHeroData.heroConfig.ReadingName)
-- this.qualityImage.sprite=GetQuantityImage(this.spLoader, curHeroData.heroConfig.Natural)
-- this.quality:SetActive(curHeroData.heroConfig.Natural < 10)
-- this.doubleQuality:SetActive(curHeroData.heroConfig.Natural >= 10)
-- this.quality:GetComponent("Text").text = curHeroData.heroConfig.Natural
-- this.doubleQuality:GetComponent("Text").text = curHeroData.heroConfig.Natural
-- 定位描述相关
-- this.posBgImage.sprite=this.spLoader:LoadSprite(GetHeroPosBgStr(curHeroData.heroConfig.Profession))
-- this.posImage.sprite=this.spLoader:LoadSprite(GetHeroPosStr(curHeroData.heroConfig.Profession))
this.posText.text=GetLanguageStrById(curHeroData.heroConfig.HeroLocation)
SetTextVerTial(this.posText.gameObject,Vector3.New(64,0,0),"MiddleLeft")
this.lvEndInfo.text=string.format(Language[11791],curHeroRankUpConfigOpenLevel)
this.posText.text = GetLanguageStrById(curHeroData.heroConfig.HeroLocation)
SetTextVerTial(this.posText.gameObject, Vector3.New(64, 0, 0), "MiddleLeft")
this.lvEndInfo.text = string.format(Language[11791], curHeroRankUpConfigOpenLevel)
--计算面板属性old
local oldLvAllAddProVal= HeroPropManager.GetHeroProp(curHeroData.dynamicId)
this.upLvMaskPanleProAtk.text=oldLvAllAddProVal[HeroProType.Attack]
this.upLvMaskPanleProHp.text=oldLvAllAddProVal[HeroProType.Hp]
this.upLvMaskPanleProPhyDef.text=oldLvAllAddProVal[HeroProType.PhysicalDefence]
this.upLvMaskPanleProMagDef.text=oldLvAllAddProVal[HeroProType.MagicDefence]
this.upLvMaskPanleProSpeed.text= oldLvAllAddProVal[HeroProType.Speed]
--计算面板属性cur
-- 计算面板属性old
local oldLvAllAddProVal = HeroPropManager.GetHeroProp(curHeroData.dynamicId)
this.upLvMaskPanleProAtk.text = oldLvAllAddProVal[HeroProType.Attack]
this.upLvMaskPanleProHp.text = oldLvAllAddProVal[HeroProType.Hp]
this.upLvMaskPanleProPhyDef.text = oldLvAllAddProVal[HeroProType.PhysicalDefence]
this.upLvMaskPanleProMagDef.text = oldLvAllAddProVal[HeroProType.MagicDefence]
this.upLvMaskPanleProSpeed.text = oldLvAllAddProVal[HeroProType.Speed]
-- 计算面板属性cur
-- local curLvAllAddProVal=HeroManager.CalculateHeroAllProValList(2,curHeroData.dynamicId,false,curHeroData.breakId,nextHeroUpStarId)
-- 生成一个临时英雄数据,使用完成后需主动清理
local tempDId, tempData = HeroTempPropManager.CreateTempHero(curHeroData.dynamicId)
tempData.upStarId = nextHeroUpStarId
tempData.breakId = curHeroData.breakId
local curLvAllAddProVal = HeroTempPropManager.GetTempHeroProp(tempDId)--HeroPowerManager.GetNextHeroPower(curHeroData.dynamicId, nil,curHeroData.breakId,nextHeroUpStarId)
HeroTempPropManager.ClearTempHero(tempDId)-- 清理
local curLvAllAddProVal = HeroTempPropManager.GetTempHeroProp(tempDId) -- HeroPowerManager.GetNextHeroPower(curHeroData.dynamicId, nil,curHeroData.breakId,nextHeroUpStarId)
HeroTempPropManager.ClearTempHero(tempDId) -- 清理
this.upLvMaskPanleNextProAtk.text=curLvAllAddProVal[HeroProType.Attack]
this.upLvMaskPanleNextProHp.text=curLvAllAddProVal[HeroProType.Hp]
this.upLvMaskPanleNextProPhyDef.text=curLvAllAddProVal[HeroProType.PhysicalDefence]
this.upLvMaskPanleNextProMagDef.text=curLvAllAddProVal[HeroProType.MagicDefence]
this.upLvMaskPanleNextProSpeed.text= curLvAllAddProVal[HeroProType.Speed]
this.upLvMaskPanleNextProAtk.text = curLvAllAddProVal[HeroProType.Attack]
this.upLvMaskPanleNextProHp.text = curLvAllAddProVal[HeroProType.Hp]
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
-- 天赋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[11792]
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[11792]
local _passiveSkillId = passiveSkillConfig[talentSKillsConFig[i][3]].Id
if upStarSkillDataList[nextHeroUpStarId] then
upStarSkillDataList[nextHeroUpStarId] = {titleStr = _titleStr,str = upStarSkillDataList[nextHeroUpStarId].str .. "  "..GetLanguageStrById(passiveSkillConfig[talentSKillsConFig[i][3]].Desc)}
upStarSkillDataList[nextHeroUpStarId] = {
titleStr = _titleStr,
str = upStarSkillDataList[nextHeroUpStarId].str .. "  " ..
GetLanguageStrById(passiveSkillConfig[talentSKillsConFig[i][3]].Desc)
}
else
upStarSkillDataList[nextHeroUpStarId] = {titleStr = _titleStr,str = GetLanguageStrById(passiveSkillConfig[talentSKillsConFig[i][3]].Desc)}
upStarSkillDataList[nextHeroUpStarId] = {
titleStr = _titleStr,
str = GetLanguageStrById(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")
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
if upStarSkillDataList and LengthOfTable(upStarSkillDataList) > 0 then
this.talentInfoShowGo:SetActive(true)
this.talentInfoText.text = Language[11839]
this.curTalentVale.text = upStarSkillDataList[nextHeroUpStarId].str
else
this.talentInfoShowGo:SetActive(false)
end
--技能
-- 技能
-- this.skillTiShi.text = "等级技能提升"
-- local upskillIdList={}
-- local upIndex=1
@ -268,7 +294,7 @@ function RoleUpStarSuccessPanel:OnOpen(...)
-- else
-- this.s2:SetActive(false)
-- end
--是否有新开的技能
-- 是否有新开的技能
-- local openNewSkillCound =LengthOfTable(curskillIdList) - LengthOfTable(upskillIdList)
-- if openNewSkillCound == 1 then
-- this.skillTiShi.text = "新增技能"
@ -291,12 +317,12 @@ function RoleUpStarSuccessPanel:OnOpen(...)
-- Util.GetGameObject(this.s2,"curSkill/skillLv"):GetComponent("Text").text="等级"..curskillIdList[2].skillId % 10
-- end
-- Log("curHeroData.star+1 "..curHeroData.star+1)
if curHeroData.star+1 >= 5 and curHeroData.star+1 < 15 then
if curHeroData.star + 1 >= 5 and curHeroData.star + 1 < 15 then
HeroPropManager.SetDirtyByType(curHeroData.dynamicId, Hero_Prop_Type.Talisman)
end
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)
if curHeroData.star + 1 >= 5 and curHeroData.star + 1 < 15 then
HeroManager.DetectionOpenFiveStarActivity(curHeroData.star + 1)
end
end
end
@ -305,7 +331,7 @@ function RoleUpStarSuccessPanel:GetEquipSkillData(skillId)
return this.skillConfig[skillId]
end
--界面关闭时调用(用于子类重写)
-- 界面关闭时调用(用于子类重写)
function RoleUpStarSuccessPanel:OnClose()
if this.LiveName then
@ -318,7 +344,7 @@ function RoleUpStarSuccessPanel:OnClose()
end
end
--界面销毁时调用(用于子类重写)
-- 界面销毁时调用(用于子类重写)
function RoleUpStarSuccessPanel:OnDestroy()
this.spLoader:Destroy()