【灵兽特惠】时间显示修改
parent
df360d853d
commit
b83dc76f7b
|
@ -294,13 +294,13 @@ MonoBehaviour:
|
|||
m_BestFit: 0
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 3
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u4ECA\u65E5\u53EC\u5524\u4E0A\u9650\uFF1A1/9999999"
|
||||
m_Text:
|
||||
LanguageIndex: 0
|
||||
--- !u!1 &1768094807205281071
|
||||
GameObject:
|
||||
|
@ -862,7 +862,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -6, y: 718}
|
||||
m_AnchoredPosition: {x: -6, y: 723}
|
||||
m_SizeDelta: {x: 512.98, y: 56.539978}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &4453907170405986640
|
||||
|
|
|
@ -78,7 +78,8 @@ function LingShowTeHui:OnShow(_sortingOrder,_parent)
|
|||
end
|
||||
end
|
||||
self:OnShowData()
|
||||
self:SetTime()
|
||||
self.time.text = "每周一零点刷新"
|
||||
-- self:SetTime()
|
||||
end
|
||||
local FrameSprite = {
|
||||
[3] = "l_lishoutehui_ziyuan",
|
||||
|
@ -88,6 +89,7 @@ local FrameSprite = {
|
|||
function LingShowTeHui:OnShowData()
|
||||
local activityConfig = ConfigManager.GetConfigData(ConfigName.GlobalActivity,self.actId)
|
||||
self.rechargeConfigId = activityConfig.CanBuyRechargeId[1]
|
||||
LogGreen("self.rechargeConfigId:"..tostring(self.rechargeConfigId))
|
||||
self.allData = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,self.rechargeConfigId)
|
||||
self.buyBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(self.allData.Price)
|
||||
if not self.itemsGrid then
|
||||
|
@ -142,25 +144,25 @@ function LingShowTeHui:OnShowData()
|
|||
end
|
||||
end
|
||||
|
||||
function LingShowTeHui:SetTime()
|
||||
if self.timer then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.LingShowTeHui)
|
||||
local timeDown = endTime - GetTimeStamp()
|
||||
self.time.text = Language[10470]..TimeToDHMS(timeDown)
|
||||
self.timer = Timer.New(function()
|
||||
timeDown = timeDown - 1
|
||||
if timeDown < 1 then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
self.time.text = Language[10470]..TimeToDHMS(0)
|
||||
end
|
||||
self.time.text = Language[10470]..TimeToDHMS(timeDown)
|
||||
end, 1, -1, true)
|
||||
self.timer:Start()
|
||||
end
|
||||
-- function LingShowTeHui:SetTime()
|
||||
-- if self.timer then
|
||||
-- self.timer:Stop()
|
||||
-- self.timer = nil
|
||||
-- end
|
||||
-- local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.LingShowTeHui)
|
||||
-- local timeDown = endTime - GetTimeStamp()
|
||||
-- self.time.text = "每周一零点刷新"--Language[10470]..TimeToDHMS(timeDown)
|
||||
-- self.timer = Timer.New(function()
|
||||
-- timeDown = timeDown - 1
|
||||
-- if timeDown < 1 then
|
||||
-- self.timer:Stop()
|
||||
-- self.timer = nil
|
||||
-- self.time.text = Language[10470]..TimeToDHMS(0)
|
||||
-- end
|
||||
-- self.time.text = Language[10470]..TimeToDHMS(timeDown)
|
||||
-- end, 1, -1, true)
|
||||
-- self.timer:Start()
|
||||
-- end
|
||||
|
||||
function LingShowTeHui:OnClose()
|
||||
self.spLoader:Destroy()
|
||||
|
|
|
@ -237,13 +237,17 @@ local TypeUpdateFunc = {
|
|||
tempData.PackId = configData[j].PackId
|
||||
tempData.Sort = configData[j].Sort
|
||||
tempData.BuyDay = configData[j].BuyDay
|
||||
tempData.Name = rechargeConfig[configData[j].PackId].Name
|
||||
tempData.Reward = rechargeConfig[configData[j].PackId].RewardShow
|
||||
tempData.Price = rechargeConfig[configData[j].PackId].Price
|
||||
tempData.progress = curData.rewards[i].progress
|
||||
tempData.canBuy = OperatingManager.GetLeftBuyTime(5,tempData.PackId)
|
||||
--插入数据2维 [天数][第几个]
|
||||
table.insert(curData.FreelyData[configData[j].Sort],tempData)
|
||||
if rechargeConfig[configData[j].PackId] then
|
||||
tempData.Name = rechargeConfig[configData[j].PackId].Name
|
||||
tempData.Reward = rechargeConfig[configData[j].PackId].RewardShow
|
||||
tempData.Price = rechargeConfig[configData[j].PackId].Price
|
||||
tempData.progress = curData.rewards[i].progress
|
||||
tempData.canBuy = OperatingManager.GetLeftBuyTime(5,tempData.PackId)
|
||||
--插入数据2维 [天数][第几个]
|
||||
table.insert(curData.FreelyData[configData[j].Sort],tempData)
|
||||
else
|
||||
LogError("百宝商会:Recharge表中未找到礼包Id:"..tostring(configData[j].PackId))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue