EVENT UPDATESCREENAREA: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Jblade (talk | contribs)
Created page with "EVENT_UPDATESCREENAREA is a Game Event. Use this event to change the size of the game view, similar to when you press + or - Category:Events"
 
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
EVENT_UPDATESCREENAREA is a [[EDuke32_event_list|Game Event]].
{{EventTable|1=EVENT_UPDATESCREENAREA |2=[[screenpeek]]|3=[[i|player->i]]|4=4 values}}


Use this [[event]] to change the size of the game view, similar to when you press + or -
EVENT_UPDATESCREENAREA is a [[EDuke32_event_list|Misc Event]].
 
This event is triggered whenever the visible game area is updated. Use this [[event]] to change the size of the game view, similar to when you press '''+''' or '''-'''
 
The struct members [[RETURN|ud.return[0] to ud.return[3]]] hereby store '''x1''', '''y1''', '''x2''' and '''y2''' in sequence. Alter these in order to resize the screen area.
 
See also struct members [[screenarea_x1]], [[screenarea_y1]], [[screenarea_x2]], [[screenarea_y2]], which are aliases for [[RETURN|ud.return]].
 
== Return Values ==
 
:; userdef.return 0 (alias RETURN)
:: Alias [[screenarea_x1]]. This value describes the leftmost boundary (x-axis) of the screen.
 
:; userdef.return 1
:: Alias [[screenarea_y1]]. This value describes the topmost boundary (y-axis) of the screen.
 
:; userdef.return 2
:: Alias [[screenarea_x2]]. This value describes the rightmost boundary (x-axis) of the screen.
 
:; userdef.return 3
:: Alias [[screenarea_y2]]. This value describes the bottom boundary (y-axis) of the screen.


[[Category:Events]]
[[Category:Events]]

Latest revision as of 05:42, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_UPDATESCREENAREA screenpeek player->i 4 values

EVENT_UPDATESCREENAREA is a Misc Event.

This event is triggered whenever the visible game area is updated. Use this event to change the size of the game view, similar to when you press + or -

The struct members ud.return[0] to ud.return[3] hereby store x1, y1, x2 and y2 in sequence. Alter these in order to resize the screen area.

See also struct members screenarea_x1, screenarea_y1, screenarea_x2, screenarea_y2, which are aliases for ud.return.

Return Values

userdef.return 0 (alias RETURN)
Alias screenarea_x1. This value describes the leftmost boundary (x-axis) of the screen.
userdef.return 1
Alias screenarea_y1. This value describes the topmost boundary (y-axis) of the screen.
userdef.return 2
Alias screenarea_x2. This value describes the rightmost boundary (x-axis) of the screen.
userdef.return 3
Alias screenarea_y2. This value describes the bottom boundary (y-axis) of the screen.