Difference between revisions of "IntroWML"

From The Battle for Wesnoth Wiki
m (fixed formatting)
m (small formatting fix, removed double not, and ID -> macro)
Line 1: Line 1:
See also the '''DOT''' and '''CROSS''' IDs, in [[UtilWML]]
 
 
 
== The [story] tag ==
 
== The [story] tag ==
  
The [story] tag is a series of images and text to display as the first part of the intro screen.
+
The '''[story]''' tag is a series of images and text to display as the first part of the intro screen.
  
The only tag recognized for [story] is [part].
+
The only tag recognized for '''[story]''' is '''[part]'''.
Each [part] represents one image and text.
+
Each '''[part]''' represents one image and text.
 
The part is displayed until the user clicks on the "Next>>>" button.
 
The part is displayed until the user clicks on the "Next>>>" button.
  
The following key/tags are recognized for [part]:
+
The following key/tags are recognized for '''[part]''':
 
* ''background'' the image to display. Story images are usually created specially for this purpose, except for the map.
 
* ''background'' the image to display. Story images are usually created specially for this purpose, except for the map.
 
* ''story'' (translatable) the text to display below the image.
 
* ''story'' (translatable) the text to display below the image.
Line 20: Line 18:
 
** ''delay'' the time to delay drawing this image.
 
** ''delay'' the time to delay drawing this image.
  
 
+
See also the '''DOT''' and '''CROSS''' macros, in [[UtilWML]]
See also the '''DOT''' and '''CROSS''' IDs, in [[UtilWML]]
 
  
 
== See Also ==
 
== See Also ==
  
 
* [[ReferenceWML]]
 
* [[ReferenceWML]]

Revision as of 16:04, 31 August 2005

The [story] tag

The [story] tag is a series of images and text to display as the first part of the intro screen.

The only tag recognized for [story] is [part]. Each [part] represents one image and text. The part is displayed until the user clicks on the "Next>>>" button.

The following key/tags are recognized for [part]:

  • background the image to display. Story images are usually created specially for this purpose, except for the map.
  • story (translatable) the text to display below the image.
  • delay time in milliseconds to delay on this frame.
  • show_title whether to display the title of the scenario at the top
  • music change to this music
  • [image] an image to display.
    • x, y the location in pixels to draw the image.
    • file the image to display.
    • delay the time to delay drawing this image.

See also the DOT and CROSS macros, in UtilWML

See Also