备战界面修改提交

onepiece_demo_arena
wangzhenxing 2023-12-06 19:40:45 +08:00
parent 24549477db
commit 966755fd6a
1 changed files with 13 additions and 12 deletions

View File

@ -252,12 +252,12 @@ end
function this:OnSortingOrderChange() function this:OnSortingOrderChange()
-- 设置特效 -- 设置特效
Util.AddParticleSortLayer(this.effect, self.sortingOrder - orginLayer) Util.AddParticleSortLayer(this.effect, self.sortingOrder - orginLayer+1)
for _,o in pairs(heroListGo) do for _,o in pairs(heroListGo) do
Util.AddParticleSortLayer(o, self.sortingOrder - orginLayer) Util.AddParticleSortLayer(o, self.sortingOrder - orginLayer+1)
end end
this.scrollView:ForeachItemGO(function (index, go) this.scrollView:ForeachItemGO(function (index, go)
Util.SetParticleSortLayer(go, self.sortingOrder + 1) Util.SetParticleSortLayer(go, self.sortingOrder + 2)
end) end)
orginLayer = self.sortingOrder orginLayer = self.sortingOrder
end end
@ -538,7 +538,7 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
local liveName = heroData.painting local liveName = heroData.painting
local roleConfig = {} local roleConfig = {}
local toward=0 local toward=0
local star,starType = heroData.GetStar(3) local star,starType = heroData.GetStar(1)
local level=heroData.lv local level=heroData.lv
if panelType == FORMATION_TYPE.WORLDARENA then if panelType == FORMATION_TYPE.WORLDARENA then
star=endLess[heroData.heroConfig.Id].Star star=endLess[heroData.heroConfig.Id].Star
@ -594,13 +594,14 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
end end
end end
if HarmonyManager.IsChangeColor(heroData.dynamicId) then -- if HarmonyManager.IsChangeColor(heroData.dynamicId) then
lv.text="<color=#0f0>"..level.."</color>" -- lv.text="<color=#0f0>"..level.."</color>"
elseif HarmonyManager:IsEnvoy(heroData.dynamicId) and HarmonyManager:HongMengTowerUpLimit() >= HarmonyManager.TowerStartLimit then -- elseif HarmonyManager:IsEnvoy(heroData.dynamicId) and HarmonyManager:HongMengTowerUpLimit() >= HarmonyManager.TowerStartLimit then
lv.text="<color=#ffbe22>"..level.."</color>" -- lv.text="<color=#ffbe22>"..level.."</color>"
else -- else
lv.text=level -- lv.text=level
end -- end
lv.text=level
SetCardStars(starGrid,star,starType) SetCardStars(starGrid,star,starType)
if star > 9 then if star > 9 then
kaPaiEffect:SetActive(false) kaPaiEffect:SetActive(false)
@ -958,7 +959,7 @@ function this.SingleHeroDataShow(_go, _heroData)
end end
end end
Util.SetParticleSortLayer(go, this.sortingOrder + 1) Util.SetParticleSortLayer(go, this.sortingOrder + 2)
--血量显示 --血量显示
local curHeroHpVal = FormationManager.GetFormationHeroHp(this.curFormationIndex,_heroData.dynamicId) local curHeroHpVal = FormationManager.GetFormationHeroHp(this.curFormationIndex,_heroData.dynamicId)
yuanImage:SetActive(heroData.createtype == 1) yuanImage:SetActive(heroData.createtype == 1)