DForm:ComboBox
Description
Arguments
Returns
Example
local frame = vgui.Create( "DFrame" )
frame:SetSize( ScrW() / 2, ScrH() / 2 )
frame:MakePopup()
local form = frame:Add("DForm")
form:Dock( FILL )
form:DockMargin( 5, 5, 5, 5 )
local combobox, label = form:ComboBox( "test", "sv_accelerate" )
combobox:AddChoice( "10" ) -- 10 will be used as convar value
combobox:AddChoice( "1000", 100 ) -- 100 will be used as convar value