Garry's Mod Wiki

Derma_Hook

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

Page Links


Special Pages


Wikis

?

Render Time: 36ms

Session 0
DB GetPage 2
Generate Html 6
SaveChanges 13
Render Body 0
Render Sidebar 13