Difference between revisions of "MAPINFO/Intermission definition"

From ECWolf Wiki
 
(2 intermediate revisions by one other user not shown)
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 ==
'''intermission''' ''name'' { ''properties'' }
+
<tt>intermission ''name'' { ''properties'' }</tt>
 
:Defines an intermission with the given name.
 
:Defines an intermission with the given name.
 
== Block properties ==
 
== Block properties ==
* '''Fader''' { ''properties'' }
+
* <tt>Fader { ''properties'' }</tt>
 
:Defines a fading (in/out) image.
 
:Defines a fading (in/out) image.
* '''GotoTitle''' {}
+
* <tt>GotoTitle {}</tt>
 
:Returns to the demo loop.
 
:Returns to the demo loop.
* '''Image''' { ''properties'' }
+
* <tt>Image { ''properties'' }</tt>
 
:Displays an image with no special properties.
 
:Displays an image with no special properties.
* '''TextScreen''' { ''properties'' }
+
* <tt>TextScreen { ''properties'' }</tt>
 
:Displays a message.
 
:Displays a message.
* '''VictoryStats''' { ''properties'' }
+
* <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.
* '''background = "<texture>"[, <tile>[, "<palette>"]]'''
+
* <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. {{Hg|897c8d5|1.2}}
+
: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>'''
+
* <tt>draw = "<texture>", <x>, <y></tt>
 
:Draws the given texture at the given coordinates.
 
:Draws the given texture at the given coordinates.
* '''music = "<lump>"'''
+
* <tt>music = "<lump>"</tt>
 
:Changes the music to the given track.
 
:Changes the music to the given track.
* '''palette = "<lump>"'''
+
* <tt>time = <value></tt>
{{warning|This feature has been replaced in the latest development build.}}
 
:Switches the palette.
 
* '''time = <value>'''
 
 
: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 ===
* '''fadetype = <type>'''
+
* <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 ===
* '''text = "<string>", ...'''
+
* <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.
* '''textalignment = <alignment>'''
+
* <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.
* '''textcolor = "<textcolor>"'''
+
* <tt>textcolor = "<textcolor>"</tt>
 
:Gives the color for the font.
 
:Gives the color for the font.
* '''textspeed = <value>'''
+
* <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.
* '''position = <x>, <y>'''
+
* <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.