0 Members and 2 Guests are viewing this topic.
local BackGround = vgui.Create( "DFrame" )BackGround:SetSize( 1000,500 )BackGround:SetPos( 50,50 )BackGround:SetTitle("Menu")BackGround:SetDraggable( true )BackGround:ShowCloseButton( true )BackGround:MakePopup()BackGround:SetVisible( true )BackGround.Paintdraw.RoundedBox( 6, 100, 50, 100, 23, Color( 255, 255, 255, 150 ) )
[ERROR] lua/autorun/client/menu.lua:10: '=' expected near 'draw' 1. unknown - lua/autorun/client/menu.lua:0
BackGround.Paint = function() draw.RoundedBox( 6, 100, 50, 100, 23, Color( 255, 255, 255, 150 ) )end
if you want to modify the paint hook of the DFrame control you have to do it inside of a function. Try this:Code: [Select]BackGround.Paint = function() draw.RoundedBox( 6, 100, 50, 100, 23, Color( 255, 255, 255, 150 ) )end
local TestingComboBox = vgui.Create( "DComboBox", BackGround )TestingComboBox:SetPos( 10, 35 )TestingComboBox:SetSize( 100, 185 )TestingComboBox:SetMultiple( false )TestingComboBox:AddItem( "Add" ) -- Add our optionsTestingComboBox:AddItem( "Some" )TestingComboBox:AddItem( "Options" )TestingComboBox:AddItem( "Here" )