Garry's Mod Wiki

Revision Difference

DButton:SetMaterial#528063

<function name="SetMaterial" parent="DButton" type="panelfunc"> <ispanel>yes</ispanel> <description> Sets an image to be displayed as the button's background. See <page>DButton:SetImage</page> for equivalent function that uses file paths instead. Also see <page>DImageButton</page>. </description> <added>2020.08.12</added> <realm>Client</realm> <args> <arg name="img" type="IMaterial" default="nil">The material to use. If this is nil, the image background is removed.</arg> </args> </function>