EVENT GETMENUTILE

From EDukeWiki
Revision as of 14:23, 19 July 2006 by Hendricks266 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

EVENT_GETMENUTILE is used to set a custom tile for the main menu background.

EXAMPLE:

gamevar MENU_TILE <flag> GAMEVAR_FLAG_GLOBAL

onevent EVENT_GETMENUTILE
 setvar RETURN <tilenum>
endevent

gamevar MENU_TILE is used to set whether the screen is one picture or if it is tiled, like a texture.

Values for <flag>:

  • 0 - Main Menu background is non-tilable
  • 1 - Main Menu background is tilable

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