Added Combo control for DProperties #783

Merged
merged 1 commit into from Aug 12, 2014

Projects

None yet

2 participants

@KrakenZ
Contributor
KrakenZ commented Aug 12, 2014

prop_combo
Usage:

local DP = vgui.Create( "DProperties",  Panel )

local choice = DP:CreateRow( "Choices", "Combo #2: Custom default text" )
choice:Setup( "Combo", "Select type..." )
choice:AddChoice( "Table", {} )
choice:AddChoice( "Function", function()end )
choice:AddChoice( "String", "Hello world" )
choice.DataChanged = function( self, data )
    for k, v in pairs( data ) do
        print( k, v )
    end
end

I will make fully documented wiki pages if merged.

@robotboy655 robotboy655 merged commit c02baef into garrynewman:master Aug 12, 2014
@KrakenZ KrakenZ deleted the unknown repository branch Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment