Garry's Mod Wiki
Description
Returns a number based on the size argument and the players' screen width. This is used to scale user interface (UI) elements to be consistently sized and positioned across all screen resolutions.
The width is scaled in relation to 640x480 resolution, and does not take into account non the aspect ratio. See example below for how to adjust or that.
This function can also be used for scaling font sizes.
See ScreenScaleH for a function that scales from height.
Arguments
Returns
Example
Prints a scaled number based on the number 96, 400 and 640.
Example
Adjust for non 4:3 aspect ratios.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...