gm转盘修改

wangzhenxing 2022-11-03 18:12:46 +08:00
parent d3194dba53
commit 9c5eeefa30
1 changed files with 4 additions and 0 deletions

View File

@ -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