【巅峰赛】巅峰赛中的机器人详情页有加好友和加黑名单、切磋等按钮,没有屏蔽掉
parent
8cf2670d6b
commit
d5f34e516c
|
@ -64435,7 +64435,7 @@ MonoBehaviour:
|
||||||
m_BestFit: 0
|
m_BestFit: 0
|
||||||
m_MinSize: 0
|
m_MinSize: 0
|
||||||
m_MaxSize: 60
|
m_MaxSize: 60
|
||||||
m_Alignment: 0
|
m_Alignment: 1
|
||||||
m_AlignByGeometry: 0
|
m_AlignByGeometry: 0
|
||||||
m_RichText: 1
|
m_RichText: 1
|
||||||
m_HorizontalOverflow: 0
|
m_HorizontalOverflow: 0
|
||||||
|
|
|
@ -32,7 +32,7 @@ local _ViewConfig = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local curPlayerName = ""
|
||||||
local _PlayerHead = nil
|
local _PlayerHead = nil
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function PlayerInfoPopup:InitComponent()
|
function PlayerInfoPopup:InitComponent()
|
||||||
|
@ -155,6 +155,7 @@ function PlayerInfoPopup:OnShow()
|
||||||
-- LogGreen(this._PlayerId.." "..this._Config.formationType)
|
-- LogGreen(this._PlayerId.." "..this._Config.formationType)
|
||||||
NetManager.RequestPlayerInfo(this._PlayerId, this._Config.formationType, function(msg)
|
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)
|
GoodFriendManager.UpdateFriendData(this._PlayerId, msg.teamInfo.level, JingJiShouWeiToEn(msg.teamInfo.name) , msg.teamInfo.head, msg.teamInfo.headFrame)
|
||||||
this._PlayerData = msg.teamInfo
|
this._PlayerData = msg.teamInfo
|
||||||
this.RefreshPlayerInfo(msg.teamInfo)
|
this.RefreshPlayerInfo(msg.teamInfo)
|
||||||
|
@ -162,6 +163,7 @@ function PlayerInfoPopup:OnShow()
|
||||||
this.FormationAdapter(teamInfo)
|
this.FormationAdapter(teamInfo)
|
||||||
--
|
--
|
||||||
this.RefreshFunction()
|
this.RefreshFunction()
|
||||||
|
this.RefreshBtnShow()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -291,7 +293,7 @@ end
|
||||||
-- 刷新按钮显示
|
-- 刷新按钮显示
|
||||||
function this.RefreshBtnShow()
|
function this.RefreshBtnShow()
|
||||||
-- 自己
|
-- 自己
|
||||||
if this._PlayerId == PlayerManager.uid then
|
if this._PlayerId == PlayerManager.uid or curPlayerName == Language[12230] then
|
||||||
this.boxLine:SetActive(false)
|
this.boxLine:SetActive(false)
|
||||||
this.btnBox:SetActive(false)
|
this.btnBox:SetActive(false)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue