local A=907200.0 local N=updatesFrame.Template N.Visible=false function module.CreateUpdates(E)cf:ClearPage(updatesFrame)local I=0 for E,e in pairs(updates)do local s=0 I=I+#e for E,I in pairs(e)do local e=N:Clone()if E==1 then s=I[1]e.BackgroundColor3=Color3.fromRGB(95,95,95)e.TextLabel.TextColor3=Color3.fromRGB(255,255,255)e.TextLabel.Text=I[2]else e.BackgroundColor3=cf:GetLabelBackgroundColor(E)e.TextLabel.TextColor3=Color3.fromRGB(235,235,235)e.TextLabel.Text=I[1]if s>os.time()-A then e.New.Visible=true e.TextLabel.Position=UDim2.new(.16,0,.15,0)e.TextLabel.Size=UDim2.new(.8,0,.7,0)end end e.Visible=true e.Parent=updatesFrame end end updatesFrame.CanvasSize=UDim2.new(0,0,0,I*N.AbsoluteSize.Y)end

local displayNewUpdatesFor = 86400*10.5
local template1 = updatesFrame.Template
template1.Visible = false
function module:CreateUpdates()
	cf:ClearPage(updatesFrame)
	local totalLabels = 0
	for _, updateGroup in pairs(updates) do
		local updateTime = 0
		totalLabels = totalLabels + #updateGroup
		for i,v in pairs(updateGroup) do
			local label = template1:Clone()
			if i == 1 then
				updateTime = v[1]
				label.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
				label.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
				label.TextLabel.Text = v[2]
			else
				label.BackgroundColor3 = cf:GetLabelBackgroundColor(i)
				label.TextLabel.TextColor3 = Color3.fromRGB(235, 235, 235)
				label.TextLabel.Text = v[1]
				if updateTime > os.time() - displayNewUpdatesFor then
					label.New.Visible = true
					label.TextLabel.Position = UDim2.new(0.16, 0,0.15, 0)
					label.TextLabel.Size = UDim2.new(0.8, 0,0.7, 0)
				end
			end
			label.Visible = true
			label.Parent = updatesFrame
		end
	end
	updatesFrame.CanvasSize = UDim2.new(0,0,0,totalLabels*template1.AbsoluteSize.Y)
end


