Garry's Mod Wiki

DButton:SetMaterial

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.

Special Pages


Wikis

?

Render Time: 50ms

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