Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function menu()
- local base = vgui.Create( "DFrame" )
- base:SetSize( 360, 355 )
- base:SetTitle( "Super cool derma" )
- base:SetVisible( true )
- base:SetDraggable( true )
- base:ShowCloseButton( true )
- base:MakePopup()
- base:Center()
- function base:Paint( w, h )
- draw.RoundedBox( 0, 1, 1, w-2, h-2, Color( 65, 65, 65, 200 ) )
- surface.SetDrawColor( 6, 150, 150, 255 )
- surface.DrawOutlinedRect( 1, 1, w-2, h-2 )
- surface.SetDrawColor( 255, 255, 255, 255 )
- surface.DrawOutlinedRect( 100, 35, w-108, h-43 )
- end
- local GodCheck
- local GodCheck2
- local Button1 = vgui.Create( "DColorButton", base )
- Button1:SetPos( 8, 35 )
- Button1:SetSize( 85, 24 )
- Button1:Paint( 20, 30 )
- Button1:SetText( " Button1" )
- Button1:SetColor( Color( 6, 110, 160 ) )
- function Button1:DoClick()
- local GodCheck = vgui.Create( "DCheckBoxLabel", base )
- GodCheck:SetPos( 110, 43 ) -- +20 each checkbox for good spacing
- GodCheck:SetText( "God Mode" )
- GodCheck:SetConVar( "sbox_godmode" )
- GodCheck:SizeToContents()
- GodCheck2:Remove()
- end
- local Button2 = vgui.Create( "DColorButton", base )
- Button2:SetPos( 8, 75 )
- Button2:SetSize( 85, 24 )
- Button2:Paint( 20, 30 )
- Button2:SetText( " Button2" )
- Button2:SetColor( Color( 6, 110, 160 ) )
- function Button2:DoClick()
- local GodCheck2 = vgui.Create( "DCheckBoxLabel", base )
- GodCheck2:SetPos( 110, 63 )
- GodCheck2:SetText( "Cow Worship" )
- GodCheck2:SetConVar( "sbox_godmode" )
- GodCheck2:SizeToContents()
- GodCheck:Remove()
- end
- local Button3 = vgui.Create( "DColorButton", base )
- Button3:SetPos( 8, 115 )
- Button3:SetSize( 85, 24 )
- Button3:Paint( 20, 30 )
- Button3:SetText( " Button3" )
- Button3:SetColor( Color( 6, 110, 160 ) )
- local Button4 = vgui.Create( "DColorButton", base )
- Button4:SetPos( 8, 155 )
- Button4:SetSize( 85, 24 )
- Button4:Paint( 20, 30 )
- Button4:SetText( " Button4" )
- Button4:SetColor( Color( 6, 110, 160 ) )
- end
- concommand.Add( "openmenu", menu )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement