gm转盘修改
parent
d3194dba53
commit
9c5eeefa30
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue