local Q=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101"))local h=Q:GetResource("\069\120\116\101\114\110\097\108\085\116\105\108\046\078\101\120\117\115\073\110\115\116\097\110\099\101\046\078\101\120\117\115\079\098\106\101\099\116")local N=h:Extend()N:SetClassName("\066\097\099\107\103\114\111\117\110\100")function N.__new(h,Q)h:InitializeSuper()local N=Instance.new("\073\109\097\103\101\076\097\098\101\108")N.BackgroundTransparency=1 N.Size=UDim2.new(1,0,1,0)N.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\052\056\054\052"N.ScaleType=Enum.ScaleType.Tile N.Parent=Q h.FenceImage=N;(N:GetPropertyChangedSignal("\065\098\115\111\108\117\116\101\083\105\122\101")):Connect(function()h:UpdateImageSize()end)h:UpdateImageSize()end function N.UpdateImageSize(Q)Q.FenceImage.TileSize=UDim2.new(1/(Q.FenceImage.AbsoluteSize.X/(Q.FenceImage.AbsoluteSize.Y*8)),0,2,0)end return N
--[[
TheNexusAvenger

Background for the bottom bar.
--]]

local ReplicatedStorageProject = require(game:GetService("ReplicatedStorage"):WaitForChild("Project"):WaitForChild("ReplicatedStorage"))

local NexusObject = ReplicatedStorageProject:GetResource("ExternalUtil.NexusInstance.NexusObject")

local Background = NexusObject:Extend()
Background:SetClassName("Background")



--[[
Creates a background.
--]]
function Background:__new(BottomFrame)
    self:InitializeSuper()

    --Create the background.
    local FenceImage = Instance.new("ImageLabel")
    FenceImage.BackgroundTransparency = 1
    FenceImage.Size = UDim2.new(1,0,1,0)
    FenceImage.Image = "rbxassetid://132724864"
    FenceImage.ScaleType = Enum.ScaleType.Tile
    FenceImage.Parent = BottomFrame
    self.FenceImage = FenceImage

    --Set up updating the tile size.
    FenceImage:GetPropertyChangedSignal("AbsoluteSize"):Connect(function()
        self:UpdateImageSize()
    end)
    self:UpdateImageSize()
end

--[[
Updates the tile size of the background.
--]]
function Background:UpdateImageSize()
    self.FenceImage.TileSize = UDim2.new(1/(self.FenceImage.AbsoluteSize.X/(self.FenceImage.AbsoluteSize.Y * 8)),0,2,0)
end



return Background