Difference between revisions of "IntroWML"

From The Battle for Wesnoth Wiki
m (small formatting fix, removed double not, and ID -> macro)
(removed delay, it seems to have no effect)
Line 10: Line 10:
 
* ''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.
* ''delay'' time in milliseconds to delay on this frame.
 
 
* ''show_title'' whether to display the title of the scenario at the top
 
* ''show_title'' whether to display the title of the scenario at the top
 
* ''music'' change to this music
 
* ''music'' change to this music

Revision as of 23:05, 15 September 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.
  • 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