【巅峰赛】巅峰赛中的机器人详情页有加好友和加黑名单、切磋等按钮,没有屏蔽掉

dev_chengFeng
zhangqiang 2021-03-17 16:56:02 +08:00
parent 8cf2670d6b
commit d5f34e516c
2 changed files with 5 additions and 3 deletions

View File

@ -64435,7 +64435,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 60
m_Alignment: 0
m_Alignment: 1
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0

View File

@ -32,7 +32,7 @@ local _ViewConfig = {
},
}
local curPlayerName = ""
local _PlayerHead = nil
--初始化组件(用于子类重写)
function PlayerInfoPopup:InitComponent()
@ -155,6 +155,7 @@ function PlayerInfoPopup:OnShow()
-- LogGreen(this._PlayerId.." "..this._Config.formationType)
NetManager.RequestPlayerInfo(this._PlayerId, this._Config.formationType, function(msg)
-- 如果是好友更新好友数据
curPlayerName = msg.teamInfo.name
GoodFriendManager.UpdateFriendData(this._PlayerId, msg.teamInfo.level, JingJiShouWeiToEn(msg.teamInfo.name) , msg.teamInfo.head, msg.teamInfo.headFrame)
this._PlayerData = msg.teamInfo
this.RefreshPlayerInfo(msg.teamInfo)
@ -162,6 +163,7 @@ function PlayerInfoPopup:OnShow()
this.FormationAdapter(teamInfo)
--
this.RefreshFunction()
this.RefreshBtnShow()
end)
end
@ -291,7 +293,7 @@ end
-- 刷新按钮显示
function this.RefreshBtnShow()
-- 自己
if this._PlayerId == PlayerManager.uid then
if this._PlayerId == PlayerManager.uid or curPlayerName == Language[12230] then
this.boxLine:SetActive(false)
this.btnBox:SetActive(false)
return