摘星阁修改
parent
7b87ea154d
commit
35ee3bdf48
|
@ -11,7 +11,7 @@ local ItemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
|||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
local orginLayer=0
|
||||
local data=nil
|
||||
local TEXT = {
|
||||
[1] = {"武器","r_Equip_GuardianWeapon_0004","攻击"},
|
||||
|
@ -103,6 +103,10 @@ function this:BindEvent()
|
|||
end)
|
||||
end
|
||||
|
||||
function this:OnSortingOrderChange()
|
||||
orginLayer = self.sortingOrder
|
||||
end
|
||||
|
||||
function this:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, this.SetData)
|
||||
end
|
||||
|
@ -303,14 +307,13 @@ function this.SingleHeroDataShow(_go, _heroData)
|
|||
else
|
||||
redPot.gameObject:SetActive(false)
|
||||
end
|
||||
if _heroData.property then
|
||||
changeProBtn:SetActive(_heroData.property>=5)
|
||||
pro.sprite= this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.property))
|
||||
else
|
||||
--if _heroData.property then
|
||||
--changeProBtn:SetActive(_heroData.property>=5)
|
||||
--pro.sprite= this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.property))
|
||||
--else
|
||||
changeProBtn:SetActive(false)
|
||||
LogError("+++++++")
|
||||
pro.sprite= this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.heroConfig.PropertyName))
|
||||
end
|
||||
--end
|
||||
frame.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
|
||||
icon.sprite=this.spLoader:LoadSprite(heroData.icon)
|
||||
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
|
||||
|
@ -335,7 +338,7 @@ function this.SingleHeroDataShow(_go, _heroData)
|
|||
starSize = Vector2.New(60,57)
|
||||
end
|
||||
SetHeroStars(this.spLoader, starGrid, star,starType,starSize,starScale)
|
||||
|
||||
SetParticleSortLayer(go,orginLayer+1)
|
||||
Util.AddOnceClick(go, function()
|
||||
curSelectHero=_heroData
|
||||
this:Refresh()
|
||||
|
|
Loading…
Reference in New Issue