Screen size: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
screen_size
'''screen_size''' holds the player's screen size


Holds the player's screensize - starts at 0 for no HUD and then increments by 4 for each size of screen, up to 64. A value of 4 means the player has just the Health, Ammo and Inventory visible, and 8 & up means they have the full status bar up.
Screen_size starts at 0 if the player has no HUD displayed and then increments by 4 for each time the screen is shrunken, up to 64.
A value of 4 means the player has just the mini-HUD displayed.  A value of 8 or above means the player has the full status bar up.  From 12 to 64, the viewport will shrink, with a texture filling the border.  The HUD will remain at full size.


Example:
Not to be confused with resolution.
<pre>
// Remove the old HUD
setuserdef[THISACTOR].screen_size 0
</pre>


[[Category:Userdef structure members]]
[[Category:Userdef structure members]]

Revision as of 14:38, 23 December 2009

screen_size holds the player's screen size

Screen_size starts at 0 if the player has no HUD displayed and then increments by 4 for each time the screen is shrunken, up to 64. A value of 4 means the player has just the mini-HUD displayed. A value of 8 or above means the player has the full status bar up. From 12 to 64, the viewport will shrink, with a texture filling the border. The HUD will remain at full size.

Not to be confused with resolution.