四元阵闪现人物立绘修改
parent
e1d2ca80db
commit
3c67abbd6d
|
@ -17,6 +17,8 @@ function SecretBoxBuyOnePanel:InitComponent()
|
|||
|
||||
orginLayer = 10
|
||||
self.bg = Util.GetGameObject(self.gameObject, "effect")
|
||||
-- self.dibiao = Util.GetGameObject(self.bg, "dibiao")
|
||||
-- self.dibiao.gameObject:SetActive(false)
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||
screenAdapte(self.bg)
|
||||
this.btnBack=Util.GetGameObject(self.gameObject, "bottom/backButton")
|
||||
|
@ -52,7 +54,6 @@ function SecretBoxBuyOnePanel:BindEvent()
|
|||
Util.AddClick(this.openOneAgainButton, function ()
|
||||
Log(tostring(this.recruitType))
|
||||
if this.recruitType then
|
||||
self:ClosePanel()
|
||||
|
||||
if this.recruitType==drawtType.FindFairySingle then
|
||||
--如果道具不足 要做判断
|
||||
|
@ -61,6 +62,7 @@ function SecretBoxBuyOnePanel:BindEvent()
|
|||
if BagManager.GetItemCountById(itemId) < itemNum then
|
||||
if PrivilegeManager.GetPrivilegeRemainValue(32)<=0 then --如果免费次数不足
|
||||
PopupTipPanel.ShowTip(Language[10526])
|
||||
self:ClosePanel()
|
||||
return
|
||||
end
|
||||
end
|
||||
|
@ -103,6 +105,8 @@ function SecretBoxBuyOnePanel:OnSortingOrderChange()
|
|||
end
|
||||
--界面打开时调用(用于子类重写)
|
||||
function SecretBoxBuyOnePanel:OnOpen(...)
|
||||
self.bg.gameObject:SetActive(false)
|
||||
self.bg.gameObject:SetActive(true)
|
||||
SoundManager.PlaySound(SoundConfig.UI_Siyuanzhen)
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||
local args = { ... }
|
||||
|
|
Loading…
Reference in New Issue