Garry's Mod Wiki

GWEN

GWEN is a system that allows you to load a spritesheet and generate a skin out of it.

Methods

function GWEN.CreateTextureBorder( number x, number y, number w, number h, number left, number top, number right, number bottom, IMaterial source = nil )
Used in derma skins to create a bordered rectangle drawing function from an image. The texture is taken either from last argument or from SKIN.GwenTexture
function GWEN.CreateTextureCentered( number x, number y, number w, number h )
Used in derma skins to create a rectangle drawing function from an image. The rectangle will not be scaled, but instead it will be drawn in the center of the box. The texture is taken from SKIN.GwenTexture
function GWEN.CreateTextureNormal( number x, number y, number w, number h )
Used in derma skins to create a rectangle drawing function from an image. The texture of the rectangle will be scaled. The texture is taken from SKIN.GwenTexture
table GWEN.TextureColor( number x, number y )
When used in a material skin, it returns a color value from a point in the skin image.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 4
Generate Html 4
SaveChanges 10
Render Body 0
Render Sidebar 11