Garry's Mod Wiki

GM:ForceDermaSkin

string GM:ForceDermaSkin()

Description

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

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

1 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.

Example

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

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

Page Links


Special Pages


Wikis

?

Render Time: 39ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 17
Render Body 0
Render Sidebar 11