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