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