罗浮争锋排行榜显示修改
parent
c0bf772eb4
commit
7847d21038
|
@ -82,8 +82,20 @@ function RankingSingleListPanel:BindEvent()
|
||||||
end)
|
end)
|
||||||
for i=1,#this.signBtnList do
|
for i=1,#this.signBtnList do
|
||||||
Util.AddClick(this.signBtnList[i].btn,function()
|
Util.AddClick(this.signBtnList[i].btn,function()
|
||||||
this.GetRankInfo(sData.rankType,1,0)
|
|
||||||
proType=i
|
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:SetParent(this.signBtnList[i].btn.transform)
|
||||||
this.selectObj.transform.localPosition = Vector3.zero
|
this.selectObj.transform.localPosition = Vector3.zero
|
||||||
end)
|
end)
|
||||||
|
@ -119,6 +131,17 @@ function RankingSingleListPanel:OnOpen(_sData,_TabDataIndex,_tabData)
|
||||||
if proType==0 then
|
if proType==0 then
|
||||||
proType=1
|
proType=1
|
||||||
end
|
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:SetParent(this.signBtnList[proType].btn.transform)
|
||||||
this.selectObj.transform.localPosition = Vector3.zero
|
this.selectObj.transform.localPosition = Vector3.zero
|
||||||
end
|
end
|
||||||
|
@ -417,6 +440,7 @@ function this.InitRollingInfo(_root)
|
||||||
info0.text=""
|
info0.text=""
|
||||||
return info0
|
return info0
|
||||||
end
|
end
|
||||||
|
|
||||||
--玩家信息弹窗
|
--玩家信息弹窗
|
||||||
function this.AddPlayerInfoClick(root,uid,serverName)
|
function this.AddPlayerInfoClick(root,uid,serverName)
|
||||||
local clickBtn=Util.GetGameObject(root,"ClickBtn")
|
local clickBtn=Util.GetGameObject(root,"ClickBtn")
|
||||||
|
|
Loading…
Reference in New Issue