罗浮争锋排行榜显示修改

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-13 15:51:16 +08:00
parent c0bf772eb4
commit 7847d21038
1 changed files with 25 additions and 1 deletions

View File

@ -82,8 +82,20 @@ function RankingSingleListPanel:BindEvent()
end)
for i=1,#this.signBtnList do
Util.AddClick(this.signBtnList[i].btn,function()
this.GetRankInfo(sData.rankType,1,0)
proType=i
local formation=FormationTypeDef.LuoFuZhengFeng1
if proType==1 then
formation= FormationTypeDef.LuoFuZhengFeng1
elseif proType==2 then
formation= FormationTypeDef.LuoFuZhengFeng2
elseif proType==3 then
formation= FormationTypeDef.LuoFuZhengFeng3
elseif proType==4 then
formation= FormationTypeDef.LuoFuZhengFeng4
end
JumpServerManager.showRankType=formation
this.GetRankInfo(sData.rankType,1,0)
this.selectObj.transform:SetParent(this.signBtnList[i].btn.transform)
this.selectObj.transform.localPosition = Vector3.zero
end)
@ -119,6 +131,17 @@ function RankingSingleListPanel:OnOpen(_sData,_TabDataIndex,_tabData)
if proType==0 then
proType=1
end
local formation=FormationTypeDef.LuoFuZhengFeng1
if proType==1 then
formation= FormationTypeDef.LuoFuZhengFeng1
elseif proType==2 then
formation= FormationTypeDef.LuoFuZhengFeng2
elseif proType==3 then
formation= FormationTypeDef.LuoFuZhengFeng3
elseif proType==4 then
formation= FormationTypeDef.LuoFuZhengFeng4
end
JumpServerManager.showRankType=formation
this.selectObj.transform:SetParent(this.signBtnList[proType].btn.transform)
this.selectObj.transform.localPosition = Vector3.zero
end
@ -417,6 +440,7 @@ function this.InitRollingInfo(_root)
info0.text=""
return info0
end
--玩家信息弹窗
function this.AddPlayerInfoClick(root,uid,serverName)
local clickBtn=Util.GetGameObject(root,"ClickBtn")