G.ScreenScale

From GMod Wiki

Jump to: navigation, search
Function
Syntax ScreenScale( Number size )
Where is this used?
Description:
Returns a number based on the size given and the screen's width.
Returns: Number
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.ScreenScale]G.ScreenScale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSource Code.
Used onNewerClient.png
Code
function ScreenScale( size )
	return size * ( ScrW() / 640.0 )	
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox