From 8ee791ab0ed4d78a54ba146975138ff4e271ebc4 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Wed, 9 Sep 2020 17:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=81=E7=BB=9D=E9=98=B5?= =?UTF-8?q?=E5=8D=A1=E6=AD=BB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Guild/DeathPos/DeathPosInfoPanel.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua index 7f94031529..5bcf557687 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosInfoPanel.lua @@ -294,7 +294,6 @@ function this.SetRankingNum(root,rank,isMy) sortNumTabs[i]:SetActive(false) end if rank < 4 then - LogGreen(rank) sortNumTabs[rank]:SetActive(true) else sortNumTabs[4]:SetActive(true) @@ -304,8 +303,16 @@ function this.SetRankingNum(root,rank,isMy) Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank end if isMy then - Util.GetGameObject(root,"SortNum/SortNum ("..rank..")"):SetActive(true) - Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank + for i = 1, 4 do + Util.GetGameObject(root,"MyRank/SortNum/SortNum ("..i..")"):SetActive(false) + end + if rank < 4 then + Util.GetGameObject(root,"MyRank/SortNum/SortNum ("..rank..")"):SetActive(true) + else + Util.GetGameObject(root,"MyRank/SortNum/SortNum (4)"):SetActive(true) + Util.GetGameObject(root,"MyRank/SortNum/SortNum (4)/TitleText"):GetComponent("Text").text = rank + end + end end