From c66ce27a887e70d805a715e2335a52c2868076d5 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Tue, 22 Mar 2022 15:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=9F=8E=E7=89=B9=E6=95=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Main/MainPanel.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index 0e3597a050..9d9eeb1515 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -891,8 +891,13 @@ function this.FifteenNoticeShow() end - - +function this.ShowEffect(isShow) + for k,v in ipairs(activitys) do + if v.ListType == -1 and activityTabs[k].effect then + activityTabs[k].effect.gameObject:SetActive(isShow) + end + end +end function this.CreatActivity() for k,v in ipairs(activitys) do @@ -1035,6 +1040,7 @@ function this.SetRightBarSize() this.RightUp2rectSize.sizeDelta = Vector3.New(180,t,0) this.RightUp2bgSize.sizeDelta = Vector3.New(180,t + 100,0) end), this.RightUp2gridSize.sizeDelta.y, 0.3):SetEase(Ease.Linear) + this.ShowEffect(true) else PlayerPrefs.SetInt(PlayerManager.uid.."MainRightBarSetting",0) --按钮旋转 @@ -1048,6 +1054,7 @@ function this.SetRightBarSize() this.RightUp2rectSize.sizeDelta = Vector3.New(180,t,0) this.RightUp2bgSize.sizeDelta = Vector3.New(180,t + 100,0) end), 220, 0.3):SetEase(Ease.Linear) + this.ShowEffect(false) end end) end