derma.SkinHook

From GMod Wiki

Jump to: navigation, search
Function
Syntax derma.SkinHook( String Hook Type, String Hook Name, Panel Panel to get the skin from, Integer Width β, Integer Height β )
Where is this used?
Description:
Call the specified skin hook
Returns: None
Part of Library: Derma
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Derma.SkinHook]Derma.SkinHook [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionTaken from vgui/DMenuOption.lua.
Used onNewerClient.png
Code
/*---------------------------------------------------------
   Name: PerformLayout
---------------------------------------------------------*/
function PANEL:PerformLayout()
 
	derma.SkinHook( "Layout", "MenuOption", self )
 
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox