每日好礼修改
parent
ecf6473d8d
commit
02ab3ee5e6
|
|
@ -1165,25 +1165,30 @@ end
|
||||||
function this.RefreshActivityBtn(context)
|
function this.RefreshActivityBtn(context)
|
||||||
LogGreen("context.type1 " .. context.type .. " " .. context.status)
|
LogGreen("context.type1 " .. context.type .. " " .. context.status)
|
||||||
for k,v in ipairs(activitys) do
|
for k,v in ipairs(activitys) do
|
||||||
if v.ActiveType > 0 and v.ActiveType == context.type then
|
if v.ActiveType > 0 and v.ActiveType == context.type then
|
||||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
|
||||||
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
|
||||||
activityTabs[k].go.gameObject:SetActive(context.status == 1)
|
if v.FunType and v.FunType == 41 then
|
||||||
elseif v.FunType and v.FunType == 41 then
|
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
||||||
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
else
|
||||||
|
activityTabs[k].go.gameObject:SetActive(context.status == 1)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
elseif v.FunType > 0 and v.FunType == context.type then
|
elseif v.FunType > 0 and v.FunType == context.type then
|
||||||
if ActTimeCtrlManager.SingleFuncState(v.FunType) then
|
if ActTimeCtrlManager.SingleFuncState(v.FunType) then
|
||||||
activityTabs[k].go.gameObject:SetActive(context.status == 1)
|
if v.FunType and v.FunType == 41 then
|
||||||
elseif v.FunType and v.FunType == 41 then
|
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
||||||
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
else
|
||||||
|
activityTabs[k].go.gameObject:SetActive(context.status == 1)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
isRefeshIcon = true
|
isRefeshIcon = true
|
||||||
end
|
end
|
||||||
--客户端自己Show刷新
|
--客户端自己Show刷新
|
||||||
|
|
@ -1232,36 +1237,36 @@ function this.RefreshActivityShow()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif v.ActiveType > 0 then
|
elseif v.ActiveType > 0 then
|
||||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
|
||||||
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
|
||||||
if v.ActiveType == 42 then
|
if v.ActiveType == 42 then
|
||||||
if ActivityGiftManager.GetRewardState(42) ~= 3 then
|
if ActivityGiftManager.GetRewardState(42) ~= 3 then
|
||||||
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
|
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
|
||||||
if endTime - PlayerManager.serverTime > 0 then
|
if endTime - PlayerManager.serverTime > 0 then
|
||||||
activityTabs[k].go.gameObject:SetActive(true)
|
activityTabs[k].go.gameObject:SetActive(true)
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
elseif v.FunType and v.FunType == 41 then
|
|
||||||
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
|
elseif v.FunType and v.FunType == 41 then
|
||||||
|
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(true)
|
activityTabs[k].go.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
elseif v.FunType > 0 then
|
elseif v.FunType > 0 then
|
||||||
if ActTimeCtrlManager.SingleFuncState(v.FunType) then
|
if ActTimeCtrlManager.SingleFuncState(v.FunType) then
|
||||||
activityTabs[k].go.gameObject:SetActive(true)
|
activityTabs[k].go.gameObject:SetActive(true)
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
activityTabs[k].go.gameObject:SetActive(false)
|
activityTabs[k].go.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue