From 7847d2103847d70b26f7ebf14a8bd34016dba7ea Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1545929779@qq.com> Date: Mon, 13 May 2024 15:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=97=E6=B5=AE=E4=BA=89=E9=94=8B=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ranking/RankingSingleListPanel.lua | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua index 217bd40d4f..7f443e7b60 100644 --- a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua @@ -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")