Garry's Mod Wiki

Revision Difference

DButton:SetImage#514207

<function name="SetImage" parent="DButton" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>⤶ Sets an image to be displayed as the button's background.⤶ ⤶ Also see: <page>DImageButton</page>⤶ </description>⤶ <realm>Client</realm>⤶ <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>⤶ ⤶