local PANEL ={}functionPANEL:Init()
-- Guarantees only one instance of the frame is open at a time.ifIsValid(SingleDFrame) thenSingleDFrame:Remove()
endlocal sw =ScrW()
local sh =ScrH()
self:SetSize(sw *0.25, sh *0.5)
self:SetTitle("Window (Scroll)")
self:Center()
self:MakePopup()
self.Canvas =self:Add("DScrollPanel")
self.Canvas:Dock(FILL)
endvgui.Register("DFrameScrollable", PANEL, "DFrame")
SingleDFrame =vgui.Create("DFrameScrollable")