local H=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\078\101\118\101\114\109\111\114\101"))local A=H("\083\099\114\101\101\110\067\111\118\101\114")local Q={}Q.__index=Q Q.ClassName="\083\099\114\101\101\110\067\111\118\101\114\066\117\105\108\100\101\114"function Q.new(H)local A=setmetatable({},Q)A._playerGui=H or error("\078\111 \080\108\097\121\101\114\071\117\105")return A end function Q.Create(Q,H)local u=Instance.new("\083\099\114\101\101\110\071\117\105")u.Name="\083\099\114\101\101\110\067\111\118\101\114"if H.DisplayOrder then u.DisplayOrder=H.DisplayOrder end local T=Instance.new("\070\114\097\109\101")T.Name="\083\099\114\101\101\110\067\111\118\101\114"T.BorderSizePixel=0 T.BackgroundColor3=Color3.fromRGB(0,0,0)T.Active=true T.Size=UDim2.new(1,0,1,36)T.Position=UDim2.new(0,0,0,-36)for A,Q in pairs({"\066\097\099\107\103\114\111\117\110\100\067\111\108\111\114\051"})do if H[Q]then T[Q]=H[Q]end end T.Parent=u local V=A.new(T)V:SetScreenGui(u)u.Parent=Q._playerGui return V end return Q
---
-- @classmod ScreenCoverBuilder

local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))

local ScreenCover = require("ScreenCover")

local ScreenCoverBuilder = {}
ScreenCoverBuilder.__index = ScreenCoverBuilder
ScreenCoverBuilder.ClassName = "ScreenCoverBuilder"

function ScreenCoverBuilder.new(PlayerGui)
	local self = setmetatable({}, ScreenCoverBuilder)

	self._playerGui = PlayerGui or error("No PlayerGui")

	return self
end

--- Creates new ScreenCover
function ScreenCoverBuilder:Create(options)
	local screenGui = Instance.new("ScreenGui")
	screenGui.Name = "ScreenCover"

	if options.DisplayOrder then
		screenGui.DisplayOrder = options.DisplayOrder
	end

	local frame = Instance.new("Frame")
	frame.Name = "ScreenCover"
	frame.BorderSizePixel = 0
	frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
	frame.Active = true
	frame.Size = UDim2.new(1, 0, 1, 36)
	frame.Position = UDim2.new(0, 0, 0, -36)

	for _, property in pairs({"BackgroundColor3"}) do
		if options[property] then
			frame[property] = options[property]
		end
	end

	frame.Parent = screenGui

	local cover = ScreenCover.new(frame)
	cover:SetScreenGui(screenGui)

	screenGui.Parent = self._playerGui

	return cover
end


return ScreenCoverBuilder