Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function NPC_ShopMenu()
  2. local ShopMenu = vgui.Create( "DFrame" )
  3. ShopMenu:SetSize( 600, 600 )
  4. ShopMenu:Center()
  5. ShopMenu:SetTitle( "" )
  6. ShopMenu:SetVisible( true )
  7. ShopMenu:SetDraggable( false )
  8. ShopMenu:ShowCloseButton( false )
  9. ShopMenu:MakePopup()
  10. ShopMenu:SizeToContents()
  11. DFrame:GetBackgroundBlur()
  12. ShopMenu.Paint = function(CHPaint)
  13.  
  14. -- Draw the menu background color.
  15. draw.RoundedBox( 5, 0, 0, CHPaint:GetWide(), CHPaint:GetTall(), Color( 255, 255, 255, 0 ) )
  16.  
  17. -- Draw the outline of the menu.
  18. surface.SetDrawColor(0,0,0,255)
  19. surface.DrawOutlinedRect(0, 0, CHPaint:GetWide(), CHPaint:GetTall())
  20.  
  21. -- Draw the top title.
  22. draw.SimpleText("Vendeur de Cigarettes", "UiBold", 300,15, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement