G.ScreenScale

From GMod Wiki

Revision as of 23:40, 24 March 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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