DImageButton/SetKeepAspect

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(creatre)
 
 
Line 2: Line 2:
 
|Description=Sets whether the {{Type|DImageButton}} should keep the aspect ratio of its image. Equivalent of {{ClassFunction|DImage|SetKeepAspect}}.
 
|Description=Sets whether the {{Type|DImageButton}} should keep the aspect ratio of its image. Equivalent of {{ClassFunction|DImage|SetKeepAspect}}.
  
Note that this will not try to fix the image inside the button, but instead it will fill the button with the image.
+
Note that this will not try to fit the image inside the button, but instead it will fill the button with the image.
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 06:20, 19 January 2017

 DImageButton:SetKeepAspect( )

DescriptionPanelFunc

Sets whether the DImageButton should keep the aspect ratio of its image. Equivalent of DImage:SetKeepAspect.

Note that this will not try to fit the image inside the button, but instead it will fill the button with the image.

Arguments

boolean keep

true to keep the aspect ratio, false not to
Personal tools
Navigation