HelpDCheckboxLabel Check Mark Color?

Posts 1–3 of 3 · Page 1 of 1
local DermaCheckbox = vgui.Create( "DCheckBoxLabel" ) // Create the checkbox
DermaCheckbox:SetParent( DermaPanel )
DermaCheckbox:SetPos( 25, 50 ) // Set the position
DermaCheckbox:SetText( "God Mode" ) // Set the text next to the box
DermaCheckbox:SetConVar( "sbox_godmode" ) // Change a ConVar when the box it ticked/unticked
DermaCheckbox:SetValue( 0 ) // Initial value ( will determine whether the box is ticked too )
DermaCheckbox:SizeToContents() // Make its size the same as the contents
DermaCheckbox:SetColor( "Blue" ) // Set the color to the check mark
checkbox.Paint = function() --(make custom checkbox here) end
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us