礼包报错修改提交
parent
14e16c3d34
commit
2694f5ad57
|
@ -224,6 +224,9 @@ function EveryDayGiftNew:SetGrowGift()
|
|||
--如果有当前声望数据,就显示,没有就显示上一档位
|
||||
-- local data = not not growData[DynamicActivityManager.Index] and growData[DynamicActivityManager.Index] or growData[DynamicActivityManager.Index-1]
|
||||
local data=growData[DynamicActivityManager.Index]
|
||||
if data==nil then
|
||||
return
|
||||
end
|
||||
self:RefreshReward(data)
|
||||
|
||||
Util.AddOnceClick(self.btnLeft,function ()
|
||||
|
|
|
@ -106,6 +106,9 @@ function RechargeViewNew:SetGrowGift()
|
|||
--如果有当前声望数据,就显示,没有就显示上一档位
|
||||
--local data = not not growData[DynamicActivityManager.Index] and growData[DynamicActivityManager.Index] or growData[DynamicActivityManager.Index-1]
|
||||
local data=growData[DynamicActivityManager.Index]
|
||||
if data==nil then
|
||||
return
|
||||
end
|
||||
self:RefreshReward(data)
|
||||
|
||||
Util.AddOnceClick(self.btnLeft,function ()
|
||||
|
|
|
@ -22,7 +22,7 @@ function WishEquipBuyOnePanel:InitComponent()
|
|||
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 })
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit })
|
||||
screenAdapte(self.bg)
|
||||
this.btnBack=Util.GetGameObject(self.gameObject, "bottom/backButton")
|
||||
this.content=Util.GetGameObject(self.gameObject, "content")
|
||||
|
@ -106,7 +106,7 @@ function WishEquipBuyOnePanel:OnOpen(...)
|
|||
self.bg.gameObject:SetActive(true)
|
||||
|
||||
SoundManager.PlaySound(SoundConfig.UI_Siyuanzhen)
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit })
|
||||
local args = { ... }
|
||||
this.drop=args[1]
|
||||
this.recruitType=args[2]
|
||||
|
|
|
@ -22,7 +22,7 @@ function WishEquipBuyTenPanel:InitComponent()
|
|||
orginLayer = 0
|
||||
self.bg = Util.GetGameObject(self.gameObject, "effect")
|
||||
screenAdapte(self.bg)
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit})
|
||||
this.btnBack=Util.GetGameObject(self.gameObject, "bottom/backButton")
|
||||
this.openTenAgainButton=Util.GetGameObject(self.gameObject, "bottom/openTenAgainButton")
|
||||
this.costImage=Util.GetGameObject(self.gameObject, "bottom/openTenAgainButton/Image")
|
||||
|
@ -133,7 +133,7 @@ end
|
|||
--界面打开时调用(用于子类重写)
|
||||
function WishEquipBuyTenPanel:OnOpen(...)
|
||||
SoundManager.PlaySound(SoundConfig.UI_Siyuanzhen)
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit})
|
||||
-- this.itemIcon1.sprite=this.spLoader:LoadSprite(GetResourcePath(ItemConfig[SecretBoxManager.MainCost[2][1][1]].ResourceID))
|
||||
local args = { ... }
|
||||
this.drop=args[1]
|
||||
|
|
Loading…
Reference in New Issue