GM:ForceDermaSkin

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

Contents

Description

Called to allow override of the default Derma skin for all panels.

NOTE This hook is only called on Lua start up, changing its value (or adding new hooks) after it has been already called will not have any effect.

Returns

string

A case sensitive Derma skin name to be used as default, registered previously via derma.DefineSkin.
Returning nothing, nil or invalid name will make it fallback to the "Default" skin.

Examples

Example

Example on how to use this hook. This will make that all panels

hook.Add( "ForceDermaSkin", "my_new_skin", function()
	return "some_skin"
end )


Personal tools
Navigation