local F=8 local t=require((script.Parent.Parent:WaitForChild("\078\101\120\117\115\073\110\115\116\097\110\099\101")):WaitForChild("\078\101\120\117\115\073\110\115\116\097\110\099\101"))local l=t:Extend()l:SetClassName("\067\108\111\115\101\066\117\116\116\111\110\086\105\101\119")function l.__new(l,t)l:InitializeSuper()local B=Instance.new("\070\114\097\109\101")B.BackgroundTransparency=.5 B.BackgroundColor3=Color3.new(0,0,0)B.Size=UDim2.new(1,-12,1/F,0)B.SizeConstraint=Enum.SizeConstraint.RelativeXX B.Parent=t l.Container=B local A=Instance.new("\085\073\067\111\114\110\101\114")A.CornerRadius=UDim.new(.1,0)A.Parent=B local U=Instance.new("\084\101\120\116\066\117\116\116\111\110")U.AnchorPoint=Vector2.new(.5,.5)U.BackgroundColor3=Color3.new(.66666666666667,0,0)U.Size=UDim2.new(2,0,.7,0)U.Position=UDim2.new(.5,0,.5,0)U.SizeConstraint=Enum.SizeConstraint.RelativeYY U.Name="\067\108\111\115\101"U.Text="\067\108\111\115\101"U.Font=Enum.Font.SourceSansBold U.TextColor3=Color3.new(1,1,1)U.TextStrokeColor3=Color3.new(0,0,0)U.TextStrokeTransparency=0 U.TextScaled=true U.Parent=B l.CloseButton=U local v=Instance.new("\085\073\067\111\114\110\101\114")v.CornerRadius=UDim.new(.2,0)v.Parent=U end return l
--[[
TheNexusAvenger

Displays a close button for the bottom of the list.
--]]

local VIEW_ASPECT_RATIO = 8

local NexusInstance = require(script.Parent.Parent:WaitForChild("NexusInstance"):WaitForChild("NexusInstance"))

local CloseButtonView = NexusInstance:Extend()
CloseButtonView:SetClassName("CloseButtonView")



--[[
Creates the view.
--]]
function CloseButtonView:__new(Parent)
    self:InitializeSuper()

    --Create the frames.
    local Container = Instance.new("Frame")
    Container.BackgroundTransparency = 0.5
    Container.BackgroundColor3 = Color3.new(0,0,0)
    Container.Size = UDim2.new(1,-12,1/VIEW_ASPECT_RATIO,0)
    Container.SizeConstraint = Enum.SizeConstraint.RelativeXX
    Container.Parent = Parent
    self.Container = Container

    local ContainerUICorner = Instance.new("UICorner")
    ContainerUICorner.CornerRadius = UDim.new(0.1,0)
    ContainerUICorner.Parent = Container

    local CloseButton = Instance.new("TextButton")
    CloseButton.AnchorPoint = Vector2.new(0.5,0.5)
    CloseButton.BackgroundColor3 = Color3.new(170/255,0,0)
    CloseButton.Size = UDim2.new(2,0,0.7,0)
    CloseButton.Position = UDim2.new(0.5,0,0.5,0)
    CloseButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
    CloseButton.Name = "Close"
    CloseButton.Text = "Close"
    CloseButton.Font = Enum.Font.SourceSansBold
    CloseButton.TextColor3 = Color3.new(1,1,1)
    CloseButton.TextStrokeColor3 = Color3.new(0,0,0)
    CloseButton.TextStrokeTransparency = 0
    CloseButton.TextScaled = true
    CloseButton.Parent = Container
    self.CloseButton = CloseButton

    local CloseButtonUICorner = Instance.new("UICorner")
    CloseButtonUICorner.CornerRadius = UDim.new(0.2,0)
    CloseButtonUICorner.Parent = CloseButton
end



return CloseButtonView