safeZoneW: Difference between revisions
Jump to navigation
Jump to search
m (added description) |
Killzone Kid (talk | contribs) (description, picture example) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns | | [[Image:safezone.jpg|600px]]<br><br> | ||
Returns the width of the screen in screen measurement units. Taken from top left corner of the default viewport (0,0) of the screen and going in the same direction as the X axis, the value will be positive but resulting X will end up beyond the right border. Therefore in order to calculate X of the right screen border, the length of [[safeZoneX]] must be subtracted from [[safeZoneW]], but because it is negative, it must be added instead. <tt>_screenRightBorderX <nowiki>=</nowiki> [[safeZoneW]] + [[safeZoneX]]</tt>. The measurement units depend on the current screen resolution [[getResolution]]. See also [[SafeZone]] |= Description | |||
Line 23: | Line 25: | ||
|x1= < | |x1= <code>_screenWidth = [[safeZoneW]];</code> |= EXAMPLE1 | ||
|x2= <code>_screenRightBorderX = [[safeZoneW]] + [[safeZoneX]];</code> |= EXAMPLE12 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 01:04, 14 April 2016
Description
- Description:
Returns the width of the screen in screen measurement units. Taken from top left corner of the default viewport (0,0) of the screen and going in the same direction as the X axis, the value will be positive but resulting X will end up beyond the right border. Therefore in order to calculate X of the right screen border, the length of safeZoneX must be subtracted from safeZoneW, but because it is negative, it must be added instead. _screenRightBorderX = safeZoneW + safeZoneX. The measurement units depend on the current screen resolution getResolution. See also SafeZone- Groups:
- Uncategorised
Syntax
- Syntax:
- safeZoneW
- Return Value:
- Number
Examples
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note