Screen size: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
screen_size
'''screen_size''' holds the player's "screen size". Not to be confused with resolution.


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.


Example:
A value of 4 means the player has just the mini-HUD displayed.
<pre>
 
// Remove the old HUD
A value of 8 or above means the player has the full status bar up.
setuserdef[THISACTOR].screen_size 0
 
</pre>
From 12 to 64, the viewport will shrink, with a texture filling the border.  The HUD will remain at full size.
 
See also [[statusbarscale]], [[statusbarflags]], [[statusbarrange]] and [[statusbarcustom]].


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

Latest revision as of 06:48, 20 February 2020

screen_size holds the player's "screen size". Not to be confused with resolution.

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.

See also statusbarscale, statusbarflags, statusbarrange and statusbarcustom.