神将来源返回时打开
parent
21033f3260
commit
4f34d6ed42
|
@ -46,6 +46,8 @@ this.dailyRedPack = 0
|
||||||
|
|
||||||
|
|
||||||
this.RewardItemSingleShowPopupIsRoleUpStarLayout = false
|
this.RewardItemSingleShowPopupIsRoleUpStarLayout = false
|
||||||
|
|
||||||
|
this.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false
|
||||||
local update = function()
|
local update = function()
|
||||||
local dt = Time.unscaledDeltaTime
|
local dt = Time.unscaledDeltaTime
|
||||||
this.serverTime = this.serverTime + dt
|
this.serverTime = this.serverTime + dt
|
||||||
|
|
|
@ -47,10 +47,12 @@ function RewardItemSingleShowPopup:BindEvent()
|
||||||
|
|
||||||
Util.AddClick(this.BtnBack, function()
|
Util.AddClick(this.BtnBack, function()
|
||||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||||
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.btnClose, function()
|
Util.AddClick(this.btnClose, function()
|
||||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||||
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = false
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ end
|
||||||
function RoleUpStarLayout:BindEvent()
|
function RoleUpStarLayout:BindEvent()
|
||||||
Util.AddOnceClick(this.heroSource, function()
|
Util.AddOnceClick(this.heroSource, function()
|
||||||
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true
|
||||||
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true
|
||||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id)
|
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id)
|
||||||
end)
|
end)
|
||||||
--升星
|
--升星
|
||||||
|
@ -101,6 +102,11 @@ end
|
||||||
|
|
||||||
function RoleUpStarLayout:OnShow()
|
function RoleUpStarLayout:OnShow()
|
||||||
self.gameObject:SetActive(true)
|
self.gameObject:SetActive(true)
|
||||||
|
if PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 then
|
||||||
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true
|
||||||
|
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true
|
||||||
|
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function RoleUpStarLayout:SetData(_sortinglayer,_parent,_curHerodata,_isUpZhen,_heroDatas)
|
function RoleUpStarLayout:SetData(_sortinglayer,_parent,_curHerodata,_isUpZhen,_heroDatas)
|
||||||
|
|
Loading…
Reference in New Issue