EVENT GETLOADTILE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
EVENT_GETLOADTILE is used to set a custom tile for the loading screen.
{{EventTable|1=EVENT_GETLOADTILE|2=[[screenpeek]]|3=[[i|player->i]]|4=1 value}}
 
EVENT_GETLOADTILE is a [[EDuke32_event_list|Game Event]].
 
This [[event]] is used to set a custom tile for the loading screen.


EXAMPLE:
EXAMPLE:


gamevar LOAD_TILE <flag> GAMEVAR_FLAG_GLOBAL
  onevent EVENT_GETLOADTILE
  onevent EVENT_GETLOADTILE
  setvar RETURN <tilenum>
    setvar [[RETURN]] <tilenum>
  endevent
  endevent
gamevar LOAD_TILE is used to set whether the screen is one picture or if it is tiled, like a texture.
Values for <flag>:
* 0 - Loading Screen is non-tilable
* 1 - Loading Screen is tilable


In the onevent code, set the gamevar RETURN to the tile you want the loading screen to be.
In the onevent code, set the gamevar RETURN to the tile you want the loading screen to be.


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

Latest revision as of 07:45, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_GETLOADTILE screenpeek player->i 1 value

EVENT_GETLOADTILE is a Game Event.

This event is used to set a custom tile for the loading screen.

EXAMPLE:

onevent EVENT_GETLOADTILE
    setvar RETURN <tilenum>
endevent

In the onevent code, set the gamevar RETURN to the tile you want the loading screen to be.