Garry's Mod Wiki

DButton:SetImage

DButton:SetImage

  DButton:SetImage( string img = "nil" )

Description

Sets an image to be displayed as the button's background.

See DButton:SetMaterial for equivalent function that uses IMaterial instead.

Also see: DImageButton

Arguments

1 string img = "nil"
The image file to use, relative to /materials. If this is nil, the image background is removed.

Special Pages


Wikis

?

Render Time: 59ms

DB GetPage 42
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 6