Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local frame = vgui.Create("DFrame")
  2. frame.SetSize(1000,720)
  3. frame:Center()
  4. frame:SetVisable(true)
  5. frame:MakePopup()
  6. frame.Paint = function(s, w, h)
  7.  
  8. draw.RoundedBox(10,0,0,w,h,Color(255,0,0))
  9. draw.RoundedBox(10,2,2,w-4,h-4,Color(0,0,0))
  10.  
  11. end
  12.  
  13.  
  14. function buttonPressed()
  15.  
  16. print("Button pressed!")
  17.  
  18. end
  19.  
  20. local button = vgui.Create("DButton", frame)
  21. button:SetPos(10,40)
  22. ButtoN:SetSize(200,45)
  23. button:SetText("Hello world!")
  24. button.DoClick() = buttonPressed
  25.  
  26. local label = vgi.Create("DLabel", frame)
  27. label:SetPos(10, 90)
  28. lanbel:SetText("This is a test!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement