Garry's Mod Wiki

DButton:SetMaterial

  DButton:SetMaterial( IMaterial img = nil )

Description

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

See DButton:SetImage for equivalent function that uses file paths instead. Also see DImageButton.

Arguments

1 IMaterial img = nil
The material to use. If this is nil, the image background is removed.