【优化】删除十绝阵敌方阵容上的血条和怒气条

dev_chengFeng
jiaoyangna 2020-12-23 14:52:13 +08:00
parent fcb2e4604a
commit 41977a85f5
2 changed files with 13 additions and 15 deletions

View File

@ -5527,7 +5527,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
@ -5687,7 +5687,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
@ -5847,7 +5847,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
@ -6007,7 +6007,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
@ -6167,7 +6167,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
@ -6327,7 +6327,7 @@ PrefabInstance:
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 15 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59, - target: {fileID: 2535060995107670383, guid: e356d5948e4971f499cfe38db3551f59,
type: 3} type: 3}

View File

@ -172,6 +172,7 @@ function this.SetFormation()
for i, v in pairs(monsterGroup[monsterGroupId].Contents[1]) do for i, v in pairs(monsterGroup[monsterGroupId].Contents[1]) do
local o=this.heroPreList[i] local o=this.heroPreList[i]
o.transform.parent:GetComponent("Image").sprite=Util.LoadSprite("t_chengyuankuang_kuang")
if v ~= 0 then if v ~= 0 then
local id=monsterConfig[v].MonsterId local id=monsterConfig[v].MonsterId
this.SetCardSingleData(o, id, i, monsterConfig[v]) this.SetCardSingleData(o, id, i, monsterConfig[v])
@ -185,6 +186,7 @@ end
--设置单个上阵英雄信息 --设置单个上阵英雄信息
function this.SetCardSingleData(o, heroId, _pos, heroData) function this.SetCardSingleData(o, heroId, _pos, heroData)
local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image") local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image")
local fg=Util.GetGameObject(o,"Bg2"):GetComponent("Image") local fg=Util.GetGameObject(o,"Bg2"):GetComponent("Image")
-- local live=Util.GetGameObject(o,"Mask/Live") -- local live=Util.GetGameObject(o,"Mask/Live")
@ -194,9 +196,10 @@ function this.SetCardSingleData(o, heroId, _pos, heroData)
local name=Util.GetGameObject(o,"Name/Text"):GetComponent("Text") local name=Util.GetGameObject(o,"Name/Text"):GetComponent("Text")
-- local pos=Util.GetGameObject(o,"Pos"):GetComponent("Image") -- local pos=Util.GetGameObject(o,"Pos"):GetComponent("Image")
local yuanImage=Util.GetGameObject(o,"yuanImage") local yuanImage=Util.GetGameObject(o,"yuanImage")
local hp = Util.GetGameObject(o,"hpProgress/hp"):GetComponent("Image") local hp = Util.GetGameObject(o,"hpProgress")
local hpPass = Util.GetGameObject(o,"hpProgress/hpPass"):GetComponent("Image") hp.gameObject:SetActive(false)
local rage = Util.GetGameObject(o,"rageProgress/rage"):GetComponent("Image") local rage = Util.GetGameObject(o,"rageProgress")
rage.gameObject:SetActive(false)
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage") local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage")
local config = heroConfig[heroId] local config = heroConfig[heroId]
local liveName = GetResourcePath(config.Live) local liveName = GetResourcePath(config.Live)
@ -219,17 +222,12 @@ function this.SetCardSingleData(o, heroId, _pos, heroData)
yuanImage:SetActive(false) yuanImage:SetActive(false)
lv.text=heroData.Level lv.text=heroData.Level
bg.sprite = Util.LoadSprite(GetBattleHeroCardStarBg[heroData.Star]) bg.sprite = Util.LoadSprite(GetHeroCardStarBg[heroData.Star])
fg.sprite = Util.LoadSprite(GetHeroCardStarFg[heroData.Star]) fg.sprite = Util.LoadSprite(GetHeroCardStarFg[heroData.Star])
pro.sprite=Util.LoadSprite(GetProStrImageByProNum(heroData.PropertyName)) pro.sprite=Util.LoadSprite(GetProStrImageByProNum(heroData.PropertyName))
SetCardStars(starGrid,heroData.Star) SetCardStars(starGrid,heroData.Star)
name.text=heroData.ReadingName name.text=heroData.ReadingName
hp.fillAmount = 1
hpPass.fillAmount = 1
rage.fillAmount = 0.5
end end
--刷新排行榜 index当前排行类型索引 --刷新排行榜 index当前排行类型索引