Garry's Mod Wiki

DPropertySheet:SetupCloseButton

  DPropertySheet:SetupCloseButton( function func )

Description

Creates a close button on the right side of the DPropertySheet that will run the given callback function when pressed.

Arguments

1 function func
Callback function to be called when the close button is pressed.