local R=script.Parent.Parent.Parent.packages local D=require(R.fusion)local o=require(R.states)local N=D.Children local G=D.Value local I=D.Ref local m=D.New return function(R,D)local U=G()local P=(m("\083\099\114\111\108\108\105\110\103\070\114\097\109\101"))({[I]=U;Name=R,BottomImage="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\083\099\114\111\108\108\047\115\099\114\111\108\108-\098\111\116\116\111\109\046\112\110\103",ScrollBarImageColor3=Color3.fromRGB(134,134,134);ScrollBarThickness=3,TopImage="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\083\099\114\111\108\108\047\115\099\114\111\108\108-\116\111\112\046\112\110\103",BackgroundColor3=Color3.fromRGB(255,255,255),BackgroundTransparency=1;BorderColor3=Color3.fromRGB(0,0,0),BorderSizePixel=0,CanvasSize=UDim2.new(0,0,0,0),Position=UDim2.fromOffset(0,55);AutomaticCanvasSize=Enum.AutomaticSize.Y,Selectable=false,Size=UDim2.new(1,0,1,-57);SelectionGroup=false,[N]={(m("\085\073\080\097\100\100\105\110\103"))({Name="\085\073\080\097\100\100\105\110\103",PaddingBottom=UDim.new(0,10),PaddingLeft=UDim.new(0,10);PaddingRight=UDim.new(0,10),PaddingTop=UDim.new(0,12)}),(m("\085\073\076\105\115\116\076\097\121\111\117\116"))({Name="\085\073\076\105\115\116\076\097\121\111\117\116";Padding=UDim.new(0,10),HorizontalAlignment=Enum.HorizontalAlignment.Center,SortOrder=Enum.SortOrder.LayoutOrder}),D}})o.add("\083\099\114\111\108\108\105\110\103\070\114\097\109\101\115",P,R)return P end
--[[
	File: scroll.lua
	Creates a input box in the window
]]

-- < Packages >
local Packages = script.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local States = require(Packages.states)

-- < Variables >
local Children = Fusion.Children
local Value = Fusion.Value
local Ref = Fusion.Ref
local New = Fusion.New

-- < Component >
return function(name, children)
	local scrollRef = Value()

	local Scroll = New("ScrollingFrame")({
		[Ref] = scrollRef,

		Name = name,
		BottomImage = "rbxasset://textures/ui/Scroll/scroll-bottom.png",
		ScrollBarImageColor3 = Color3.fromRGB(134, 134, 134),
		ScrollBarThickness = 3,
		TopImage = "rbxasset://textures/ui/Scroll/scroll-top.png",
		BackgroundColor3 = Color3.fromRGB(255, 255, 255),
		BackgroundTransparency = 1,
		BorderColor3 = Color3.fromRGB(0, 0, 0),
		BorderSizePixel = 0,
		CanvasSize = UDim2.new(0, 0, 0, 0),
		Position = UDim2.fromOffset(0, 55),
		AutomaticCanvasSize = Enum.AutomaticSize.Y,
		Selectable = false,
		Size = UDim2.new(1, 0, 1, -57),
		SelectionGroup = false,

		[Children] = {
			New("UIPadding")({
				Name = "UIPadding",
				PaddingBottom = UDim.new(0, 10),
				PaddingLeft = UDim.new(0, 10),
				PaddingRight = UDim.new(0, 10),
				PaddingTop = UDim.new(0, 12),
			}),

			New("UIListLayout")({
				Name = "UIListLayout",
				Padding = UDim.new(0, 10),
				HorizontalAlignment = Enum.HorizontalAlignment.Center,
				SortOrder = Enum.SortOrder.LayoutOrder,
			}),

			children,
		},
	})

	States.add("ScrollingFrames", Scroll, name)

	return Scroll
end
