Revision Difference
DButton:SetImage#561248
<function name="SetImage" parent="DButton" type="panelfunc">
<description>⤶
⤶
<file line="32-L52">lua/vgui/dbutton.lua</file>⤶
<realm>Client and Menu</realm>⤶
⤶
<description>⤶
Sets an image to be displayed as the button's background.
See <page>DButton:SetMaterial</page> for equivalent function that uses <page>IMaterial</page> instead.
Also see: <page>DImageButton</page>
</description>
<realm>Client and Menu</realm>⤶
</description>
⤶
<args>
<arg name="img" type="string" default="nil">The image file to use, relative to `/materials`. If this is nil, the image background is removed.</arg>
</args>
</function>