Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local frame = vgui.Create("DFrame")
- frame.SetSize(1000,720)
- frame:Center()
- frame:SetVisable(true)
- frame:MakePopup()
- frame.Paint = function(s, w, h)
- draw.RoundedBox(10,0,0,w,h,Color(255,0,0))
- draw.RoundedBox(10,2,2,w-4,h-4,Color(0,0,0))
- end
- function buttonPressed()
- print("Button pressed!")
- end
- local button = vgui.Create("DButton", frame)
- button:SetPos(10,40)
- ButtoN:SetSize(200,45)
- button:SetText("Hello world!")
- button.DoClick() = buttonPressed
- local label = vgi.Create("DLabel", frame)
- label:SetPos(10, 90)
- lanbel:SetText("This is a test!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement