2007-04-08 10:08:31 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Before checking the documentation in, make sure that it validates by
going to http://tools.decisionsoft.com/schemaValidate/ and using
Lua.xsd for the XML Schema and this file for the XML Instanace. -->
2007-08-06 00:06:35 +00:00
<!-- Using Link:
To add a link to a function in the current class:
<Link function='addx'>See addx()</Link>
To add a link to a function in another class:
<Link class='ActorFrame' function='propogate'>ActorFrame:propogate()</Link>
To add a link to a class:
<Link class='ActorFrame'>ActorFrame</Link>
To add a link to a global function:
<Link class='GLOBAL' function='Basename'>Basename()</Link>
To add a link to an Enum:
<Link class='ENUM' function='CoinMode'>CoinMode</Link> -->
2007-04-08 10:08:31 +00:00
<Documentation xmlns= 'http://www.stepmania.com' xmlns:xsi= 'http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.stepmania.com Lua.xsd' >
<!-- Global functions -->
<GlobalFunctions >
2007-08-07 12:18:19 +00:00
<Function name= 'Basename' return= 'string' arguments= 'string path' >
2007-04-08 10:08:31 +00:00
Returns the base name of file path.
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'FormatNumberAndSuffix' return= 'string' arguments= 'int num' >
2007-08-05 00:39:23 +00:00
Returns the number passed to the function followed by its suffix (" th" , " nd" , and so on).
</Function>
2007-04-08 10:08:31 +00:00
</GlobalFunctions>
<!-- Classes -->
<Classes >
<Class name= 'Actor' >
2007-08-07 12:18:19 +00:00
<Function name= 'halign' return= 'void' arguments= 'float fAlign' >
2007-08-06 00:43:07 +00:00
Set the fractional horizontal alignment of the Actor according to <code > fAlign</code> which should be a float in the range 0..1. An alignment of 0 is left aligned while an alignment of 1 is right aligned. See <Link function= 'horizalign' > horizalign()</Link> for the common case.
2007-08-06 00:06:35 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'horizalign' return= 'void' arguments= 'HorizAlign align' >
Set the horizontal alignment of the Actor according to <code > align</code> . See <Link function= 'halign' > halign()</Link> for fractional alignment.
2007-08-06 00:06:35 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'valign' return= 'void' arguments= 'float fAlign' >
2007-08-06 00:43:07 +00:00
Set the fractional vertical alignment of the Actor according to <code > fAlign</code> which should be a float in the range 0..1. An alignment of 0 is top aligned while an alignment of 1 is bottom aligned. See <Link function= "vertalign" > vertalign</Link> for the common case.
2007-08-06 00:06:35 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'vertalign' return= 'void' arguments= 'VertAlign align' >
Set the vertical alignment of the Actor according to <code > align</code> . See <Link function= "valign" > valign()</Link> for fractional alignment.
2007-08-06 00:06:35 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'x' return= 'void' arguments= 'float xPos' >
2007-08-06 00:43:07 +00:00
Set the x position of the Actor to <code > xPos</code> .
2007-04-08 10:08:31 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'y' return= 'void' arguments= 'float yPos' >
2007-08-06 00:43:07 +00:00
Set the y position of the Actor to <code > yPos</code> .
2007-04-08 10:08:31 +00:00
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'z' return= 'void' arguments= 'float zPos' >
2007-08-06 00:43:07 +00:00
Set the z position of the Actor to <code > zPos</code> .
</Function>
</Class>
<Class name= 'ScreenGameplay' >
<Function name= 'Center1Player' return= 'bool' arguments= '' >
Returns <code > true</code> if a single <Link class= 'Player' > Player</Link> has its NoteField centered.
</Function>
2007-08-07 12:18:19 +00:00
<Function name= 'GetLifeMeter' return= 'LifeMeter' arguments= 'PlayerNumber pn' >
2007-08-06 00:43:07 +00:00
Returns the <Link class= 'LifeMeter' > LifeMeter</Link> for the specified <Link class= 'ENUM' function= 'PlayerNumber' > PlayerNumber</Link> <code > pn</code> .
</Function>
<Function name= 'GetNextCourseSong' return= 'Song' arguments= '' >
2007-08-06 00:45:23 +00:00
Returns the next <Link class= 'Song' > Song</Link> in the current <Link class= 'Course' > Course</Link> .
2007-04-08 10:08:31 +00:00
</Function>
</Class>
2007-07-06 03:07:10 +00:00
<Class name= 'Song' >
2007-08-06 00:43:07 +00:00
<Function name= 'GetDisplayArtist' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the displayed artist of the song.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'GetDisplayFullTitle' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the displayed full title of the song, including subtitle.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'GetDisplayMainTitle' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the displayed main title of the song.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'GetTranslitArtist' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the transliterated artist of the song.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'GetTranslitFullTitle' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the transliterated full title of the song, including subtitle.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'GetTranslitMainTitle' return= 'string' arguments= '' >
2007-07-06 03:14:18 +00:00
Returns the transliterated main title of the song.
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'IsLong' return= 'bool' arguments= '' >
2007-07-06 04:08:21 +00:00
Returns true if the song meets the criteria for a " Long Version" .
2007-07-06 03:07:10 +00:00
</Function>
2007-08-06 00:43:07 +00:00
<Function name= 'IsMarathon' return= 'bool' arguments= '' >
2007-07-06 04:08:21 +00:00
Returns true if the song meets the criteria for " Marathon" length.
2007-07-06 03:07:10 +00:00
</Function>
</Class>
2007-04-08 10:08:31 +00:00
</Classes>
</Documentation>