From 4ea42d72a03e9f8adbc8e640c5dd6db3844c2000 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 16 Apr 2021 16:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E9=AD=94=E8=AF=95=E7=82=BC=E4=BA=BA?= =?UTF-8?q?=E7=89=A9=E4=BF=A1=E6=81=AF=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A5=BD=E5=8F=8B=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/PlayerInfoPopup.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua index 2040cd9e93..0d28e49669 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua @@ -33,6 +33,9 @@ local _ViewConfig = { [PLAYER_INFO_VIEW_TYPE.MIND_DEMON] = { formationType = FormationTypeDef.MONSTER_CAMP_ATTACK, tip = "心魔试炼阵容:", + btnType = { + + } }, } @@ -229,7 +232,7 @@ function this.RefreshFunction() this.addFriendBtn:SetActive(false) this.starBox:SetActive(false) - if this._ViewType == PLAYER_INFO_VIEW_TYPE.NORMAL then + if this._ViewType == PLAYER_INFO_VIEW_TYPE.NORMAL or this._ViewType == PLAYER_INFO_VIEW_TYPE.MIND_DEMON then this.addFriendBtn:SetActive(true) local isSelf = this._PlayerId == PlayerManager.uid local isMyFriend = isSelf and true or GoodFriendManager.IsMyFriend(this._PlayerId) @@ -273,6 +276,9 @@ function this.FormationAdapter(teamInfo) local heroData = {} Util.AddOnceClick(frameBtn, function() NetManager.ViewHeroInfoRequest(this._PlayerId,hero.heroid,function(msg) + if not hero.heroid then + return + end heroData= GoodFriendManager.GetHeroDatas(msg.hero,msg.force,msg.SpecialEffects,msg.guildSkill) GoodFriendManager.InitEquipData(msg.equip,heroData)--HeroManager.GetSingleHeroData(heroData.dynamicId) UIManager.OpenPanel(UIName.RoleInfoPopup, heroData,true)