DSysButton.SetType

From GMod Wiki

Jump to: navigation, search
Function
Syntax DSysButton:SetType( String text )
Description:
Sets the text display.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DSysButton.SetType]DSysButton.SetType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the text display.
Used onNewerClient.png
Code
myButton = vgui.Create("DSysButton", DermaPanel)
myButton:SetType( "up" )
 
 
OutputDSysButton-SetType.PNG


Additional Notes

The types of buttons you can use are as follows:

up,
down,
left,
right,
updown,
close,
grip,
tick,
question,
none.


Result:

DSysButton-SetTypeAll.PNG

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox