【限时神装】

dev_chengFeng
ZhangBiao 2021-03-13 15:09:34 +08:00
parent 8aad1eee56
commit 37e948c9b9
4 changed files with 18 additions and 22 deletions

View File

@ -36,6 +36,10 @@ function this.SetisFirstLogVal(isDayFirst,setPatFaceFinishTabs)
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id..PlayerManager.level.."MainLevelPatFace") == "0" then
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id..PlayerManager.level.."MainLevelPatFace","1")
end
elseif setPatFaceFinishTabs[i].Type == 11 then
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id..PlayerManager.level.."TimeLimitSkin") == "0" then
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id..PlayerManager.level.."TimeLimitSkin","1")
end
else
if setPatFaceFinishTabs[i].ShowType ~= 2 then--触发就拍不用赋值
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id.."PatFace") == "0" then
@ -218,12 +222,11 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,106).Value
local num = tonumber(specialConfig)
local canGet = false
local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId
if PlayerManager.level == num then
canGet =true
end
if canGet then
if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then
if RedPointManager.PlayerPrefsGetStr(v.Id..PlayerManager.level.."TimeLimitSkin") == "0" then
table.insert(patFaceAllData,v)
end
end

View File

@ -1629,16 +1629,12 @@ function this.TimeFormat()
end
--限时神装
local limitSkinGift = {}
limitSkinGift = OperatingManager.GetTimeLimitSkinInfoList()
if #limitSkinGift > 0 then
local limitSkinGift = OperatingManager.GetTimeLimitSkinInfoList()
if limitSkinGift and limitSkinGift.endTime - GetTimeStamp() > 0 then
this.btnTimeLimitSkin:SetActive(true)
this.TimeLimitSkinTime.text = TimeToHMS(limitSkinGift[1].endTime-GetTimeStamp())
if limitSkinGift[1].endTime-GetTimeStamp() < 1 then
OperatingManager.RemoveItemInfoByType(GoodsTypeDef.DirectPurchaseGift, limitSkinGift[1].goodsId)
else
this.btnTimeLimitSkin:SetActive(true)
end
this.TimeLimitSkinTime.text = TimeToHMS(limitSkinGift.endTime-GetTimeStamp())
else
this.btnTimeLimitSkin:SetActive(false)
end
--牛转钱坤

View File

@ -40,9 +40,9 @@ function this.SetBasicValues(giftGoodsList)
local rechargeConfigLocal = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, giftGoodsInfo.goodsId)
-- LogGreen("------充值活动-----------礼包类型:".. rechargeConfigLocal.Type .." 礼包ID".. giftGoodsInfo.goodsId .." 已购:"
-- ..giftGoodsInfo.buyTimes.." 开始:"..giftGoodsInfo.startTime.." 结束:"
-- ..giftGoodsInfo.endTime .. " 可购(没卵用)" .. giftGoodsInfo.dynamicBuyTimes)
LogBlue("------充值活动-----------礼包类型:".. rechargeConfigLocal.Type .." 礼包ID".. giftGoodsInfo.goodsId .." 已购:"
..giftGoodsInfo.buyTimes.." 开始:"..giftGoodsInfo.startTime.." 结束:"
..giftGoodsInfo.endTime .. " 可购(没卵用)" .. giftGoodsInfo.dynamicBuyTimes)
if giftGoodsInfo.endTime == 0 and giftGoodsInfo.startTime == 0 and (rechargeConfigLocal.ShowType == 25 or rechargeConfigLocal.ShowType == 26 or rechargeConfigLocal.ShowType == 8) then
else
if giftGoodsInfoList[rechargeConfigLocal.Type] then
@ -919,11 +919,11 @@ function this.GetTimeLimitSkinInfoList()
local infoList = OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift)--拿取所有类型5礼包信息(包含需要的礼包)
local infoList2 = ConfigManager.GetConfigDataByKey(ConfigName.RechargeCommodityConfig,"ShowType",29)
for index, value in pairs(infoList) do
if infoList2.Id == value.goodsId then-- and value.dynamicBuyTimes > 0 then
table.insert(giftList,value)
if infoList2.Id == value.goodsId and value.dynamicBuyTimes > 0 then
return value
end
end
return giftList
return nil
end
--为限时折扣写的(含有多个)
function this.GetInfoList()

View File

@ -3,7 +3,7 @@ local TimeLimitSkin = Inherit(BasePanel)
local this = TimeLimitSkin
local _sortingOrder = 0
local gift={}
local gift
local _ItemViewList = {}
--初始化组件(用于子类重写)
@ -67,15 +67,11 @@ end
-- 打开,重新打开时回调
function TimeLimitSkin:OnShow()
gift = {}
TimeLimitSkin:RefreshData()
end
function TimeLimitSkin:RefreshData()
gift = OperatingManager.GetTimeLimitSkinInfoList()
local gifts = OperatingManager.GetInfoList()--需要删除的
gift = gifts[1]--需要删除的
gift.goodsId = 10001--需要删除的
TimeLimitSkin:SetReward()
TimeLimitSkin:SetTime()
TimeLimitSkin:SetAttri()
@ -137,6 +133,7 @@ end
--界面关闭时调用(用于子类重写)
function TimeLimitSkin:OnClose()
UIManager.ClosePanel(UIName.PatFacePanel)
if this.localTimer then
this.localTimer:Stop()
this.localTimer = nil