function DropdownClass.new(Q,R)local Y=setmetatable({},DropdownClass)Y._Maid=Lazy.Utilities.Maid.new()Y._ChangedBind=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")Y._Options={}Y._Selected=nil Y.Button=Q Y.ListFrame=R Y.Changed=Y._ChangedBind.Event init(Y)Y:Set(Y._Options[1])return Y end function DropdownClass.Create(Q,R)R=R or#Q local Y=DROP_BUTTON:Clone()local n=Lazy.Constructors.List.Create(Q,R)n.Position=UDim2.new(0,0,1,0)n.Size=UDim2.new(1,0,R,0)n.Visible=false n.Parent=Y return DropdownClass.new(Y,n)end


function DropdownClass.new(button, listFrame)
	local self = setmetatable({}, DropdownClass)
	
	self._Maid = Lazy.Utilities.Maid.new()
	self._ChangedBind = Instance.new("BindableEvent")
	self._Options = {}
	self._Selected = nil
	
	self.Button = button
	self.ListFrame = listFrame
	self.Changed = self._ChangedBind.Event
	
	init(self)
	self:Set(self._Options[1])
	
	return self
end

function DropdownClass.Create(list, max)
	max = max or #list
	
	local button = DROP_BUTTON:Clone()
	local listFrame = Lazy.Constructors.List.Create(list, max)
	
	listFrame.Position = UDim2.new(0, 0, 1, 0)
	listFrame.Size = UDim2.new(1, 0, max, 0)
	listFrame.Visible = false
	listFrame.Parent = button
	
	return DropdownClass.new(button, listFrame)
end
