surface/ScreenHeight

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=ScreenHeight |Parent=surface |Description=Returns the height of the current client's screen. |Realm=Client |IsClass=No }} {{Ret |type=number |desc= screen...")
 
(Deprecated surface.ScreenHeight)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=ScreenHeight
+
|Description={{Deprecated|You should use {{GlobalFunction|ScrH}}() instead.}} Returns the height of the current client's screen.
|Parent=surface
+
|Description=Returns the height of the current client's screen.
+
 
|Realm=Client
 
|Realm=Client
 
|IsClass=No
 
|IsClass=No
 +
|Name=ScreenHeight
 +
|Parent=surface
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc= screenHeight
+
|desc=screenHeight
 
}}
 
}}
 
{{Example
 
{{Example
| Description = Prints out the current height of the screen.
+
|Description=Prints out the current height of the screen.
| Code =  
+
|Code=MsgN("Screen height: " .. surface.ScreenHeight())
MsgN("Screen height: " .. surface.ScreenHeight())
+
|Output=Screen height: 1080
| Output = Screen height: 1080
+
 
}}
 
}}

Revision as of 07:04, 16 June 2015

 surface.ScreenHeight( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

You should use ScrH() instead.
Returns the height of the current client's screen.

Returns

number

screenHeight

Examples

Example

Prints out the current height of the screen.

MsgN("Screen height: " .. surface.ScreenHeight())

Output:

Screen height: 1080
Personal tools
Navigation