Garry's Mod Wiki

Garry's Mod Wiki

  Derma_Hook( Panel panel, string functionName, string hookName, string typeName )

Description

Creates panel method that calls the supplied Derma skin hook via derma.SkinHook

Arguments

1 Panel panel
Panel to add the hook to
2 string functionName
Name of panel function to create
3 string hookName
Name of Derma skin hook to call within the function
4 string typeName
Type of element to call Derma skin hook for

Example

Creates PANEL.Paint function to call Derma skin hook 'Paint' with type 'Panel'

Derma_Hook( PANEL, "Paint", "Paint", "Panel" )
Output: Panel is painted with correct derma hooks

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...