-- << DISPLAY CERTAIN PAGES >>

local homeSortOrder = {"About", "Commands", "Special", "Admin", "Settings"}
function module:DisplayPagesAccordingToRank(updateCommands)
	for pageName, rankId in pairs(main.settings.RankRequiredToViewPage) do
		local pageButton = pages.Home:FindFirstChild(pageName)
		rankId = tonumber(rankId)
		if not rankId then
			rankId = 0
		end
		if pageButton then
			if pageName ~= "About" and pageName ~= "Special" and main.pdata.Rank < rankId then
			pageButton.RankBlocker.Visible = true
				local rankName = main:GetModule("cf"):GetRankName(rankId)
				pageButton.RankBlocker.TextLabel.Text = rankName.."+"
			else
				pageButton.RankBlocker.Visible = false
			end
		end
	end
	--[[
	local yScaleTotal = 0.08
	for i, pageName in pairs(homeSortOrder) do
		local pageButton = pages.Home:FindFirstChild(pageName)
		if pageButton and pageButton.Visible then
			pageButton.Position = UDim2.new(0, 0, yScaleTotal, 0)
			yScaleTotal = yScaleTotal + pageButton.Size.Y.Scale
		end
	end--]]
end



