Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if CLIENT then
- if IsValid(ROITE_PANEL) then // Checks if the panel exists
- ROITE_PANEL:Remove() // Removes the panel, so you won't see a duplicate after refreshing the script
- end
- local DermaPanel = vgui.Create( "DFrame" )
- ROITE_PANEL = DermaPanel // Assigns panel to a global value that can be accessed anywhere
- DermaPanel:SetPos( 100, 100 )
- DermaPanel:SetSize( 300, 200 )
- DermaPanel:SetTitle( "Magasin de Vêtements" )
- DermaPanel:SetDraggable( true )
- DermaPanel:Center()
- DermaPanel:ShowCloseButton( false )
- DermaPanel:SetPaintShadow( true )
- DermaPanel:MakePopup()
- local DermaButton = vgui.Create( "DButton" )
- DermaButton:SetParent( DermaPanel )
- DermaButton:SetText( "Say hi" )
- DermaButton:SetPos( 25, 50 )
- DermaButton:SetSize( 250, 30 )
- DermaButton.DoClick = function()
- Close()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement