Garry's Mod Wiki

DProperty_Boolean

DProperty_Boolean

Description

This is used internally - although you're able to use it you probably shouldn't.

Checkbox control for the DProperties panel.

Parent

Derives methods, etc not listed on this page from DProperty_Generic.

Example

Example of this panel

local Panel = vgui.Create( "DFrame" ) Panel:SetSize( 500, 500 ) Panel:MakePopup() local props = vgui.Create( "DProperties", Panel ) props:Dock( FILL ) local boolRow = props:CreateRow( "MyCategory", "CheckboxExample" ) boolRow:Setup( "Boolean" ) boolRow:SetValue( true ) boolRow.DataChanged = function( self, data ) MsgN( "Data changed: ", data ) end

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 2
Generate Html 5
SaveChanges (1) 6
Render Body 0
Render Sidebar 7