EVENT UPDATESCREENAREA: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Jblade (talk | contribs)
mNo edit summary
Added info about return variables
Line 1: Line 1:
EVENT_UPDATESCREENAREA is a [[EDuke32_event_list|Game Event]].
EVENT_UPDATESCREENAREA is a [[EDuke32_event_list|Misc Event]].


Use this [[event]] to change the size of the game view, similar to when you press + or -
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 '''-'''


See [[screenarea_x1]], [[screenarea_y1]], [[screenarea_x2]], [[screenarea_y2]]
See [[screenarea_x1]], [[screenarea_y1]], [[screenarea_x2]], [[screenarea_y2]].
 
The [[RETURN]] variable hereby stores '''x1''', and the struct members [[RETURN|ud.return[0]]], [[RETURN|ud.return[1]]] and [[RETURN|ud.return[2]]] store '''y1''', '''x2''' and '''y2''' respectively. Alter the values stored in these variables in order to change the screen area.


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

Revision as of 13:16, 23 February 2020

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 -

See screenarea_x1, screenarea_y1, screenarea_x2, screenarea_y2.

The RETURN variable hereby stores x1, and the struct members ud.return[0], ud.return[1] and ud.return[2] store y1, x2 and y2 respectively. Alter the values stored in these variables in order to change the screen area.