【送无限抽】=======奖励领取修改
parent
8ecb6ee081
commit
3409394233
|
@ -4,6 +4,9 @@ local this = OpenSeverWelfarePanel
|
|||
local activityRewardConfig = ConfigManager.GetConfig(ConfigName.ActivityRewardConfig)
|
||||
local sortingOrder = 0
|
||||
local isPlayAnim = true
|
||||
local firstData=nil
|
||||
local isShowNeedGetUpTextId = 0
|
||||
local activityData = {}
|
||||
--初始化组件(用于子类重写)
|
||||
function OpenSeverWelfarePanel:InitComponent()
|
||||
this.spLoader = SpriteLoader.New()
|
||||
|
@ -33,7 +36,18 @@ function OpenSeverWelfarePanel:BindEvent()
|
|||
self:ClosePanel()
|
||||
end)
|
||||
|
||||
|
||||
Util.AddClick(this.getBtn,function()
|
||||
if firstData.state ==1 then
|
||||
NetManager.GetActivityRewardRequest(firstData.missionId, activityData.activityId, function(drop)
|
||||
--ActivityGiftManager.GetActivityRewardRequest(ActivityTypeDef.OpenSeverWelfare,rewardData.missionId, function(msg)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
|
||||
this.OnShowPanelData(false,false)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.GetOpenServerRewardRefreshFightPoint)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
|
@ -65,8 +79,7 @@ function OpenSeverWelfarePanel:OnSortingOrderChange()
|
|||
end
|
||||
sortingOrder = self.sortingOrder
|
||||
end
|
||||
local isShowNeedGetUpTextId = 0
|
||||
local activityData = {}
|
||||
|
||||
function this.OnShowPanelData(isTop,isAni)
|
||||
this.titleText.text = "送无限抽"
|
||||
activityData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SongWuXianChou)
|
||||
|
@ -112,6 +125,7 @@ function this.OnShowPanelData(isTop,isAni)
|
|||
end
|
||||
end
|
||||
local state = first.state
|
||||
firstData=first
|
||||
local value = sConFigData.Values[2][1]
|
||||
--local isPass = FightPointPassManager.IsFightPointPass2(value)
|
||||
-- if state==0 and isPass then
|
||||
|
@ -134,15 +148,7 @@ function this.OnShowPanelData(isTop,isAni)
|
|||
Util.SetGray(this.getBtn,false)
|
||||
this.getBtn:GetComponent("Button").interactable = true
|
||||
end
|
||||
Util.AddClick(this.getBtn,function()
|
||||
NetManager.GetActivityRewardRequest(first.missionId, activityData.activityId, function(drop)
|
||||
--ActivityGiftManager.GetActivityRewardRequest(ActivityTypeDef.OpenSeverWelfare,rewardData.missionId, function(msg)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
|
||||
this.OnShowPanelData(false,false)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.GetOpenServerRewardRefreshFightPoint)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Util.AddClick(this.goBtn,function()
|
||||
if sConFigData.Jump then
|
||||
JumpManager.GoJump(sConFigData.Jump[1])
|
||||
|
|
Loading…
Reference in New Issue