newspeoplefor developersdocumentationdownloads

nGuiSkin Script Interface

nguiskin:

Super Class:

C++ Class:

Info

Holds a GUI skin description.

Commands:


settextureprefix

Command Input:
s(Prefix)
Command Output:
v
Command Description:
Set the path prefix for the texture names.

gettextureprefix

Command Input:
v
Command Output:
s(Prefix)
Command Description:
Get the path prefix for the texture names.

settexturepostfix

Command Input:
s(Postfix)
Command Output:
v
Command Description:
Set the path postfix for the texture names.

gettexturepostfix

Command Input:
v
Command Output:
s(Prefix)
Command Description:
Get the path postfix for the texture names.

setactivewindowcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the modulation color for active windows.

getactivewindowcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the modulation color for active windows.

setinactivewindowcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the modulation color for inactive windows.

getinactivewindowcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the modulation color for inactive windows.

settextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the default text color.

gettextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the default text color.

settitletextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the default text color for the window titles.

gettitletextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the text color for window titles.

setbuttontextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the default button text color.

getbuttontextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the text color for buttons.

setlabeltextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the default label text color.

getlabeltextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the text color for labels.

setentrytextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the text entry fiel text color.

getentrytextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the text entry fiel text color.

setmenutextcolor

Command Input:
ffff(Color)
Command Output:
v
Command Description:
Set the menu entry text color.

getmenutextcolor

Command Input:
v
Command Output:
ffff(Color)
Command Description:
Get the menu entry text color.

setwindowborder

Command Input:
ffff(BorderRect: left, top, right, bottom)
Command Output:
v
Command Description:
Set the layout border size around the window's client area.

getwindowbordersize

Command Input:
v
Command Output:
ffff(BorderRect)
Command Description:
Get the layout border size around the window's client area.

beginbrushes

Command Input:
v
Command Output:
v
Command Description:
Begin adding brushes. This will clear the current brush definitions.

addbrush

Command Input:
s(BrushName), s(TexturePath), ffff(x,y,w,h), ffff(rgba)
Command Output:
v
Command Description:
Defines a brush by its name, a path to a texture, and a rectangle in the texture. The rectangle is given in absolute texel coordinates (0..texWidth).

adddynamicbrush

Command Input:
s(BrushName)
Command Output:
v
Command Description:
Defines a dynamic brush by its name and render target size.

endbrushes

Command Input:
v
Command Output:
v
Command Description:
Finish adding brushes.

setsoundvolume

Command Input:
s(Sound), f(Volume)
Command Output:
v
Command Description:
Define the volume for a sound.

getsoundvolume

Command Input:
s(Sound)
Command Output:
f(Volume)
Command Description:
Returns the volume of a sound.

setsound

Command Input:
s(Sound), s(Filename)
Command Output:
v
Command Description:
Define a sound filename.

getsound

Command Input:
s(Sound)
Command Output:
s(Filename)
Command Description:
Returns filename associated with a sound.

setwindowfont

Command Input:
s(WindowFont)
Command Output:
v
Command Description:
Set name of font to use for text inside windows.

getwindowfont

Command Input:
v
Command Output:
s(WindowFont)
Command Description:
Get name of font to use for text inside windows.

setbuttonfont

Command Input:
s(ButtonFont)
Command Output:
v
Command Description:
Set name of font to use for buttons.

getbuttonfont

Command Input:
v
Command Output:
s(ButtonFont)
Command Description:
Get name of font to use for buttons.

setlabelfont

Command Input:
s(LabelFont)
Command Output:
v
Command Description:
Set name of font to use for labels.

getlabelfont

Command Input:
v
Command Output:
s(LabelFont)
Command Description:
Get name of font to use for labels.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.