Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NPC_ShopMenu()
- local ShopMenu = vgui.Create( "DFrame" )
- ShopMenu:SetSize( 600, 600 )
- ShopMenu:Center()
- ShopMenu:SetTitle( "" )
- ShopMenu:SetVisible( true )
- ShopMenu:SetDraggable( false )
- ShopMenu:ShowCloseButton( false )
- ShopMenu:MakePopup()
- ShopMenu:SizeToContents()
- DFrame:GetBackgroundBlur()
- ShopMenu.Paint = function(CHPaint)
- -- Draw the menu background color.
- draw.RoundedBox( 5, 0, 0, CHPaint:GetWide(), CHPaint:GetTall(), Color( 255, 255, 255, 0 ) )
- -- Draw the outline of the menu.
- surface.SetDrawColor(0,0,0,255)
- surface.DrawOutlinedRect(0, 0, CHPaint:GetWide(), CHPaint:GetTall())
- -- Draw the top title.
- draw.SimpleText("Vendeur de Cigarettes", "UiBold", 300,15, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement