【主城优化】跨服战入口变更位置
parent
8b56e352ba
commit
edbfbc9afc
File diff suppressed because it is too large
Load Diff
|
|
@ -149,7 +149,7 @@ function this:InitComponent()
|
|||
-- this.btnTianFu = Util.GetGameObject(this.gameObject, "scene/layer6/btnTianFu")
|
||||
this.btnWaiDi = Util.GetGameObject(this.gameObject, "scene/layer4/btnWaiDi")
|
||||
this.btnColorfulWorld = Util.GetGameObject(this.gameObject, "scene/layer6/btnColorfulWorld")
|
||||
this.btnJumpServer = Util.GetGameObject(this.gameObject, "scene/layer6/btnJumpServer")--跨服
|
||||
this.btnJumpServer = Util.GetGameObject(this.gameObject, "scene/layer4/btnJumpServer")--跨服
|
||||
this.btnWaiDi:SetActive(false)
|
||||
this.btnColorfulWorld:SetActive(false)
|
||||
this.btnCompoundHero = Util.GetGameObject(this.gameObject, "scene/layer3/btnCompoundHero")
|
||||
|
|
@ -1688,6 +1688,7 @@ local roleRefreshNum = 0
|
|||
function this.OnMainPlayerNPCRefresh()
|
||||
if roleRefreshNum < 20 then
|
||||
roleRefreshNum = roleRefreshNum + 1
|
||||
-- LogRed("roleRefreshNum "..roleRefreshNum)
|
||||
elseif roleRefreshNum >= 20 and PlayerManager.MainPanelRoleMonveState then
|
||||
roleRefreshNum = 0
|
||||
-- LogRed("PlayerManager.MainPanelRoleMonveState "..tostring(PlayerManager.MainPanelRoleMonveState))
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ function this.InitData(rankType,fun,id,rankIndex)
|
|||
end
|
||||
end
|
||||
|
||||
LogYellow("cur_rankType "..cur_rankType.." isCross "..isCross)
|
||||
-- LogYellow("cur_rankType "..cur_rankType.." isCross "..isCross)
|
||||
NetManager.RequestRankInfo(rankType, function (msg)--请求数据
|
||||
this.ReceiveRankingData(msg,fun)
|
||||
end,activiteId,cur_rankIndex,isCross)
|
||||
|
|
@ -55,7 +55,7 @@ function this.ReceiveRankingData(msg,fun)
|
|||
--滚动数据
|
||||
local length=#this.curRankingData
|
||||
for i, rank in ipairs(msg.ranks) do
|
||||
LogGreen("UserRank "..rank.rankInfo.rank.." userName "..rank.userName.." rank.rankInfo.param1 "..rank.rankInfo.param1.." practiceLevel:"..rank.practiceLevel)
|
||||
-- LogGreen("UserRank "..rank.rankInfo.rank.." userName "..rank.userName.." rank.rankInfo.param1 "..rank.rankInfo.param1.." practiceLevel:"..rank.practiceLevel)
|
||||
rank.userName = PracticeManager.SetNameColor(rank.userName,rank.practiceLevel)
|
||||
this.curRankingData[length+i]=rank
|
||||
end
|
||||
|
|
@ -71,7 +71,7 @@ function this.ReceiveNextRankingData(msg,fun)
|
|||
--滚动数据
|
||||
local length=#this.curRankingData
|
||||
for i, rank in ipairs(msg.ranks) do
|
||||
LogGreen("UserRank "..rank.rankInfo.rank.." userName "..rank.userName.." rank.rankInfo.param1 "..rank.rankInfo.param1.." practiceLevel:"..rank.practiceLevel)
|
||||
-- LogGreen("UserRank "..rank.rankInfo.rank.." userName "..rank.userName.." rank.rankInfo.param1 "..rank.rankInfo.param1.." practiceLevel:"..rank.practiceLevel)
|
||||
-- LogError("rank.practiceLevel:"..tostring(rank.practiceLevel))
|
||||
rank.userName = PracticeManager.SetNameColor(rank.userName,rank.practiceLevel)
|
||||
this.curRankingData[length+i]=rank
|
||||
|
|
|
|||
Loading…
Reference in New Issue