EVENT GETMENUTILE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{EventTable|1=EVENT_GETMENUTILE|2=Current Player|3=[[i|player->i]]|4=yes (1 value)}}
EVENT_GETMENUTILE is [[EDuke32 event list|Menu Event]].
EVENT_GETMENUTILE is [[EDuke32 event list|Menu Event]].



Revision as of 08:36, 5 August 2021

Event ID player# THISACTOR RETURN
EVENT_GETMENUTILE Current Player player->i yes (1 value)

EVENT_GETMENUTILE is Menu Event.

This event is fired when drawing the main menu background, and can be used to set a custom tile for it.

EXAMPLE:

gamevar MENU_TILE <flag> 0

onevent EVENT_GETMENUTILE
 setvar RETURN <tilenum>
endevent

In the onevent code, set the gamevar RETURN to the tile you want the main menu background to be.