local z=907200.0 local x=updatesFrame.Template x.Visible=false function module.CreateUpdates(S)cf:ClearPage(updatesFrame)local g=0 for S,J in pairs(updates)do local D=0 g=g+#J for S,g in pairs(J)do local J=x:Clone()if S==1 then D=g[1]J.BackgroundColor3=Color3.fromRGB(95,95,95)J.TextLabel.TextColor3=Color3.fromRGB(255,255,255)J.TextLabel.Text=g[2]else J.BackgroundColor3=cf:GetLabelBackgroundColor(S)J.TextLabel.TextColor3=Color3.fromRGB(235,235,235)J.TextLabel.Text=g[1]if D>os.time()-z then J.New.Visible=true J.TextLabel.Position=UDim2.new(.16,0,.15,0)J.TextLabel.Size=UDim2.new(.8,0,.7,0)end end J.Visible=true J.Parent=updatesFrame end end updatesFrame.CanvasSize=UDim2.new(0,0,0,g*x.AbsoluteSize.Y)end
-- << UPDATES >>
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
