Difference between revisions of "MAPINFO/Intermission definition"
From ECWolf Wiki
m  | 
				DavidAramant (talk | contribs)   | 
				||
| Line 1: | Line 1: | ||
An intermission definition defines an ending sequence. It will appear after the standard intermission stats screen.  | An intermission definition defines an ending sequence. It will appear after the standard intermission stats screen.  | ||
== Block syntax ==  | == Block syntax ==  | ||
| − | + | <tt>intermission ''name'' { ''properties'' }</tt>  | |
:Defines an intermission with the given name.  | :Defines an intermission with the given name.  | ||
== Block properties ==  | == Block properties ==  | ||
| − | *   | + | * <tt>Fader { ''properties'' }</tt>  | 
:Defines a fading (in/out) image.  | :Defines a fading (in/out) image.  | ||
| − | *   | + | * <tt>GotoTitle {}</tt>  | 
:Returns to the demo loop.  | :Returns to the demo loop.  | ||
| − | *   | + | * <tt>Image { ''properties'' }</tt>  | 
:Displays an image with no special properties.  | :Displays an image with no special properties.  | ||
| − | *   | + | * <tt>TextScreen { ''properties'' }</tt>  | 
:Displays a message.  | :Displays a message.  | ||
| − | *   | + | * <tt>VictoryStats { ''properties'' }</tt>  | 
:Shows the victory stats screen.  | :Shows the victory stats screen.  | ||
== Sub-block properties ==  | == Sub-block properties ==  | ||
These properties apply to any sub-block.  | These properties apply to any sub-block.  | ||
| − | *   | + | * <tt>background = "<texture>"[, <tile>[, "<palette>"]]</tt>  | 
:Draws the given texture as a full screen background.  | :Draws the given texture as a full screen background.  | ||
:If tile is set to 1 then the graphic will be tiled instead of stretched to full screen. An alternative palette can be set as well.  | :If tile is set to 1 then the graphic will be tiled instead of stretched to full screen. An alternative palette can be set as well.  | ||
| − | *   | + | * <tt>draw = "<texture>", <x>, <y></tt>  | 
:Draws the given texture at the given coordinates.  | :Draws the given texture at the given coordinates.  | ||
| − | *   | + | * <tt>music = "<lump>"</tt>  | 
:Changes the music to the given track.  | :Changes the music to the given track.  | ||
| − | *   | + | * <tt>time = <value></tt>  | 
:Gives how long the page should be displayed for. Positive values are in Doom tics, negative values are in seconds.  | :Gives how long the page should be displayed for. Positive values are in Doom tics, negative values are in seconds.  | ||
=== Fader properties ===  | === Fader properties ===  | ||
| − | *   | + | * <tt>fadetype = <type></tt>  | 
| − | :Sets the type of fade. Valid values are FadeIn or FadeOut.  | + | :Sets the type of fade. Valid values are <tt>FadeIn</tt> or <tt>FadeOut</tt>.  | 
=== TextScreen properties ===  | === TextScreen properties ===  | ||
| − | *   | + | * <tt>text = "<string>", ...</tt>  | 
:Gives the text to display for this screen. Each line is a separate string.  | :Gives the text to display for this screen. Each line is a separate string.  | ||
| − | *   | + | * <tt>textalignment = <alignment></tt>  | 
:Gives the alignment for the text. Valid values are left, right, or center.  | :Gives the alignment for the text. Valid values are left, right, or center.  | ||
| − | *   | + | * <tt>textcolor = "<textcolor>"</tt>  | 
:Gives the color for the font.  | :Gives the color for the font.  | ||
| − | *   | + | * <tt>textspeed = <value></tt>  | 
:Set this to 0. Will eventually indicate how fast characters are drawn on the screen.  | :Set this to 0. Will eventually indicate how fast characters are drawn on the screen.  | ||
| − | *   | + | * <tt>position = <x>, <y></tt>  | 
:Location on the screen where text drawing starts.  | :Location on the screen where text drawing starts.  | ||
Latest revision as of 20:06, 4 January 2017
An intermission definition defines an ending sequence. It will appear after the standard intermission stats screen.
Block syntax
intermission name { properties }
- Defines an intermission with the given name.
 
Block properties
- Fader { properties }
 
- Defines a fading (in/out) image.
 
- GotoTitle {}
 
- Returns to the demo loop.
 
- Image { properties }
 
- Displays an image with no special properties.
 
- TextScreen { properties }
 
- Displays a message.
 
- VictoryStats { properties }
 
- Shows the victory stats screen.
 
Sub-block properties
These properties apply to any sub-block.
- background = "<texture>"[, <tile>[, "<palette>"]]
 
- Draws the given texture as a full screen background.
 - If tile is set to 1 then the graphic will be tiled instead of stretched to full screen. An alternative palette can be set as well.
 
- draw = "<texture>", <x>, <y>
 
- Draws the given texture at the given coordinates.
 
- music = "<lump>"
 
- Changes the music to the given track.
 
- time = <value>
 
- Gives how long the page should be displayed for. Positive values are in Doom tics, negative values are in seconds.
 
Fader properties
- fadetype = <type>
 
- Sets the type of fade. Valid values are FadeIn or FadeOut.
 
TextScreen properties
- text = "<string>", ...
 
- Gives the text to display for this screen. Each line is a separate string.
 
- textalignment = <alignment>
 
- Gives the alignment for the text. Valid values are left, right, or center.
 
- textcolor = "<textcolor>"
 
- Gives the color for the font.
 
- textspeed = <value>
 
- Set this to 0. Will eventually indicate how fast characters are drawn on the screen.
 
- position = <x>, <y>
 
- Location on the screen where text drawing starts.