Derma_Hook

From Garry's Mod
Jump to: navigation, search
 Derma_Hook( )

Contents

Description

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

Arguments

Panel panel

Panel to add the hook to

Arguments

string functionName

Name of panel function to create

Arguments

string hookName

Name of Derma skin hook to call within the function

Arguments

string typeName

Type of element to call Derma skin hook for

Examples

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
Personal tools
Navigation