神将来源返回时打开

dev_chengFeng
jiaoyangna 2021-07-01 18:12:20 +08:00
parent 21033f3260
commit 4f34d6ed42
3 changed files with 10 additions and 0 deletions

View File

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

View File

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

View File

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