Merge branch 'master_xma_local' of http://60.1.1.230/gaoxin/JL_Client into master_xma_local

dev_chengFeng
ZhangBiao 2020-11-19 17:37:28 +08:00
commit 532e766de5
1 changed files with 7 additions and 2 deletions

View File

@ -56,6 +56,7 @@ function LingShouBaoGe:InitComponent(gameObject)
this.detail.gameObject:SetActive(false)
this.grid = Util.GetGameObject(this.gameObject, "aniRoot")
this.title = Util.GetGameObject(this.gameObject, "Bg/title"):GetComponent("Image")
--mid
this.progressValue = Util.GetGameObject(this.gameObject, "mid/progress/value"):GetComponent("Image")--fillAmount
@ -118,11 +119,15 @@ function LingShouBaoGe:Refresh()
this:SetData()--加载界面数据立绘+进度条
end
local PositionList = {
[20007] = {pos = 176,title = "l_lingshou_fenghuang"},
[20006] = {pos = 70,title = "l_lingshou_baize"}
}
function LingShouBaoGe:SetData()
rewardData={}
showData={}
rewardData,showData,curScore = DynamicActivityManager.LingShouBuildData()
this.title.sprite = Util.LoadSprite(PositionList[showData.monsterId].title)
--设置立绘
bgName = artConfig[SpiritAnimalConfig[showData.monsterId].Live].Name
local pos = SpiritAnimalConfig[showData.monsterId].Position
@ -130,7 +135,7 @@ function LingShouBaoGe:SetData()
if Live then
poolManager:UnLoadLive(bgName, Live)
end
Live = poolManager:LoadLive(bgName, this.grid.transform, Vector3.one*scale*0.8, Vector2.New(pos[1],pos[2]+176))
Live = poolManager:LoadLive(bgName, this.grid.transform, Vector3.one*scale*0.8, Vector2.New(pos[1],pos[2]+PositionList[showData.monsterId].pos))
local RoleLiveGOGraphic = Live:GetComponent("SkeletonGraphic")
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)