Branch_oumei
parent
689f1c8abf
commit
2e15f2b699
|
|
@ -3,6 +3,7 @@ MainPanel = Inherit(BasePanel)
|
|||
local this = MainPanel
|
||||
--local isPassChapter = {}
|
||||
-- local endTime = 0
|
||||
local upGradePackagePanel = 0
|
||||
local GlobalActConfig = ConfigManager.GetConfig(ConfigName.GlobalActivity)
|
||||
-- local ActGroupsConfig = ConfigManager.GetConfig(ConfigName.ActivityGroups)
|
||||
-- local shopItemConfig = ConfigManager.GetConfig(ConfigName.StoreConfig)
|
||||
|
|
@ -39,6 +40,7 @@ local CrossService = false --跨服天梯是否解锁
|
|||
--初始化组件(用于子类重写)
|
||||
function this:InitComponent()
|
||||
orginLayer = 0
|
||||
upGradePackagePanel = PlayerPrefs.GetInt(PlayerManager.uid.."upGradePackagePanel",0)
|
||||
self.bg = Util.GetGameObject(self.gameObject, "bg")
|
||||
self.sceneTran = Util.GetGameObject(self.gameObject, "scene"):GetComponent("RectTransform")
|
||||
self.bgTran = Util.GetGameObject(self.gameObject, "bg"):GetComponent("RectTransform")
|
||||
|
|
@ -1292,6 +1294,12 @@ function this.TimeFormat()
|
|||
activityTabs[k].go.gameObject:SetActive(false)
|
||||
else
|
||||
activityTabs[k].go.gameObject:SetActive(true)
|
||||
LogError(""..tostring(math.ceil(GetTimeStamp() / 86400)).."/"..tostring(upGradePackagePanel))
|
||||
if upGradePackagePanel ~= math.ceil(GetTimeStamp() / 86400) then
|
||||
upGradePackagePanel = math.ceil(GetTimeStamp() / 86400)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."upGradePackagePanel",upGradePackagePanel)
|
||||
UIManager.OpenPanel(UIName.UpGradePackagePanel)
|
||||
end
|
||||
activityTabs[k].timeText.text = TimeToHMS(time)
|
||||
end
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue