From 9c5eeefa304919e9df1638030e83efe768e9f824 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 3 Nov 2022 18:12:46 +0800 Subject: [PATCH] =?UTF-8?q?gm=E8=BD=AC=E7=9B=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/LuckyTurnTable/GMTurnTablePanel.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/LuckyTurnTable/GMTurnTablePanel.lua b/Assets/ManagedResources/~Lua/Modules/LuckyTurnTable/GMTurnTablePanel.lua index b42a43dfae..e7e0b57fe7 100644 --- a/Assets/ManagedResources/~Lua/Modules/LuckyTurnTable/GMTurnTablePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/LuckyTurnTable/GMTurnTablePanel.lua @@ -52,6 +52,7 @@ function GMTurnTablePanel:InitComponent(gameObject) this.gmBtns[i]={} this.gmBtns[i].btn=Util.GetGameObject(this.luckyTurnPanel, "Top/btn"..i) this.gmBtns[i].selectImg=Util.GetGameObject(this.luckyTurnPanel, "Top/btn"..i.."/SelectBG") + this.gmBtns[i].selectImg:SetActive(false) this.gmBtns[i].nameTxt=Util.GetGameObject(this.luckyTurnPanel, "Top/btn"..i.."/Text"):GetComponent("Text") this.gmBtns[i].nameTxt.text=turnsInfo[i].name this.gmBtns[i].red=Util.GetGameObject(this.luckyTurnPanel, "Top/btn"..i.."/redPoint") @@ -166,6 +167,7 @@ end ---界面打开或者重新打开后,界面刷新时调用(用于子类重写) function GMTurnTablePanel:OnShow() self.gameObject:SetActive(true) + this.ClearDefault() this.upView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.LuckyTreasure }) this.gmBtns[1].selectImg:SetActive(true) this.gmBtns[1].nameTxt.color=Color.New(1,0.95,0.85,1) @@ -188,6 +190,8 @@ end ---界面关闭时调用(用于子类重写) function GMTurnTablePanel:OnClose() --Log("==YSP== 关闭幸运转盘") + curTreasureType=TreasureType.Lucky + LuckyTurnTableManager.curTreasureType=TreasureType.Lucky RedpotManager.CheckRedPointStatus(RedPointType.LuckyTurn) -- this.rewardPanel.gameObject:SetActive(false) if this.thread then