Revision Difference
DButton:SetMaterial#549927
<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>⤶
<realm>Client and Menu</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>