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.

Page Links


Special Pages


Wikis

?

Render Time: 66ms

DB GetPage 40
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 12