玩家详情界面修改
parent
eda74bc0b4
commit
9dc40bc57e
|
@ -410,6 +410,7 @@ function this.FormationAdapter(teamInfo)
|
||||||
for i, demon in ipairs(this.Demons) do
|
for i, demon in ipairs(this.Demons) do
|
||||||
demon.frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(1))
|
demon.frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(1))
|
||||||
demon.hero:SetActive(false)
|
demon.hero:SetActive(false)
|
||||||
|
demon.frame.transform:GetComponent("Button").enabled=false
|
||||||
end
|
end
|
||||||
--队伍阵容
|
--队伍阵容
|
||||||
for i, hero in ipairs(teamInfo.team) do
|
for i, hero in ipairs(teamInfo.team) do
|
||||||
|
@ -434,16 +435,19 @@ function this.FormationAdapter(teamInfo)
|
||||||
SetHeroIcon(this.spLoader, hero,this.Demons[hero.position].icon,heroConfig)
|
SetHeroIcon(this.spLoader, hero,this.Demons[hero.position].icon,heroConfig)
|
||||||
SetHeroFlyEffect(this.Demons[hero.position].hero,this.spLoader,hero.star,this.sortingOrder+1,0.9,2)
|
SetHeroFlyEffect(this.Demons[hero.position].hero,this.spLoader,hero.star,this.sortingOrder+1,0.9,2)
|
||||||
local heroData = {}
|
local heroData = {}
|
||||||
|
local frameBtn=this.Demons[hero.position].frameBtn
|
||||||
|
frameBtn.transform:GetComponent("Button").enabled=true
|
||||||
if this._Config.formationType == FormationTypeDef.FORMATION_TSLX then
|
if this._Config.formationType == FormationTypeDef.FORMATION_TSLX then
|
||||||
Util.AddOnceClick(this.Demons[hero.position].frameBtn, function()
|
Util.AddOnceClick(frameBtn, function()
|
||||||
UIManager.OpenPanel(UIName.RoleGetInfoPopup,false,demonId,hero.star)
|
UIManager.OpenPanel(UIName.RoleGetInfoPopup,false,demonId,hero.star)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
Util.AddOnceClick(this.Demons[hero.position].frameBtn, function()
|
Util.AddOnceClick(frameBtn, function()
|
||||||
NetManager.ViewHeroInfoRequest(this._PlayerId,hero.heroid,netserverName,this._Config.formationType,function(msg)
|
if not hero.heroid or not heroConfig then
|
||||||
if not hero.heroid then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
NetManager.ViewHeroInfoRequest(this._PlayerId,hero.heroid,netserverName,this._Config.formationType,function(msg)
|
||||||
heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects,msg.guildSkill)
|
heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects,msg.guildSkill)
|
||||||
GoodFriendManager.InitEquipData(msg.equip,heroData)--HeroManager.GetSingleHeroData(heroData.dynamicId)
|
GoodFriendManager.InitEquipData(msg.equip,heroData)--HeroManager.GetSingleHeroData(heroData.dynamicId)
|
||||||
LogError("msg.playerGiftLv==================="..msg.playerGiftLv)
|
LogError("msg.playerGiftLv==================="..msg.playerGiftLv)
|
||||||
|
|
Loading…
Reference in New Issue